www.howtonetwork.org

CCNA & CCNP Certifcation Training

  • About
  • Contact
  • FAQ
  • Join
  • Home
  • CCNA
    • ICND1
    • ICND2
    • 101 CCNA LABS
  • CCNP
    • ROUTE
    • SWITCH
    • TSHOOT
    • 101 CCNP LABS
  • CompTIA
    • Security+
    • Network+
  • Design
    • CCDA
    • CCDP
You are here: Home / ROUTE / Module 6 / Labs – BGP Path Selection and Manipulation – Lab Validation

Labs – BGP Path Selection and Manipulation – Lab Validation

Task 1

R2#show ip interface brief
Interface           IP-Address      OK? Method Status                Protocol
FastEthernet0/0     150.2.2.2       YES NVRAM  up                    up
Serial0/0           10.0.0.2        YES NVRAM  up                    up
Serial0/1           10.0.0.9        YES NVRAM  up                    up
Loopback0           2.2.2.2         YES NVRAM  up                    up

 

R3#show ip interface brief
Interface          IP-Address      OK? Method Status                Protocol
FastEthernet0/0    150.3.3.3       YES NVRAM  up                    up
Serial0/0          10.0.0.13       YES NVRAM  up                    up
Serial0/1          10.0.0.6        YES NVRAM  up                    up
Serial1/1          10.0.0.10       YES NVRAM  up                    up
Loopback0          3.3.3.3         YES NVRAM  up                    up

For routers R1 and R4, you will need to configure the additional 190.x.x.x subnets as secondary IP addresses on the FastEthernet0/0 interfaces as follows:

R1(config)#interface fastethernet 0/0
R1(config-if)#ip address 190.1.1.1 255.255.255.0
R1(config-if)#ip address 190.2.2.1 255.255.255.0 secondary
R1(config-if)#ip address 190.3.3.1 255.255.255.0 secondary
R1(config-if)#ip address 190.4.4.1 255.255.255.0 secondary

 

R4(config)#interface fastethernet 0/0
R4(config-if)#ip address 190.1.1.2 255.255.255.0
R4(config-if)#ip address 190.1.1.2 255.255.255.0
R4(config-if)#ip address 190.1.1.4 255.255.255.0
R4(config-if)#ip address 190.2.2.4 255.255.255.0 secondary
R4(config-if)#ip address 190.3.3.4 255.255.255.0 secondary
R4(config-if)#ip address 190.4.4.4 255.255.255.0 secondary
R4(config-if)#end

NOTE: Secondary IP addresses do NOT show up in the output of the show ip interfaces brief command. Instead, you must use the show interfaces or show run commands

R1#show ip int brief
Interface        IP-Address      OK? Method Status                Protocol
FastEthernet0/0  190.1.1.1       YES manual up                    up
Serial0/0        10.0.0.1        YES NVRAM  up                    up
Serial0/1        10.0.0.5        YES NVRAM  up                    up
Loopback0        1.1.1.1         YES NVRAM  up                    up

 

R4#show ip interface brief
Interface        IP-Address      OK? Method Status                Protocol
FastEthernet0/0  190.1.1.4       YES manual up                    up
Serial0/0        10.0.0.14       YES NVRAM  up                    up
Serial0/1        unassigned      YES NVRAM  administratively down down
Serial0/2        unassigned      YES NVRAM  administratively down down
Loopback0        4.4.4.4         YES NVRAM  up                    up

Task 2

By default, only the DR will generate Type 2 LSAs on multi-access segments (transit networks). In the event that the DR is removed, the BDR assumes this role. Therefore, to ensure that R4 never generate Type 2 LSAs, it must be configured so that it will never be either the DR or BDR:

R1(config)#router ospf 1
R1(config-router)#router-id 1.1.1.1
R1(config-router)#exit
R1(config)#interface loopback 0
R1(config-if)#ip ospf 1 area 0
R1(config-if)#exit
R1(config)#interface fastethernet 0/0
R1(config-if)#ip ospf 1 area 0 secondaries none

 

R4(config)#router ospf 4
R4(config-router)#router-id 4.4.4.4
R4(config-router)#exit
R4(config)#interface loopback 0
R4(config-if)#ip ospf 4 area 0
R4(config-if)#exit
R4(config)#interface fastethernet 0/0
R4(config-if)#ip ospf priority 0
R4(config-if)#ip ospf 4 area 0 secondaries none
R4(config-if)#end

