Switch stack connection and configuration

1. Experimental steps

1. Operate on an S2628G switch 1 that has been initialized. Name switch 1 SWITCH1 and set the IP address to 192.168.1.1. Name switch 2 SWITCH2 and set the IP address to 192.168.1.2.

2. Insert the stacking modules into the corresponding interfaces of the two switches (do not connect the stacking cables first).

3. Connect PC1 to the fastethernet 0/1 port of SWITCH1, and then Telnet to SWITCH1 from the computer to configure the stack.

4. Configure the stack on SWITCH1

switch1>en Enter privileged configuration mode

switch1#conf t Enter global configuration mode

switch1(config)#member 1 Configure the device number as 1

switch1(config)#device-priority 10 Set the priority of the device to 10, the default is 1

5. Verify switch stack configuration

switch1#show member Display the current member information of the stacking group

switch1#show version devices Display the current device information of the stack host

switch1#show version slots Displays the current slot and module information of the stack host

You can find that the results displayed here only contain information about SWITCH1.

6. Connect SWITCH1 and SWITCH2 with two stacking cables as shown in Figure 9-5. Run the Ping 192.168.1.2 command on your computer. If it fails, it means the stacking is successful. Ruijie's S2628G switch has automatic stacking function.

7. Verify switch stacking group configuration

switch1#show member Display the current member information of the stacking group

switch1#show version devices Display the current device information of the stack host

switch1#show version slots Displays the current slot and module information of the stack host

It can be found that the results displayed here are different from those displayed in 5, and there is more information about SWITCH2.

8. Configure SWITCH2

switch1(config)#member 2 Enter switch 2

switch1@2(config)#device-priority 5                     Set the priority of the device to 5

switch1@2(config)#interface fa0/1 Configure interface fa0/1

switch1@2(config-if)#switchport mode trunk Set fa0/1 interface as trunk port

9. Verify the configuration of SWITCH2

switch1#show member Display the current member information of the stacking group

switch1#show running-config Displays all configuration information of the switch

2. Experimental thinking questions

1. On SWITCH1, what is the command to set port fa0/1-3 of SWITCH2 to full duplex and the rate to 100Mbps?

2. Can the IP address of SWITCH2 be set to 192.168.1.100 on SWITCH1? If it works, write down the relevant commands; if it doesn’t work, tell me why?

3. Can Layer 2 and Layer 3 switches be mixed and stacked?

Guess you like

Origin blog.csdn.net/m0_68036862/article/details/134771146