H3C S12500X-2L Switch Installation Guide-5W101

HomeSupportSwitchesS12500X-AF SeriesInstall & UpgradeInstallation GuidesH3C S12500X-2L Switch Installation Guide-5W101
04-Chapter 4 Connecting Your Switch to the Network

1 Connecting your switch to the network

This chapter describes how to connect your switch to a network.

The first time you access a switch you must log in through the console port. On the switch, you can configure Telnet or SSH for remote access through Ethernet ports. You manage console login users at AUX user lines, and manage Telnet and SSH users at VTY user lines. For more information about login methods and user lines, see H3C S12500X-AF Switch Series Fundamentals Configuration Guide.

 

 

NOTE:

·     The switch supports one AUX user when it has one SEU installed and supports a maximum of two concurrent AUX users when it has two SEUs installed.

·     The switch supports a maximum of 32 concurrent VTY users.

 

Accessing the switch for the first time

The first time you access the switch you must use a console cable to connect a console terminal, for example, a PC, to the console port on the switch.

Setting up the configuration environment

To connect a terminal (for example, a PC) to the switch:

1.     Plug the DB-9 female connector of the console cable to the serial port of the PC.

2.     Plug the RJ-45 connector of the console cable to the console port of the switch.

3.     Power on the PC.

 

 

NOTE:

·     Identify the mark on the console port and make sure you are connecting to the correct port.

·     The serial ports on PCs do not support hot swapping. To connect a PC to an operating switch, first connect the PC end. To disconnect a PC from an operating switch, first disconnect the switch end.

 

Figure1-1 Connecting a terminal to the switch

 

Setting terminal parameters

To configure and manage the switch through the console port, you must run a terminal emulator program, HyperTerminal or PuTTY, on your configuration terminal. You can use the emulator program to connect a network device, a Telnet site, or an SSH site. For more information about the terminal emulator programs, see the user guides for these programs.

The following are the required terminal settings:

·     Bits per second—9600.

·     Data bits—8.

·     Stop bits—1.

·     Parity—None.

·     Flow control—None.

Powering on the switch

Before powering on the switch, confirm the following:

·     You know where the emergency power-off switch for the equipment room is located.

·     The switch has been securely mounted.

·     All the cards have been correctly installed.

·     The unused slots have been installed with filler panels.

·     All the network cables, fibers, power cords, and grounding cables have been correctly connected.

·     The input power voltage meets the requirement of the switch.

·     The console cable is correctly connected, the terminal or PC used for configuration has started, and the configuration parameters have been set.

To power on the switch, turn on the power source of the switch.

The following is a sample output you can see on the terminal:

System is starting...

Press Ctrl+D to access BASIC-BOOTWARE MENU...                                  

Press Ctrl+T to start memory test                                              

Booting Normal Extended BootWare                                               

The Extended BootWare is self-decompressing..........Done.                     

...

Press ENTER to get started.    

Press Enter at the prompt. When the prompt <Sysname> appears, you can configure the switch.

After powering on the switch, check the following items:

·     The cooling system is working, and you can hear fan rotating noise and feel air being blown out.

·     The system status LEDs on the SEUs show that the system is operating normally. For more information about LED behaviors, see "Appendix C LEDs."

Configuring the switch

By default, the switch does not authenticate the console login user at an AUX interface. To increase system security and enable remote management:

·     Configure remote access services, for example, Telnet or SSH.

·     Configure authentication on each user interface, including the AUX interfaces.

Configuring authentication on a user interface

You can configure authentication on a user interface to control access to the switch.

Table1-1 describes the Telnet login authentication methods available for a VTY user line.

Table1-1 Telnet login authentication methods

Authentication method

Feature

Application scenarios

None

Easy to configure, allows any user to Telnet to your switch, and lowest in security

Lab environments and extremely secure network environments

Password

Easy to configure, secure, and flat user management

Environments that do not need granular privilege management

Username and password

Complex to configure, secure, and hierarchical user management

Environments where multiple user roles cooperate to manage the switch

 

For more information about login methods, see H3C S12500X-AF Switch Series Fundamentals Configuration Guide.

Configuring the basic access function

The switch without any configuration can perform basic data forwarding immediately after it is connected to a network. To implement more forwarding features, configure the basic network settings in Table1-2 on the switch.

Table1-2 Basic network settings

Setting

Description

IP address

Enables remote switch management, for example, by using Telnet.

Static routes

Implement static routing.

VLANs

Divide the LAN into multiple VLANs for data security.

MSTP

Avoids loops in a dual-homed network.

 

Configuration example

Configuring Telnet service

# Enter system view.

<Sysname> system-view

# Enable the Telnet server.

[Sysname] telnet server enable

# Enter the view of user line VTY 0.

[Sysname] user-interface vty 0

