BGP – Tie Breaker, “We Love Oranges As Oranges Mean Pure Refreshment.” by Kevin Wallace

We = Weight

Love = Local Preference

Oranges = Originate

As = AS Path Length

Oranges = Origin Type

Mean = Multi-Exit Discriminator (MED)

Pure = Paths

Refreshment = Router ID

R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#router bgp 64500
R1(config-router)#neighbor 198.51.100.2 remote-as 64495
R1(config-router)#network 192.0.2.0 mask 255.255.255.0
R1(config-router)#end
R1#wri
*May  6 11:41:00.924: %SYS-5-CONFIG_I: Configured from console by console
R1#wri
Building configuration...
[OK]
R1#
*May  6 11:41:07.041: %GRUB-5-CONFIG_WRITING: GRUB configuration is being updated on disk. Please wait...
R1#
*May  6 11:41:08.260: %GRUB-5-CONFIG_WRITTEN: GRUB configuration was written to disk successfully.
R1#
*May  6 11:41:39.221: %BGP-5-ADJCHANGE: neighbor 198.51.100.2 Up
R1#show 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
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

      192.0.2.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.0.2.0/24 is directly connected, GigabitEthernet0/1
L        192.0.2.1/32 is directly connected, GigabitEthernet0/1
      198.51.100.0/24 is variably subnetted, 2 subnets, 2 masks
C        198.51.100.0/30 is directly connected, GigabitEthernet0/2
L        198.51.100.1/32 is directly connected, GigabitEthernet0/2
B     203.0.113.0/24 [20/0] via 198.51.100.2, 00:00:12

R1#show ip bgp
BGP table version is 3, local router ID is 198.51.100.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
              t secondary path,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>   192.0.2.0        0.0.0.0                  0         32768 i
 *>   203.0.113.0      198.51.100.2             0             0 64495 i

R2#conf term
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#router bgp 64495
R2(config-router)#neighbor 198.51.100.1 remote-as 64500
R2(config-router)#network 203
*May  6 11:41:53.511: %BGP-5-ADJCHANGE: neighbor 198.51.100.1 Up
R2(config-router)#network 203.0.113.0 mask 255.255.255.0
R2(config-router)#end
R2#
*May  6 11:42:13.623: %SYS-5-CONFIG_I: Configured from console by console
R2#show 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
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

B     192.0.2.0/24 [20/0] via 198.51.100.1, 00:00:29
      198.51.100.0/24 is variably subnetted, 2 subnets, 2 masks
C        198.51.100.0/30 is directly connected, GigabitEthernet0/1
L        198.51.100.2/32 is directly connected, GigabitEthernet0/1
      203.0.113.0/24 is variably subnetted, 2 subnets, 2 masks
C        203.0.113.0/24 is directly connected, GigabitEthernet0/2
L        203.0.113.1/32 is directly connected, GigabitEthernet0/2

R2#show ip bgp
BGP table version is 3, local router ID is 203.0.113.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
              t secondary path,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>   192.0.2.0        198.51.100.1             0             0 64500 i
 *>   203.0.113.0      0.0.0.0                  0         32768 i

Leave a comment