Lab 2: IOS-XE BGP IPv4 Address Family

This lab will show how to configure a basic Address Family (afi) ipv4 (safi) configuration. Router1:

  1. Configure BGP in AS 40000.
    1. RouterA(config)#router bgp 40000
  2. Set router as 10.1.1.99.
    1. RouterA(config)#bgp router-id 10.1.1.99
  3. Change BGP timers.
    1. Keepalive: 70
    2. Holdtime: 120
    3. RouterA(config)#timers bgp 70 120
  4. Log BGP events to system log.
    1. RouterA(config)#bgp log-neighbor-changes
  5. Configure Router2 as an eBGP neighbor in AS 45000, using directly connected ports.
    1. RouterA(config)#neighbor 192.168.1.1 remote-as 45000
  6. Configure address-family ipv4 under the router bgp configuration.
    1. RouterA(config)#address-family ipv4
  7. Set address family network to 10.1.1.0/24
    1. RouterA(config)#network 10.1.1.0 mask 255.255.255.0
  8. Activate network 10.1.1.0
    1. RouterA(config)#neighbor 192.168.1.1 activate

Router2:

  1. Configure BGP in AS 45000.
    1. RouterB(config)#router bgp 45000
  2. Set router as 172.17.1.99.
    1. RouterB(config)#bgp router-id 172.17.1.99
  3. Change BGP timers.
    1. Keepalive: 70
    2. Holdtime: 120
    3. RouterB(config)#timers bgp 70 120
  4. Log BGP events to system log.
    1. RouterB(config)#bgp log-neighbor-changes
  5. Configure Router1 as an eBGP neighbor in AS 40000, using directly connected ports.
    1. RouterB(config)#neighbor 192.168.1.2 remote-as 40000
  6. Configure address-family ipv4 under the router bgp configuration.
    1. RouterB(config)#address-family ipv4
  7. Set address family network to 172.17.1.0/24
    1. RouterB(config)#network 172.17.1.0 mask 255.255.255.0
  8. Activate network 172.17.1.0
    1. RouterB(config)#neighbor 192.168.1.2 activate
RouterA#show ip bgp
BGP table version is 3, local router ID is 10.1.1.99
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, 
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>  10.1.1.0/24      0.0.0.0                  0         32768 i
 *>  172.17.1.0/24    192.168.1.1              0             0 45000 i
RouterB#show ip bgp
BGP table version is 3, local router ID is 172.17.1.99
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, 
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>  10.1.1.0/24      192.168.1.2              0             0 40000 i
 *>  172.17.1.0/24    0.0.0.0                  0         32768 i

Another verification command is: show ip bgp neighbors

Lab 2: Answer
IOS-XE Labs