# Enable password authentication on the user line.

[Sysname-line-vty0] authentication-mode password

# Set the password to hello in plaintext.

[Sysname-line-vty0] set authentication password simple hello

# Assign user role network-admin through the user line VTY 0.

[Sysname-line-vty0] user-role network-admin

[Sysname-line-vty0] quit

Configuring the basic network settings

·     Configure IP addresses

# Create VLAN-interface 1.

[Sysname] interface vlan-interface 1

# Assign an IP address, for example, 192.168.0.1, to VLAN-interface 1.

[Sysname-Vlan-interface1] ip address 192.168.0.1 24

[Sysname-Vlan-interface1] quit

·     Configure static routes

# Configure a static route, with the destination IP address 172.16.1.0 and the next hop IP address 192.168.0.2.

[Sysname] ip route-static 172.16.1.0 255.255.255.0 192.168.0.2

·     Configure VLANs

# Create VLAN 10 and enter its view.

[Sysname] vlan 10

[Sysname-vlan10]

# Assign port Ten-GigabitEthernet 1/0/1 to VLAN 10.

[Sysname-vlan10] port ten-gigabitethernet 1/0/1

[Sysname-vlan10] quit

·     Configure MSTP

# Create an MST region named example, map VLAN 10 to instance 1, and set the MSTP revision level to 0.

[Sysname] stp region-configuration

[Sysname-mst-region] region-name example

[Sysname-mst-region] instance 1 vlan 10

[Sysname-mst-region] revision-level 0

# Activate the MST region configuration.

[Sysname-mst-region] active region-configuration

[Sysname-mst-region] quit

# Configure the switch as the primary root bridge of instance 1.

[Sysname] stp instance 1 root primary

# Enable MSTP globally.

[Sysname] stp global enable

For more information about these features, see H3C S12500X-AF Switch Series Configuration Guides.

Verifying the network configuration

To verify the software version and network configuration, execute display commands in any view.

 

Task

Command

Display the name, model, and system software version of the switch

display version

Display the current configuration of the switch

display current-configuration

Display the interface status and configuration

display interface brief

Display the IP configuration of Layer 3 interfaces

display ip interface brief

Display brief information about active routes in the routing table

display ip routing-table

Display VLAN settings

display vlan

Display the spanning tree status and statistics

display stp brief

 

Connecting the switch to the network

WARNING

WARNING!

To avoid injury to your eyes, do not stare at the fiber ports and optical fiber connectors when connecting optical fibers.

 

Before you connect the switch to the network, verify that all its basic network settings are correct.

Connecting the switch to the network by using Ethernet twisted pair cables

The 10/100/1000BASE-T ports and 10GBASE-T ports on the switch use RJ-45 connectors and support MDI/MDIX auto-sensing. Connect the 10/100/1000BASE-T ports by using category 5 or above twisted pair cables. Connect the 10GBASE-T ports by using category 6A or 7 twisted pair cables. For more information about Ethernet twisted pairs, see "Appendix D Cables."

To connect a copper port to a peer device through an Ethernet twisted pair cable:

1.     Plug one end of the cable into the RJ-45 port on the switch.

2.     Plug the other end of the cable to the RJ-45 port of the peer device.

3.     Verify that the RJ-45 ports are operating correctly by examining the LED status.

For more information about the LED status, see "Appendix C LEDs."

Connecting the switch to the network through an optical fiber

WARNING

WARNING!

Disconnected optical fibers or transceiver modules might emit invisible laser light. Do not stare into beams or view directly with optical instruments when the switch is operating.

 

You can install a transceiver module (see "Installing a QSFP+/QSFP28 transceiver module") in a fiber port and use an optical fiber to connect the port to the network. For more information about optical fibers, see "Appendix D Cables."

To connect a fiber port to a peer device through an optical fiber:

1.     Install a transceiver module into the port.

2.     Remove the dust cover of the optical fiber connector, and clean the end of the optical fiber.

3.     Remove the dust plug of the transceiver module, plug one end of the optical fiber into the transceiver module, and plug the other end into the transceiver module in the peer device.

¡     For information about how to connect an LC connector, see Figure1-2.

¡     For information about how to connect an MPO connector, see Figure1-3.

Figure1-2 Using an LC optical fiber connector to connect an SFP module

 

Figure1-3 Using an MPO optical fiber connector to connect a QSFP module

 

4.     Examine the port LEDs for incorrect connection.

For more information about the LED status, see "Appendix C LEDs."

 

 

NOTE:

For the QSFP+/QSFP28 transceiver module, you do not need to differentiate between the transmitter (TX) and receiver (RX) ports.

 

Testing connectivity

After you connect the switch to the network, use the ping or tracert command to test the network connectivity. For more information about these commands, see H3C S12500X-AF Switch Series Command References.

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网