************************************************
pc:
ip add 192.168.123.3 255.255.255.0
ip default-gateway 192.168.1.254
************************************************
r1:
track 1 interface e0/1 line-protocol
int e0/0
ip add 192.168.123.1 255.255.255.0
no shu
standy 1 ip 192.168.1.128
standy 1 track 50
standy 1 priority 120
standy 1 preempt
no ip proxy-arp
no ip redirects
standy 2 ip 192.168.123.254
standy 2 priority 90
router rip
no au
ve 2
net 192.168.123.0
net 192.168.12.0
***********************************************
r2:
track 1 interface e0/1 line-protocol
int e0/0
ip add 192.168.123.2 255.255.255.0
no shu
standy 2 ip 192.168.1.254
standy 2 track 50
standy 2 priority 150
standy 2 preempt
no ip proxy-arp
no ip redirects
standy 1 ip 192.168.123.128
standy 1 priority 90
router rip
no au
ver 2
net 192.168.123.0
net 192.168.34.0
***********************************************
r3:
int e0/1
ip add 192.168.12.2 255.255.255.0
no shu
int e0/2
ip add 192.168.34.4 255.255.255.0
no shu
int l0
ip add 4.4.4.4 255.255.255.0
no shu
router rip
no au
ver 2
net 192.168.12.0
net 192.168.34.0
net 4.4.4.4
***********************************************
en
conf t
no ip domain-lookup
lin con 0
no exec-t
loggin sy
exit
转载于:https://blog.51cto.com/3083198/901038