Having following requirements to configure First Hop Redundancy Protocol for one environment:
1. Use least public ip addresses
2. Track Internet facing interface and BGP routes
3. Primary router is high priority and will be kept active as possible as it can.

Configuration: 

track 1 interface GigabitEthernet0/1 line-protocol
!
track 2 ip route 0.0.0.0 0.0.0.0 reachability
!
track 3 list boolean and
 object 1
 object 2

BGP_1#sh run int g0/0
Building configuration…

Current configuration : 298 bytes
!
interface GigabitEthernet0/0
 ip address 99.46.16.162 255.255.255.192
 shutdown
 duplex auto
 speed auto
 vrrp 1 ip 99.46.16.162
 vrrp 1 timers advertise 3
 vrrp 1 timers learn
 vrrp 1 priority 120
 vrrp 1 authentication cisco
 vrrp 1 track 3 decrement 30
end
BGP_1#sh run int g0/1
Building configuration…

Current configuration : 161 bytes
!
interface GigabitEthernet0/1
 description Link with Cogeco BGP
 ip address 6.9.9.130 255.255.255.252
 ip access-group 100 in
 duplex auto
 speed auto
end

Verification:
BGP_1#show track 
Track 1
  Interface GigabitEthernet0/1 line-protocol
  Line protocol is Up
    1 change, last change 00:07:27
  Tracked by:
    VRRP GigabitEthernet0/0 1
Track 2
  IP route 0.0.0.0 0.0.0.0 reachability
  Reachability is Up (BGP)
    2 changes, last change 00:02:34
  First-hop interface is GigabitEthernet0/1
Track 3
  List boolean and
  Boolean AND is Up
    4 changes, last change 00:02:34
    object 1 Up
    object 2 Up
  Tracked by:
    VRRP GigabitEthernet0/0 1

BGP_1#sh ip route
Codes: L – local, C – connected, S – static, R – RIP, M – mobile, B – BGP
       D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
       N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
       E1 – OSPF external type 1, E2 – OSPF external type 2
       i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
       ia – IS-IS inter area, * – candidate default, U – per-user static route
       o – ODR, P – periodic downloaded static route, H – NHRP, l – LISP
       + – replicated route, % – next hop override

Gateway of last resort is 6.9.9.129 to network 0.0.0.0

B*    0.0.0.0/0 [20/0] via 6.9.9.129, 11:05:07
      66.0.0.0/8 is variably subnetted, 4 subnets, 3 masks
C        6.9.9.128/30 is directly connected, GigabitEthernet0/1
L        6.9.9.130/32 is directly connected, GigabitEthernet0/1
C        66.199.44.240/29 is directly connected, GigabitEthernet0/3
L        66.199.44.241/32 is directly connected, GigabitEthernet0/3
S     99.46.16.0/24 [1/0] via 66.199.44.242

By Jon

Leave a Reply