Following this configuration, first verify that the secondary subnets on the FastEthernet links on R1 and R4 are not advertised via OSPF using the show ip ospf interface command:

R1#show ip ospf interface fastethernet 0/0
FastEthernet0/0 is up, line protocol is up
Internet Address 190.1.1.1/24, Area 0
Process ID 1, Router ID 1.1.1.1, Network Type BROADCAST, Cost: 1
Enabled by interface config, excluding secondary ip addresses
  Transmit Delay is 1 sec, State DR, Priority 1
  Designated Router (ID) 1.1.1.1, Interface address 190.1.1.1
  No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
oob-resync timeout 40
Hello due in 00:00:07
Supports Link-local Signaling (LLS)
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
    Adjacent with neighbor 4.4.4.4
  Suppress hello for 0 neighbor(s)

 

R4#show ip ospf interface fastethernet 0/0
FastEthernet0/0 is up, line protocol is up
Internet Address 190.1.1.4/24, Area 0
Process ID 4, Router ID 4.4.4.4, Network Type BROADCAST, Cost: 1
  Enabled by interface config, excluding secondary ip addresses
Transmit Delay is 1 sec, State DROTHER, Priority 0
Designated Router (ID) 1.1.1.1, Interface address 190.1.1.1
  No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
oob-resync timeout 40
Hello due in 00:00:08
Supports Link-local Signaling (LLS)
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
    Adjacent with neighbor 1.1.1.1  (Designated Router)
Suppress hello for 0 neighbor(s)

Task 3

R3(config)#router eigrp 1
R3(config-router)#network 3.3.3.3 0.0.0.0
R3(config-router)#network 10.0.0.8 0.0.0.3
R3(config-router)#no auto-summary
R3(config-router)#end

 

R2(config)#router eigrp 1
R2(config-router)#network 2.2.2.2 0.0.0.0
R2(config-router)#network 10.0.0.8 0.0.0.3
R2(config-router)#no auto-summary
R2(config-router)#end

Verify your configuration using the show ip eigrp interfaces command as follows:

R2#show ip eigrp interfaces detail
IP-EIGRP interfaces for process 1
Xmit Queue   Mean   Pacing Time   Multicast    Pending
Interface        Peers  Un/Reliable  SRTT   Un/Reliable   Flow Timer   Routes
Lo0                0        0/0         0       0/1            0           0
Hello interval is 5 sec
Next xmit serial <none>
Un/reliable mcasts: 0/0  Un/reliable ucasts: 0/0
Mcast exceptions: 0  CR packets: 0  ACKs suppressed: 0
Retransmissions sent: 0  Out-of-sequence rcvd: 0
Authentication mode is not set
Use multicast
Se0/1              1        0/0         5       0/15          50           0
Hello interval is 5 sec
Next xmit serial <none>
Un/reliable mcasts: 0/0  Un/reliable ucasts: 3/6
Mcast exceptions: 0  CR packets: 0  ACKs suppressed: 3
Retransmissions sent: 0  Out-of-sequence rcvd: 0
Authentication mode is not set
Use unicast

Task 4

This task is straightforward which requires a route map. The task is completed as follows:

R1(config)#ip prefix-list NET-2 seq 5 permit 190.2.2.0/24
R1(config)#ip prefix-list NET-3 seq 5 permit 190.3.3.0/24
R1(config)#ip prefix-list NET-4 seq 5 permit 190.4.4.0/24
R1(config)#route-map CONNECTED permit 10
R1(config-route-map)#match ip address prefix-list NET-2
R1(config-route-map)#set origin igp
R1(config-route-map)#set local-preference 222
R1(config-route-map)#exit
R1(config)#route-map CONNECTED permit 20
R1(config-route-map)#match ip address prefix-list NET-3
R1(config-route-map)#set origin igp
R1(config-route-map)# set local-preference 333
R1(config-route-map)#exit
R1(config)#route-map CONNECTED permit 30
R1(config-route-map)#match ip address prefix-list NET-4
R1(config-route-map)#set origin igp
R1(config-route-map)# set local-preference 444
R1(config-route-map)#exit
R1(config)#router bgp 254
R1(config-router)#bgp router-id 1.1.1.1
R1(config-router)#redistribute connected route-map CONNECTED
R1(config-router)#neighbor 4.4.4.4 remote-as 254
R1(config-router)#neighbor 4.4.4.4 update-source loopback 0
R1(config-router)#end

 

