SWA交换机配置内容:
Switch>en
Switch>enable
Switch#conf
Switch#configure
Configuring from terminal,memory,or network [terminal]?
Enter configuration commands,one per line. End with CNTL/Z.
Switch(config)#h
Switch(config)#hostname SWA
SWA(config)#in vl
SWA(config)#in vlan 1
SWA(config-if)#ip add 192.168.1.101 255.255.255.0
SWA(config-if)#no shu
SWA(config-if)#no shutdown
%LINK-5-CHANGED: Interface Vlan1,changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1,changed state to up
SWA(config-if)#ex
SWA(config)#sp
SWA(config)#spanning-tree m
SWA(config)#spanning-tree mode r
SWA(config)#spanning-tree mode rapid-pvst
SWA(config)#in f0/1
SWA(config-if)#channel-g
SWA(config-if)#channel-group 1 m
SWA(config-if)#channel-group 1 mode d
SWA(config-if)#channel-group 1 mode desirable
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1,changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1,changed state to up
SWA(config-if)#ex
SWA(config)#in f0/2
SWA(config-if)#channel-g
SWA(config-if)#channel-group 1 m
SWA(config-if)#channel-group 1 mode d
SWA(config-if)#channel-group 1 mode desirable
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2,changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2,changed state to up
SWA(config-if)#ex
SWA(config)#
SWB交换机配置内容:
Switch>en
Switch>enable
Switch#conf
Switch#configure
Configuring from terminal,one per line. End with CNTL/Z.
Switch(config)#h
Switch(config)#hostname SWB
SWB(config)#in vl
SWB(config)#in vlan 1
SWB(config-if)#ip add 192.168.1.102 255.255.255.0
SWB(config-if)#no shu
SWB(config-if)#no shutdown
%LINK-5-CHANGED: Interface Vlan1,changed state to up
SWB(config-if)#ex
SWB(config)#sp
SWB(config)#spanning-tree m
SWB(config)#spanning-tree mode
SWB(config)#spanning-tree mode r
SWB(config)#spanning-tree mode rapid-pvst
SWB(config)#in f0/1
SWB(config-if)#channel-g
SWB(config-if)#channel-group 1 m
SWB(config-if)#channel-group 1 mode d
SWB(config-if)#channel-group 1 mode desirable
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1,changed state to up
SWB(config-if)#
%LINK-5-CHANGED: Interface Port-channel 1,changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 1,changed state to up
SWB(config-if)#ex
SWB(config)#in f0/2
SWB(config-if)#channel-g
SWB(config-if)#channel-group 1 m
SWB(config-if)#channel-group 1 mode d
SWB(config-if)#channel-group 1 mode desirable
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2,changed state to up SWB(config-if)#ex SWB(config)#
原文链接:https://www.f2er.com/javaschema/286508.html