天天看點

VRRP

拓撲:

VRRP

配置:

VRRP Master:

ip sla monitor 1

type echo protocol ipIcmpEcho 202.1.1.2 source-interface FastEthernet1/0  //追蹤ISP1可達性

frequency 5                                                                                                                   //5s發送一次ICMP

ip sla monitor schedule 1 life forever start-time now

!

track 90 rtr 1                                                                                                                  //定義一個TRACK

interface FastEthernet0/0

ip address 10.1.1.251 255.255.255.0

ip ospf authentication message-digest

ip ospf authentication-key cisco

duplex auto

speed auto

vrrp 1 ip 10.1.1.254

vrrp 1 timers advertise msec 50

vrrp 1 priority 105

vrrp 1 authentication md5 key-string cisco

vrrp 1 track 90                                                                                                             //調用TRACK

interface FastEthernet1/0

ip address 202.1.1.1 255.255.255.252

router ospf 1

log-adjacency-changes

area 0 authentication message-digest

network 10.1.1.251 0.0.0.0 area 0

ip route 0.0.0.0 0.0.0.0 202.1.1.2

VRRP Backup:

track 90 interface FastEthernet1/0 line-protocol                                                   //TRACK出接口的狀态

!                     

ip address 10.1.1.250 255.255.255.0

vrrp 1 track 90                                                                                                              //調用TRACK

ip address 64.1.1.1 255.255.255.252

network 10.1.1.250 0.0.0.0 area 0

ip route 0.0.0.0 0.0.0.0 64.1.1.2

PC:

ip route 0.0.0.0 0.0.0.0 10.1.1.254

測試:

預設情況下

VRRP

走的ISP1

VRRP
VRRP
VRRP
VRRP

PC流量切換到ISP2

注意:PC兩次流量都是走的實體IP位址,并沒有走VRRP IP位址。

VRRP
VRRP
VRRP
上一篇: VRRP
下一篇: VRRP

繼續閱讀