=================================
R1#sh run
!
hostname R1
!
!
track 1 rtr 1
!
interface FastEthernet0/0
ip address 192.168.1.250 255.255.255.0
duplex auto
speed auto
vrrp 1 ip 192.168.1.254
vrrp 1 priority 110
vrrp 1 authentication md5 key-string 123
vrrp 1 track 1 decrement 50
!
!
router ospf 1
log-adjacency-changes
network 10.1.1.0 0.0.0.3 area 0.0.0.0
network 192.168.1.0 0.0.0.255 area 0.0.0.0
!
ip sla 1
icmp-echo 10.1.1.2 source-interface FastEthernet0/1
frequency 5
ip sla schedule 1 life forever start-time now
!
!
R1#
=================================
=================================
R2#sh run
!
hostname R2
!
track 1 rtr 1
!
interface FastEthernet0/0
ip address 192.168.1.251 255.255.255.0
duplex auto
speed auto
vrrp 1 ip 192.168.1.254
vrrp 1 authentication md5 key-string 123
vrrp 1 track 1 decrement 50
!
interface FastEthernet0/1
ip address 10.1.2.1 255.255.255.252
duplex auto
speed auto
!
!
router ospf 1
log-adjacency-changes
network 10.1.2.0 0.0.0.3 area 0.0.0.0
network 192.168.1.0 0.0.0.255 area 0.0.0.0
!
ip sla 1
icmp-echo 10.1.2.2 source-interface FastEthernet0/1
frequency 5
ip sla schedule 1 life forever start-time now
!
end
R2#
=================================
=================================
R3#
R3#
R3#sh run
!
hostname R3
!
!
track 1 rtr 1
!
!
interface FastEthernet0/0
ip address 172.22.0.250 255.255.255.0
duplex auto
speed auto
vrrp 1 ip 172.22.0.254
vrrp 1 priority 110
vrrp 1 authentication md5 key-string 123
vrrp 1 track 1 decrement 50
!
interface FastEthernet0/1
ip address 10.1.1.2 255.255.255.252
duplex auto
speed auto
!
!
router ospf 1
log-adjacency-changes
network 10.1.1.0 0.0.0.3 area 0.0.0.0
network 172.22.0.0 0.0.0.255 area 0.0.0.0
!
!
ip sla 1
icmp-echo 10.1.1.1 source-interface FastEthernet0/1
frequency 5
ip sla schedule 1 life forever start-time now
!
!
end
R3#
==================================================================
R4#sh run
!
hostname R4
!
!
interface FastEthernet0/0
ip address 172.22.0.251 255.255.255.0
duplex auto
speed auto
vrrp 1 ip 172.22.0.254
vrrp 1 authentication md5 key-string 123
!
interface FastEthernet0/1
ip address 10.1.2.2 255.255.255.252
duplex auto
speed auto
!
!
router ospf 1
log-adjacency-changes
network 10.1.2.0 0.0.0.3 area 0.0.0.0
network 172.22.0.0 0.0.0.255 area 0.0.0.0
!
!
ip sla 1
icmp-echo 10.1.2.1 source-interface FastEthernet0/1
frequency 5
ip sla schedule 1 life forever start-time now
!
end
R4#
=================================
沒有留言:
張貼留言