准备要考642-813,但是在做lacp的时候总是配到swith A的channel-group总是处在SD状态。以下是配置:
SWitchB:
spanning-tree mode rapid-pvst
spanning-tree vlan 11-13,21-23 priority 28672
interface FastEthernet0/3
channel-group 1 mode passive
switchport trunk native vlan 99
switchport trunk allowed vlan 1,21-23
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/4
channel-group 1 mode passive
switchport trunk native vlan 99
switchport trunk allowed vlan 1,21-23
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/9
switchport access vlan 21
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/10
switchport access vlan 21
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/13
switchport access vlan 22
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/14
switchport access vlan 22
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/15
switchport access vlan 23
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/16
switchport access vlan 23
switchport mode access
spanning-tree portfast
!
interface Port-channel 1
switchport trunk native vlan 99
switchport trunk allowed vlan 1,21-23
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Vlan1
ip address 192.168.1.11 255.255.255.0
!
SWitch A:
spanning-tree mode rapid-pvst
spanning-tree vlan 11-13,21-23 priority 24576
!
!
!
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
channel-group 1 mode active
switchport trunk native vlan 99
switchport trunk allowed vlan 1,21-23
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/4
channel-group 1 mode active
switchport trunk native vlan 99
switchport trunk allowed vlan 1,21-23
switchport trunk encapsulation dot1q
switchport mode trunk
!
!
!
!
interface Port-channel 1
switchport trunk native vlan 99
switchport trunk allowed vlan 1,21-23
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Vlan1
no ip address
shutdown
!
测试结果如下:
swith B ping 192.168.1.1,数据总是断断续续的。192.168.1.1是路由器f0/0ip。
|