R4(config)#ip prefix-list NET-2 seq 5 permit 190.2.2.0/24
R4(config)#ip prefix-list NET-3 seq 5 permit 190.3.3.0/24
R4(config)#ip prefix-list NET-4 seq 5 permit 190.4.4.0/24
R4(config)#route-map CONNECTED permit 10
R4(config-route-map)#match ip address prefix-list NET-2
R4(config-route-map)#set origin igp
R4(config-route-map)#set local-preference 222
R4(config-route-map)#exit
R4(config)#route-map CONNECTED permit 20
R4(config-route-map)#match ip address prefix-list NET-3
R4(config-route-map)#set origin igp
R4(config-route-map)#set local-preference 333
R4(config-route-map)#exit
R4(config)#route-map CONNECTED permit 30
R4(config-route-map)#match ip address prefix-list NET-4
R4(config-route-map)#set origin igp
R4(config-route-map)#set local-preference 444
R4(config-route-map)#exit
R4(config)#router bgp 254
R4(config-router)#bgp router-id 4.4.4.4
R4(config-router)#redistribute connected route-map CONNECTED
R4(config-router)#neighbor 1.1.1.1 remote-as 254
R4(config-router)#neighbor 1.1.1.1 update-source loopback 0
R4(config-router)#end

Following this configuration, use the show ip bgp summary and show ip bgp commands to verify your implementation

R1#show ip bgp summary
BGP router identifier 1.1.1.1, local AS number 254
BGP table version is 10, main routing table version 10
3 network entries using 351 bytes of memory
6 path entries using 312 bytes of memory
4/3 BGP path/bestpath attribute entries using 496 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 1159 total bytes of memory
BGP activity 3/0 prefixes, 6/0 paths, scan interval 60 secs

Neighbor     V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
4.4.4.4      4   254       9       9       10    0    0 00:02:23        3

 

R1#show ip bgp
BGP table version is 10, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incomplete

Network          Next Hop            Metric LocPrf Weight Path
* i190.2.2.0/24     4.4.4.4                  0    222      0 i
*>                  0.0.0.0                  0    222  32768 i
* i190.3.3.0/24     4.4.4.4                  0    333      0 i
*>                  0.0.0.0                  0    333  32768 i
* i190.4.4.0/24     4.4.4.4                  0    444      0 i
*>                  0.0.0.0                  0    444  32768 i

 

R4#show ip bgp summary
BGP router identifier 4.4.4.4, local AS number 254
BGP table version is 7, main routing table version 7
3 network entries using 351 bytes of memory
6 path entries using 312 bytes of memory
4/3 BGP path/bestpath attribute entries using 496 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 1159 total bytes of memory
BGP activity 3/0 prefixes, 6/0 paths, scan interval 60 secs

Neighbor    V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
1.1.1.1     4   254       8       8        7    0    0 00:01:47        3

 

R4#show ip bgp
BGP table version is 7, local router ID is 4.4.4.4
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incomplete

Network          Next Hop            Metric LocPrf Weight Path
* i190.2.2.0/24     1.1.1.1                  0    222      0 i
*>                  0.0.0.0                  0    222  32768 i
* i190.3.3.0/24     1.1.1.1                  0    333      0 i
*>                  0.0.0.0                  0    333  32768 i
* i190.4.4.0/24     1.1.1.1                  0    444      0 i
*>                  0.0.0.0                  0    444  32768 i

Task 5

R3(config)#router bgp 5
R3(config-router)#bgp router-id 3.3.3.3
R3(config-router)#network 150.3.3.0 mask 255.255.255.0
R3(config-router)#neighbor 2.2.2.2 remote-as 5
R3(config-router)#neighbor 2.2.2.2 update-source loopback 0
R3(config-router)#end

 

R2(config)#router bgp 5
R2(config-router)#bgp router-id 2.2.2.2
R2(config-router)#network 150.2.2.0 mask 255.255.255.0
R2(config-router)#neighbor 3.3.3.3 remote-as 5
R2(config-router)#neighbor 3.3.3.3 update-source loopback 0
R2(config-router)#end

