cisco4507,4503做HSRP

4507配置:

interface Port-channel3
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
!
interface GigabitEthernet3/3
 description For 4503-G2/3
 channel-group 3 mode auto
!
interface GigabitEthernet3/4
 description For 4503-G2/4
 channel-group 3 mode auto

 

interface Vlan1
 ip address 10.140.192.253 255.255.255.0
 standby 1 ip 10.140.192.254
 standby 1 priority 110
 standby 1 preempt

 

interface Vlan10
 ip address 10.140.193.253 255.255.255.0
 standby 10 ip 10.140.193.254
 standby 10 priority 110
 standby 10 preempt

 

生成樹優先級:

spanning-tree mode pvst

spanning-tree vlan 1-4094 priority 4096

 

4503配置:

interface Port-channel3
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk

 

interface GigabitEthernet2/3
 description For 4507
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 3 mode auto
!
interface GigabitEthernet2/4
 description For 4507
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-group 3 mode auto

 

interface Vlan1
 ip address 10.140.192.252 255.255.255.0
 no ip redirects
 standby 1 ip 10.140.192.254
!
interface Vlan10
 ip address 10.140.193.252 255.255.255.0
 no ip redirects
 standby 10 ip 10.140.193.254

 

這樣配置完以後,show standby bri失敗,sh int port-channel 20 is down.

解決辦法是不要先create Port-channel3,要先在4507和4503的interface端口interface GigabitEthernet3/3下面配置channel-group 3 mode auto,然後會自動建立channel-group 3,然後interface Port-channel3
switchport
switchport trunk encapsulation dot1q
switchport mode trunk

這樣就OK了!

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章