Posted on Thursday 22 September 2011
As we all know that VRRP is a one of gateway redundancy protocol similiar with HSRP which is cisco proprietary protocol. It would be powerfull if we combine it with dynamic routing protocol such as ospf, eigrp as we frequently found it in campus or enterprise network. Here are the basic configuration of topology that i’ve simulated on GNS3.
VRRP and OSPF Topology on GNS3:
R1 Configuration:
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0/0
description TO_R2
ip address 10.10.10.1 255.255.255.252
speed 100
full-duplex
!
interface FastEthernet0/1
description TO_R3
ip address 20.20.20.1 255.255.255.252
speed 100
full-duplex
!
interface FastEthernet1/0
description TO_QEMU2
ip address 50.50.50.1 255.255.255.0
duplex auto
speed auto
!
router ospf 100
router-id 1.1.1.1
log-adjacency-changes
network 1.1.1.1 0.0.0.0 area 0
network 10.10.10.0 0.0.0.3 area 0
network 20.20.20.0 0.0.0.3 area 0
network 50.50.50.0 0.0.0.3 area 0
default-information originate
!
ip route 0.0.0.0 0.0.0.0 50.50.50.10
R2 Configuration:
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface FastEthernet0/0
description TO_SW1
no ip address
speed 100
full-duplex
!
interface FastEthernet0/0.2
description TO_VLAN2
encapsulation dot1Q 2
ip address 40.40.40.2 255.255.255.0
vrrp 2 ip 40.40.40.1
vrrp 2 priority 200
!
interface FastEthernet0/0.3
description TO_VLAN3
encapsulation dot1Q 3
ip address 60.60.60.2 255.255.255.0
vrrp 3 ip 60.60.60.1
vrrp 3 priority 200
!
interface FastEthernet0/1
description TO_R1
ip address 10.10.10.2 255.255.255.252
speed 100
full-duplex
!
interface FastEthernet1/0
description TO_R3
ip address 30.30.30.1 255.255.255.252
speed 100
full-duplex
!
router ospf 100
router-id 2.2.2.2
log-adjacency-changes
redistribute static
passive-interface FastEthernet0/0.2
passive-interface FastEthernet0/0.3
network 2.2.2.2 0.0.0.0 area 0
network 10.10.10.0 0.0.0.3 area 0
network 30.30.30.0 0.0.0.3 area 0
network 40.40.40.0 0.0.0.255 area 0
network 60.60.60.0 0.0.0.255 area 0
R3 Configuration:
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface FastEthernet0/0
description TO_SW1
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.2
description TO_VLAN2
encapsulation dot1Q 2
ip address 40.40.40.3 255.255.255.0
vrrp 2 ip 40.40.40.1
vrrp 2 priority 150
!
interface FastEthernet0/0.3
description TO_VLAN3
encapsulation dot1Q 3
ip address 60.60.60.3 255.255.255.0
vrrp 3 ip 60.60.60.1
vrrp 3 priority 150
!
interface FastEthernet0/1
description TO_R1
ip address 20.20.20.2 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet1/0
description TO_R2
ip address 30.30.30.2 255.255.255.252
duplex auto
speed auto
!
router ospf 100
router-id 3.3.3.3
log-adjacency-changes
passive-interface FastEthernet0/0.2
passive-interface FastEthernet0/0.3
network 3.3.3.3 0.0.0.0 area 0
network 20.20.20.0 0.0.0.3 area 0
network 30.30.30.0 0.0.0.3 area 0
network 40.40.40.0 0.0.0.255 area 0
network 60.60.60.0 0.0.0.255 area 0