Following this configuration, use the show ip bgp summary and show ip bgp commands to verify your implementation

R3#show ip bgp summary
BGP router identifier 3.3.3.3, local AS number 5
BGP table version is 5, main routing table version 5
2 network entries using 234 bytes of memory
2 path entries using 104 bytes of memory
3/2 BGP path/bestpath attribute entries using 372 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 710 total bytes of memory
BGP activity 2/0 prefixes, 2/0 paths, scan interval 60 secs

Neighbor     V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
2.2.2.2      4     5       4       4        5    0    0 00:00:35        1

 

R3#show ip bgp
BGP table version is 5, local router ID is 3.3.3.3
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incomplete

Network          Next Hop            Metric LocPrf Weight Path
*>i150.2.2.0/24     2.2.2.2                  0    100      0 i
*> 150.3.3.0/24     0.0.0.0                  0         32768 i

 

R2#show ip bgp summary
BGP router identifier 2.2.2.2, local AS number 5
BGP table version is 4, main routing table version 4
2 network entries using 234 bytes of memory
2 path entries using 104 bytes of memory
3/2 BGP path/bestpath attribute entries using 372 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 710 total bytes of memory
BGP activity 2/0 prefixes, 2/0 paths, scan interval 60 secs

Neighbor     V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
3.3.3.3      4     5       5       5        4    0    0 00:01:08        1

 

R2#show ip bgp
BGP table version is 4, local router ID is 2.2.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incomplete

Network          Next Hop            Metric LocPrf Weight Path
*> 150.2.2.0/24     0.0.0.0                  0         32768 i
*>i150.3.3.0/24     3.3.3.3                  0    100      0 i

Task 6

R1(config)#router bgp 254
R1(config-router)#neighbor 10.0.0.2 remote-as 5
R1(config-router)#neighbor 10.0.0.6 remote-as 5
R1(config-router)#end

 

R2(config)#router bgp 5
R2(config-router)#neighbor 10.0.0.1 remote-as 254
R2(config-router)#end

 

R3(config)#router bgp 5
R3(config-router)#neighbor 10.0.0.5 remote-as 254
R3(config-router)#end

 

Following this configuration task, use the show ip bgp summary command to verify your implementation. Following is the output of this command on R1:

R1#show ip bgp summary
BGP router identifier 1.1.1.1, local AS number 254
BGP table version is 12, main routing table version 12
5 network entries using 585 bytes of memory
10 path entries using 520 bytes of memory
6/5 BGP path/bestpath attribute entries using 744 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 1873 total bytes of memory
BGP activity 5/0 prefixes, 10/0 paths, scan interval 60 secs

Neighbor     V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
4.4.4.4      4   254      19      21       12    0    0 00:12:52        3
10.0.0.2     4     5       7      10       12    0    0 00:01:14        2
10.0.0.6     4     5       7      10       12    0    0 00:01:25        2

Task 7

R3(config)#router bgp 5
R3(config-router)#neighbor 10.0.0.14 remote-as 254
R3(config-router)#end

 

R4(config)#router bgp 254
R4(config-router)#neighbor 10.0.0.13 remote-as 5
R4(config-router)#end

Following this configuration task, use the show ip bgp summary command to verify your implementation. Following is the output of this command on R3:

R3#show ip bgp summary
BGP router identifier 3.3.3.3, local AS number 5
BGP table version is 8, main routing table version 8
5 network entries using 585 bytes of memory
11 path entries using 572 bytes of memory
5/3 BGP path/bestpath attribute entries using 620 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 1801 total bytes of memory
BGP activity 5/0 prefixes, 11/0 paths, scan interval 60 secs

Neighbor     V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
2.2.2.2      4     5      39      39        8    0    0 00:34:27        4
10.0.0.5     4   254      40      37        8    0    0 00:31:31        3
10.0.0.14    4   254      33      33        8    0    0 00:26:04        3

Task 8

This task requires AS_PATH prepending on R1 and R4. Using the same prefix lists that were configured on these two routers, this is completed as follows:

