
sw1(config-if-range)#no sh
sw1(config-if-range)#speed 100 速度100m
sw1(config-if-range)#duplex full 全双工
sw1(config-if-range)#sw tr en dot1q 封装802.1q
sw1(config-if-range)#sw mo tr 启用trunk
sw1(config-if-range)#channel-group 1 mode on etherchannel组一
sw1(config-if-range)#^Z
sw2(config-if-range)#no sh
sw2(config-if-range)#speed 100
sw2(config-if-range)#duplex full
sw2(config-if-range)#sw mo tr
sw2(config-if-range)#sw tr en dot1q
sw2(config-if-range)#channel-group 1 mode on
Flags: D – down P – in port-channel
I – stand-alone s – suspended
R – Layer3 S – Layer2
U – in use
Group Port-channel Ports
—–+————+———————————————————–
1 Po1(SU) Fa0/11(P) Fa0/12(P)
Po1 on 802.1q trunking 1
Po1 1-1005
Po1 1
Po1 1
Bridge Identifier has priority 32768, address ccd1.42e4.0000
Configured hello time 2, max age 20, forward delay 15
We are the root of the spanning tree
Topology change flag not set, detected flag not set
Number of topology changes 1 last change occurred 00:02:42 ago
from FastEthernet0/11
Times: hold 1, topology change 35, notification 2
hello 2, max age 20, forward delay 15
Timers: hello 0, topology change 0, notification 0, aging 0
Port path cost 12, Port priority 128, Port Identifier 129.65.
Designated root has priority 32768, address ccd1.42e4.0000
Designated bridge has priority 32768, address ccd1.42e4.0000
Designated port id is 129.65, designated path cost 0
Timers: message age 0, forward delay 0, hold 0
Number of transitions to forwarding state: 1
BPDU: sent 176, received 70
—-
FastEthernet0/11:
Port state = Up Mstr In-Bndl
Channel group = 1 Mode = On/FEC Gcchange = 0
Port-channel = Po1 GC = 0×00010001 Pseudo port-channel = Po1
Port index = 0
Age of the port in the current state: 00d:00h:02m:40s
—-
FastEthernet0/12:
Port state = Up Mstr In-Bndl
Channel group = 1 Mode = On/FEC Gcchange = 0
Port-channel = Po1 GC = 0×00010001 Pseudo port-channel = Po1
Port index = 1
Age of the port in the current state: 00d:00h:02m:40s
—-
Port-channel1:
Age of the Port-channel = 00d:00h:02m:40s
Logical slot/port = 8/0 Number of ports = 2
GC = 0×00010001 HotStandBy port = null
Port state = Port-channel Ag-Inuse
——+——+————
0 Fa0/11 on
1 Fa0/12 on
Time since last port bundled: 00d:00h:02m:40s Fa0/12