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 Peering and Prefix Advertisement – Lab Validation

Labs – BGP Peering and Prefix Advertisement – Lab Validation

Task 1

R1#show ip interface brief
Interface           IP-Address      OK? Method Status                Protocol
FastEthernet0/0     150.1.1.1       YES NVRAM  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
Loopback1           190.1.1.1       YES manual up                    up

 

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
Loopback1           190.2.2.2       YES manual 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

 

R4#show ip interface brief
Interface          IP-Address      OK? Method Status                Protocol
FastEthernet0/0    150.4.4.4       YES NVRAM  up                    up
Serial0/0          10.0.0.14       YES NVRAM  up                    up
Loopback0          4.4.4.4         YES NVRAM  up                    up

Task 2

R1(config)#router bgp 111
R1(config-router)#bgp router-id 1.1.1.1
R1(config-router)#neighbor 10.0.0.2 remote-as 222
R1(config-router)#network 150.1.1.0 mask 255.255.255.0
R1(config-router)#network 190.1.1.0 mask 255.255.255.0
R1(config-router)#end

 

R2(config)#router bgp 222
R2(config-router)#bgp router-id 2.2.2.2
R2(config-router)#neighbor 10.0.0.1 remote-as 111
R2(config-router)#network 150.2.2.0 mask 255.255.255.0
R2(config-router)#network 190.2.2.0 mask 255.255.255.0
R2(config-router)#end

Following the completion of this task, use the show ip bgp summary command to verify that the adjacency between R1 and R2 has been established:

R1#show ip bgp summary
BGP router identifier 1.1.1.1, local AS number 111
BGP table version is 5, main routing table version 5
4 network entries using 468 bytes of memory
4 path entries using 208 bytes of memory
3/2 BGP path/bestpath attribute entries using 372 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 1072 total bytes of memory
BGP activity 4/0 prefixes, 4/0 paths, scan interval 60 secs

Neighbor    V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
10.0.0.2    4   222       5       5        5    0    0 00:01:14        2

 

R2#show ip bgp summary
BGP router identifier 2.2.2.2, local AS number 222
BGP table version is 5, main routing table version 5
4 network entries using 468 bytes of memory
4 path entries using 208 bytes of memory
3/2 BGP path/bestpath attribute entries using 372 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 1072 total bytes of memory
BGP activity 4/0 prefixes, 4/0 paths, scan interval 60 secs

Neighbor     V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
10.0.0.1     4   111       5       5        5    0    0 00:01:03        2

Task 3

This task requires configuration on routers R1, R2 and R3 as follows:

R1(config)#router bgp 111
R1(config-router)#neighbor 3.3.3.3 remote-as 333
R1(config-router)#neighbor 3.3.3.3 update-source loopback 0
R1(config-router)#neighbor 3.3.3.3 ebgp-multihop 2
R1(config-router)#exit
R1(config)#ip route 3.3.3.3 255.255.255.255 serial 0/1

 

R2(config)#router bgp 222
R2(config-router)#neighbor 3.3.3.3 remote-as 333
R2(config-router)#neighbor 3.3.3.3 update-source loopback 0
R2(config-router)#neighbor 3.3.3.3 ebgp-multihop 2
R2(config-router)#exit
R2(config)#ip route 3.3.3.3 255.255.255.255 serial 0/1

 

R3(config)#router bgp 333
R3(config-router)#bgp router-id 3.3.3.3
R3(config-router)#neighbor EXTERNAL peer-group
R3(config-router)#neighbor EXTERNAL update-source loopback 0
R3(config-router)#neighbor EXTERNAL ebgp-multihop 2
R3(config-router)#neighbor 1.1.1.1 remote-as 111
R3(config-router)#neighbor 1.1.1.1 peer-group EXTERNAL
R3(config-router)#neighbor 2.2.2.2 remote-as 222
R3(config-router)#neighbor 2.2.2.2 peer-group EXTERNAL
R3(config-router)#network 150.3.3.0 mask 255.255.255.0
R3(config-router)#exit
R3(config)#ip route 1.1.1.1 255.255.255.255 serial 0/1
R3(config)#ip route 2.2.2.2 255.255.255.255 serial 1/1

Again, following the configuration, use the show ip bgp summary command to verify that the BGP peer relationships have been established:

R3#show ip bgp summary
BGP router identifier 3.3.3.3, local AS number 333
BGP table version is 8, main routing table version 8
5 network entries using 585 bytes of memory
9 path entries using 468 bytes of memory
6/3 BGP path/bestpath attribute entries using 744 bytes of memory
4 BGP AS-PATH entries using 96 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 1893 total bytes of memory
BGP activity 5/0 prefixes, 9/0 paths, scan interval 60 secs

Neighbor    V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
1.1.1.1     4   111       7       8        8    0    0 00:00:43        4
2.2.2.2     4   222       8       8        8    0    0 00:00:19        4

Next, complete the second requirement of this task by performing simple pings from R3:

R3#ping 150.1.1.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/4 ms

R3#ping 150.2.2.2

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