R1(config)#route-map AS-PATH-PREPEND permit 10
R1(config-route-map)#match ip address prefix-list NET-2
R1(config-route-map)#set as-path prepend 222
R1(config-route-map)#exit
R1(config)#route-map AS-PATH-PREPEND permit 20
R1(config-route-map)#match ip address prefix-list NET-3
R1(config-route-map)#set as-path prepend 333
R1(config-route-map)#exit
R1(config)#route-map AS-PATH-PREPEND permit 30
R1(config-route-map)#match ip address prefix-list NET-4
R1(config-route-map)#set as-path prepend 444
R1(config-route-map)#exit
R1(config)#router bgp 254
R1(config-router)#neighbor 10.0.0.2 route-map AS-PATH-PREPEND out
R1(config-router)#neighbor 10.0.0.6 route-map AS-PATH-PREPEND out
R1(config-router)#end
R1#clear ip bgp * soft out

 

R4(config)#route-map AS-PATH-PREPEND permit 10
R4(config-route-map)#match ip address prefix-list NET-2
R4(config-route-map)#set as-path prepend 222
R4(config-route-map)#exit
R4(config)#route-map AS-PATH-PREPEND permit 20
R4(config-route-map)#match ip address prefix-list NET-3
R4(config-route-map)#set as-path prepend 333
R4(config-route-map)#exit
R4(config)#route-map AS-PATH-PREPEND permit 30
R4(config-route-map)#match ip address prefix-list NET-4
R4(config-route-map)#set as-path prepend 444
R4(config-route-map)#exit
R4(config)#router bgp 254
R4(config-router)#neighbor 10.0.0.13 route-map AS-PATH-PREPEND out
R4(config-router)#end
R4#
R4#clear ip bgp * soft out

Following this configuration, use the show ip bgp command on R2 and R3 to validate:

R2#show ip bgp
BGP table version is 10, local router ID is 2.2.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incomplete

Network          Next Hop            Metric LocPrf Weight Path
*> 150.2.2.0/24     0.0.0.0                  0         32768 i
*>i150.3.3.0/24     3.3.3.3                  0    100      0 i
*> 190.2.2.0/24     10.0.0.1                 0             0 254 222 i
* i                 10.0.0.14                0    100      0 254 222 i
*> 190.3.3.0/24     10.0.0.1                 0             0 254 333 i
* i                 10.0.0.14                0    100      0 254 333 i
*> 190.4.4.0/24     10.0.0.1                 0             0 254 444 i
* i                 10.0.0.14                0    100      0 254 444 i

 

R3#show ip bgp
BGP table version is 14, local router ID is 3.3.3.3
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incomplete

Network          Next Hop            Metric LocPrf Weight Path
*>i150.2.2.0/24     2.2.2.2                  0    100      0 i
*> 150.3.3.0/24     0.0.0.0                  0         32768 i
*> 190.2.2.0/24     10.0.0.14                0             0 254 222 i
* i                 10.0.0.1                 0    100      0 254 222 i
*                   10.0.0.5                 0             0 254 222 i
*> 190.3.3.0/24     10.0.0.14                0             0 254 333 i
* i                 10.0.0.1                 0    100      0 254 333 i
*                   10.0.0.5                 0             0 254 333 i
*> 190.4.4.0/24     10.0.0.14                0             0 254 444 i
* i                 10.0.0.1                 0    100      0 254 444 i
*                   10.0.0.5                 0             0 254 444 i

Task 9

This task requires the use of AS_PATH ACLs in conjunction with the LOCAL_PREF attribute. This task is completed as follows:

R3(config)#ip as-path access-list 1 permit _222$
R3(config)#ip as-path access-list 2 permit _333$
R3(config)#route-map AS-222-INBOUND permit 10
R3(config-route-map)#match as-path 1
R3(config-route-map)#set local-preference 200
R3(config-route-map)#exit
R3(config)#route-map AS-333-INBOUND permit 10
R3(config-route-map)#match as-path 2
R3(config-route-map)#set local-preference 200
R3(config-route-map)#exit
R3(config)#router bgp 5
R3(config-router)#neighbor 10.0.0.14 route-map AS-222-INBOUND in
R3(config-router)#neighbor 10.0.0.5 route-map AS-333-INBOUND in
R3(config-router)#end
R3#clear ip bgp * soft in

 

