How to config redundant ip gateway without 'standby' command ?

一般人都會使用HSRP(Hot Standby Router Protocol)來設定Gateway備援避免單一路由器failure造成網路中斷。如果今天有一個題目的條件是:
1.不得使用standby相關的指令 => 意思就是不得使用HSRP,請改用VRRP(Virtual Router Redundancy Protocol)
2.R1為主要出口,隨時監控路由100.100.100.0/24的存在狀況決定是否要改用另一台路由器R2 redundant ip gateway;若是改由R2當成主要出口之後,如果100.100.100.0/24路由恢復正常,必須馬上改以R1當主要出口 => 必須啟用preempt
3.要求R1,R2兩個redundant router之間使用md5進行authentication,password為cisco => 必須使用key-chain

R1(config)#track 1 ip route 100.100.100.0 255.255.255.0 reachability
!
R1(config)#key chain VRRP
R1(config-keychain)#key 1
R1(config-keychain-key)#key-string cisco
!
R1(config)#int f0/0
R1(config-if)#ip address 10.1.1.253 255.255.255.0
R1(config-if)#vrrp 1 ip 10.1.1.254
R1(config-if)#vrrp 1 priority 101
R1(config-if)#vrrp 1 authentication md5 key-chain VRRP
R1(config-if)#vrrp 1 track 1 decrement 10
!
R1(config-if)#vrrp 1 preempt


R2(config)#key chain VRRP
R2(config-keychain)#key 1
R2(config-keychain-key)#key-string cisco
!
R2(config)#int f0/0
R2(config-if)#ip address 10.1.1.252 255.255.255.0
R2(config-if)#vrrp 1 ip 10.1.1.254
R2(config-if)#vrrp 1 authentication md5 key-chain VRRP
R2(config-if)#vrrp 1 preempt

Comments

Popular posts from this blog

TCP/IP 明確擁塞通知 (ECN)

L2TPv3 Enables Layer 2 Services for IP Networks

Q-in-Q(Dot1Q Tunnel) Sample Configuration