R3#ping 190.1.1.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 190.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/4 ms
R3#ping 190.2.2.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 190.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms

For the final verification, ping the 150.3.3.0/24 subnet from routers R1 and R2:

R1#ping 150.3.3.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms

 

R2#ping 150.3.3.3

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

Task 4

R3(config)#router ospf 3
R3(config-router)#router-id 3.3.3.3
R3(config-router)#exit
R3(config)#interface serial 0/0
R3(config-if)#ip ospf 3 area 0
R3(config-if)#exit
R3(config)#interface loopback 0
R3(config-if)#ip ospf 3 area 0
R3(config-if)#end

 

R4(config)#router ospf 4
R4(config-router)#router-id 4.4.4.4
R4(config-router)#redistribute connected subnets
R4(config-router)#exit
R4(config)#interface serial 0/0
R4(config-if)#ip ospf 4 area 0
R4(config-if)#exit
R4(config)#interface loopback 0
R4(config-if)#ip ospf 4 area 0
R4(config-if)#exit

Next, verify your configuration using the show ip ospf interfaces and the show ip ospf neighbor commands as follows:

R4#show ip ospf interface brief
Interface    PID   Area            IP Address/Mask    Cost  State Nbrs F/C
Lo0          4     0               4.4.4.4/32         1     LOOP  0/0
Fa0/0        4     0               150.4.4.4/24       1     DR    0/0
Se0/0        4     0               10.0.0.14/30       64    P2P   1/1

 

R4#show ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
3.3.3.3           0   FULL/  –        00:00:35    10.0.0.13       Serial0/0

And finally, verify that the 150.4.4.0/24 subnet exists in the LSDB of R3 as a Type 2 external LSA:

R3#show ip ospf database external 150.4.4.0

OSPF Router with ID (3.3.3.3) (Process ID 3)

Type-5 AS External Link States

Routing Bit Set on this LSA
LS age: 65
Options: (No TOS-capability, DC)
LS Type: AS External Link
  Link State ID: 150.4.4.0 (External Network Number )
  Advertising Router: 4.4.4.4
LS Seq Number: 80000001
Checksum: 0x6D84
Length: 36
Network Mask: /24
Metric Type: 2 (Larger than any link state path)
TOS: 0
Metric: 20
Forward Address: 0.0.0.0
External Route Tag: 0

Task 5

This task calls for the redistribution of both internal and external BGP routes into OSPF on R3. This is completed as follows:

R3(config)#router bgp 333
R3(config-router)#bgp redistribute-internal
R3(config-router)#exit
R3(config)#router ospf 3
R3(config-router)#redistribute bgp 333 subnets
R3(config-router)#end

Next, verify your configuration by looking at the LSDB on R3. The LSDB should now contain the Type 5 LSAs for all BGP prefixes as follows:

R3#show ip ospf database | begin Type-5
Type-5 AS External Link States

Link ID         ADV Router      Age         Seq#       Checksum Tag
150.1.1.0       3.3.3.3         837         0x80000001 0x00E7B7 111
150.2.2.0       3.3.3.3         837         0x80000001 0x00A687 222
150.3.3.0       3.3.3.3         837         0x80000001 0x00E327 0
150.4.4.0       4.4.4.4         249         0x80000001 0x006D84 0
190.1.1.0       3.3.3.3         837         0x80000001 0x00DD99 111
190.2.2.0       3.3.3.3         837         0x80000001 0x009C69 222

Next, verify the routing table on R4 using the show ip route command as follows:

R4#show ip route ospf | include O E2
O E2    190.1.1.0 [110/1] via 10.0.0.13, 00:03:14, Serial0/0
O E2    190.2.2.0 [110/1] via 10.0.0.13, 00:03:14, Serial0/0
O E2    150.1.1.0 [110/1] via 10.0.0.13, 00:03:14, Serial0/0
O E2    150.2.2.0 [110/1] via 10.0.0.13, 00:03:14, Serial0/0
O E2    150.3.3.0 [110/1] via 10.0.0.13, 00:03:14, Serial0/0

Task 6

Remember that by default BGP will only redistribute internal OSPF routes and Type 1 external routes. You must explicitly allow Type 2 external routes to be redistributed into BGP.

R3(config)#router bgp 333
R3(config-router)#redistribute ospf 3 match external 2
R3(config-router)#end

Verify this configuration by looking at the BGP RIB on R3 following the configuration:

R3#show ip bgp 150.4.4.0 255.255.255.0
BGP routing table entry for 150.4.4.0/24, version 9
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Flag: 0x820
Advertised to update-groups:
1
Local
    10.0.0.14 from 0.0.0.0 (3.3.3.3)
Origin incomplete, metric 20, localpref 100, weight 32768, valid, sourced, best

Additionally, also verify that the prefix is received by routers R1 and R2:

R1#show ip bgp 150.4.4.0 255.255.255.0
BGP routing table entry for 150.4.4.0/24, version 7
Paths: (2 available, best #2, table Default-IP-Routing-Table)
Flag: 0x820
Advertised to update-groups:
1
222 333
10.0.0.2 from 10.0.0.2 (2.2.2.2)
Origin incomplete, localpref 100, valid, external
333
3.3.3.3 from 3.3.3.3 (3.3.3.3)
Origin incomplete, metric 20, localpref 100, valid, external, best

 

R2#show ip bgp 150.4.4.0 255.255.255.0
BGP routing table entry for 150.4.4.0/24, version 8
Paths: (2 available, best #2, table Default-IP-Routing-Table)
Advertised to update-groups:
1
111 333
10.0.0.1 from 10.0.0.1 (1.1.1.1)
Origin incomplete, localpref 100, valid, external
333
3.3.3.3 from 3.3.3.3 (3.3.3.3)
Origin incomplete, metric 20, localpref 100, valid, external, best

At this point, neither R1 nor R2 should be able to ping the 150.4.4.0/24 subnet:

R1#ping 150.4.4.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.4.4.4, timeout is 2 seconds:
…..
Success rate is 0 percent (0/5)

 

R2#ping 150.4.4.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.4.4.4, timeout is 2 seconds:
…..
Success rate is 0 percent (0/5)

Task 7

This task requires you to think outside the box. The first restriction is that only a single static route can be used to complete this task. The second is that you are not allowed to configure additional redistribution to complete this task.

The first step is therefore to ensure that R1 and R2 can reach R4. Given that we can only use a single static route, we can configure a default route pointing to Null0 and configure R3 to advertise this to R1 and R2 via BGP. This is performed as follows:

R3(config)#ip route 0.0.0.0 0.0.0.0 null 0
R3(config)#router bgp 333
R3(config-router)#default-information originate
R3(config-router)#network 0.0.0.0 mask 0.0.0.0
R3(config-router)#end

Following this configuration, R3 shows the following entry for the default route:

R3#show ip bgp 0.0.0.0
BGP routing table entry for 0.0.0.0/0, version 10
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Flag: 0x820
Advertised to update-groups:
1
Local
0.0.0.0 from 0.0.0.0 (3.3.3.3)
Origin IGP, metric 0, localpref 100, weight 32768, valid, sourced, local, best

Next, routers R1 and R2 receive this default route via BGP as follows:

R1#show ip bgp 0.0.0.0
BGP routing table entry for 0.0.0.0/0, version 8
Paths: (2 available, best #2, table Default-IP-Routing-Table)
Advertised to update-groups:
1
222 333
10.0.0.2 from 10.0.0.2 (2.2.2.2)
Origin IGP, localpref 100, valid, external
333
3.3.3.3 from 3.3.3.3 (3.3.3.3)
Origin IGP, metric 0, localpref 100, valid, external, best

 

R2#show ip bgp 0.0.0.0
BGP routing table entry for 0.0.0.0/0, version 9
Paths: (2 available, best #2, table Default-IP-Routing-Table)
Flag: 0x820
Advertised to update-groups:
1
111 333
10.0.0.1 from 10.0.0.1 (1.1.1.1)
Origin IGP, localpref 100, valid, external
333
3.3.3.3 from 3.3.3.3 (3.3.3.3)
Origin IGP, metric 0, localpref 100, valid, external, best

Next, because we have a default route in the routing table, the default-information originate command can be issued under OSPF to advertise this to R4 as follows:

R3(config)#router ospf 3
R3(config-router)#default-information originate
R3(config-router)#end

NOTE: The always keyword is not required if a default route exists in the routing table

R3#show ip ospf database external 0.0.0.0

OSPF Router with ID (3.3.3.3) (Process ID 3)

Type-5 AS External Link States

LS age: 936
Options: (No TOS-capability, DC)
  LS Type: AS External Link
  Link State ID: 0.0.0.0 (External Network Number )
  Advertising Router: 3.3.3.3
LS Seq Number: 80000001
Checksum: 0x59F
Length: 36
Network Mask: /0
Metric Type: 2 (Larger than any link state path)
TOS: 0
Metric: 1
Forward Address: 0.0.0.0
External Route Tag: 3

The default route is now included in the routing table on R4:

R4#show ip route ospf | include O*E2
O E2    190.1.1.0 [110/1] via 10.0.0.13, 00:41:41, Serial0/0
O E2    190.2.2.0 [110/1] via 10.0.0.13, 00:41:41, Serial0/0
O E2    150.1.1.0 [110/1] via 10.0.0.13, 00:41:41, Serial0/0
O E2    150.2.2.0 [110/1] via 10.0.0.13, 00:41:41, Serial0/0
O E2    150.3.3.0 [110/1] via 10.0.0.13, 00:41:41, Serial0/0
O*E2 0.0.0.0/0 [110/1] via 10.0.0.13, 00:16:47, Serial0/0

And finally, use basic pings to validate your configuration as follows:

R4#ping 150.1.1.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/4 ms

R4#ping 190.1.1.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 190.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms

R4#ping 150.2.2.2

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

R4#ping 190.2.2.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 190.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms

 

R1#ping 150.4.4.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms

 

R2#ping 150.4.4.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 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.