R2(config)#ip as-path access-list 1 permit _444$
R2(config)#route-map AS-444-INBOUND permit 10
R2(config-route-map)#match as-path 1
R2(config-route-map)#set local-preference 1
R2(config-route-map)#exit
R2(config)#router bgp 5
R2(config-router)#neighbor 10.0.0.1 route-map AS-444-INBOUND in
R2(config-router)#end
R2#clear ip bgp * soft in

Following this configuration, use the show ip bgp command to verify your configuration:

R3#show ip bgp
BGP table version is 17, local router ID is 3.3.3.3
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incomplete

Network          Next Hop            Metric LocPrf Weight Path
*>i150.2.2.0/24     2.2.2.2                  0    100      0 i
*> 150.3.3.0/24     0.0.0.0                  0         32768 i
*> 190.2.2.0/24     10.0.0.14                0    200      0 254 222 i
*> 190.3.3.0/24     10.0.0.5                 0    200      0 254 333 i
* i190.4.4.0/24     10.0.0.1                 0      1      0 254 444 i

 

R2#show ip bgp
BGP table version is 13, local router ID is 2.2.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incomplete

Network          Next Hop            Metric LocPrf Weight Path
*> 150.2.2.0/24     0.0.0.0                  0         32768 i
*>i150.3.3.0/24     3.3.3.3                  0    100      0 i
* i190.2.2.0/24     10.0.0.14                0    200      0 254 222 i
* i190.3.3.0/24     10.0.0.5                 0    200      0 254 333 i
*> 190.4.4.0/24     10.0.0.1                 0      1      0 254 444 i

Task 10

Because by default iBGP peers will never change the NEXT_HOP when advertising routes to another iBGP peer, each router in AS 5 shows the NEXT_HOP for external routes as inaccessible. For example, R3 shows the following for the 192.4.4.0/24 subnet it gets from R2:

R3#show ip bgp 190.4.4.0/24
BGP routing table entry for 190.4.4.0/24, version 16
Paths: (1 available, no best path)
Flag: 0x820
Not advertised to any peer
254 444
10.0.0.1 (inaccessible) from 2.2.2.2 (2.2.2.2)
Origin IGP, metric 0, localpref 1, valid, internal

To resolve this issue, the NEXT_HOP attribute for external routes must be changed as follows:

R3(config)#router bgp 5
R3(config-router)#neighbor 2.2.2.2 next-hop-self
R3(config-router)#end
R3#clear ip bgp * soft out

 

R2(config)#router bgp 5
R2(config-router)#neighbor 3.3.3.3 next-hop-self
R2(config-router)#end
R2#clear ip bgp * soft out

Following this configuration, R3 now shows the following entry:

R3#show ip bgp 190.4.4.0/24
BGP routing table entry for 190.4.4.0/24, version 18
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Advertised to update-groups:
2
254 444
2.2.2.2 (metric 2297856) from 2.2.2.2 (2.2.2.2)
Origin IGP, metric 0, localpref 1, valid, internal, best

Following this configuration, the two routers can ping the 190.x.x.x subnets from their 150.x.x.x LAN subnets as follows:

R3#ping 190.4.4.1 source 150.3.3.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 190.4.4.1, timeout is 2 seconds:
Packet sent with a source address of 150.3.3.3
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms

R3#ping 190.4.4.4 source 150.3.3.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 190.4.4.4, timeout is 2 seconds:
Packet sent with a source address of 150.3.3.3
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms

 

R2#ping 190.2.2.1 source 150.2.2.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 190.2.2.1, timeout is 2 seconds:
Packet sent with a source address of 150.2.2.2
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms

R2#ping 190.2.2.4 source 150.2.2.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 190.2.2.4, timeout is 2 seconds:
Packet sent with a source address of 150.2.2.2
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms

R2#ping 190.3.3.1 source 150.2.2.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 190.3.3.1, timeout is 2 seconds:
Packet sent with a source address of 150.2.2.2
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms

R2#ping 190.3.3.4 source 150.2.2.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 190.3.3.4, timeout is 2 seconds:
Packet sent with a source address of 150.2.2.2
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/8 ms

 

Prev

Next

About Us

This is a free bonus site for members of www.howtonetwork.com

Copyright

The content on this copyright Reality Press Ltd.
Copyright Reality Press Ltd.