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 / 101 CCNP Labs Solutions / CCNP Lab 031 Solution: Border Gateway Protocol Lab

CCNP Lab 031 Solution: Border Gateway Protocol Lab

Lab Objective:

The focus of this lab is to understand BGP implementation and configuration in Cisco IOS routers. Additional technologies tested include route reflectors, route-maps, and security.

Lab Topology:

The lab network topology is illustrated below:

department604

 

IMPORTANT NOTE

If you are using the www.howtonetwork.net racks, please bring up the LAN interfaces connected to the routers by issuing the no shutdown command on the connected switches. If you are using a home lab with no
Switches, you can bring up the LAN interfaces using the following configurations on your routers:

interface fastethernet 0/0
 no keepalive
 loopback
 no shutdown

Alternately, you can simply connect the interfaces to a hub or switch if you have one available in your own lab.

 

Task 1

Configure hostnames and IP addressing on all routers as illustrated in the network topology.

Task 2

Without using peer groups, configure internal BGP on R1, R2, R3, and R4 as follows:

  1. Statically configure a BGP router ID using the router number, e.g. 1.1.1.1 for R1, etc.
  2. All routers should peer using their physical interface addresses
  3. R1 should peer to R2 and R3
  4. R2 should peer to R1
  5. R3 should peer to R1 and R4
  6. R4 should peer to R3
  7. All routers should use the TCP MD5 authentication password ‘CCNP’
  8. BGP Hellos should be sent out every 5 seconds
  9. All of the BGP speakers should advertise a Hold Time of 15 seconds
  10. The COMMUNITIES attribute (standard) should be supported

 

Task 3

Advertise the 150.1.1.0/24, 150.2.2.0, and 150.3.3.0/24 subnets on R1, R2, and R3 via BGP. These prefixes must be advertised with the standard community values listed below. You are NOT allowed to redistribute these prefixes into BGP. Additionally, you are NOT allowed to use outbound or inbound route-maps when completing this task. Ensure that the community values are displayed in ASN:nn (RFC 1997 – BGP Communities Attribute) format. Verify your configuration using the appropriate commands.

  1. The 150.1.1.0/24: community value of 254:111
  2. The 150.2.2.0/24: community value of 254:222
  3. The 150.3.3.0/24: community value of 254:333

 

Task 4

Configure your network so that all 150.x.x.x/24 subnets can reach each other. You are NOT allowed to use any static routes in your solution. Additionally, you are NOT allowed to advertise or redistribute the 150.4.4.0/24 subnet into BGP on R4. Instead, consider other BGP features to complete this task. You are NOT allowed to configure R2 or R4. Additionally, you are NOT allowed to configure a dynamic routing protocol to complete this task.

Next, verify your configuration using the appropriate commands as well as the extended ping function. For example, on R1 use the extended ping function to send a ping to 150.2.2.2 sourced from 150.1.1.1, etc, etc. All pings should work when the task is completed correctly.

Lab Validation

Task 1

Please refer to previous tasks for basic IP addressing and hostname configuration. This will not be included in this section to avoid being redundant.

Task 2

The requirements of this task are straightforward and are completed as follows:

R1(config)#router bgp 254
R1(config-router)#bgp router-id 1.1.1.1
R1(config-router)#neighbor 10.0.0.2 remote-as 254
R1(config-router)#neighbor 10.0.0.2 timers 5 15
% Warning: A hold time of less than 20 seconds increases
the chances of peer flapping
R1(config-router)#neighbor 10.0.0.2 password CCNP
R1(config-router)#neighbor 10.0.0.2 send-community standard
R1(config-router)#neighbor 10.0.0.6 remote-as 254
R1(config-router)#neighbor 10.0.0.6 timers 5 15
% Warning: A hold time of less than 20 seconds increases
the chances of peer flapping
R1(config-router)#neighbor 10.0.0.6 password CCNP
R1(config-router)#neighbor 10.0.0.6 send-community standard
R1(config-router)#exit
R2(config)#router bgp 254
R2(config-router)#bgp router-id 2.2.2.2
R2(config-router)#neighbor 10.0.0.1 remote-as 254
R2(config-router)#neighbor 10.0.0.1 timers 5 15
% Warning: A hold time of less than 20 seconds increases
the chances of peer flapping
R2(config-router)#neighbor 10.0.0.1 password CCNP
R2(config-router)#neighbor 10.0.0.1 send-community standard
R2(config-router)#exit
R3(config)#router bgp 254
R3(config-router)#bgp router-id 3.3.3.3
R3(config-router)#neighbor 10.0.0.5 remote-as 254
R3(config-router)#neighbor 10.0.0.5 timers 5 15
% Warning: A hold time of less than 20 seconds increases
the chances of peer flapping
R3(config-router)#neighbor 10.0.0.5 password CCNP
R3(config-router)#neighbor 10.0.0.5 send-community standard
R3(config-router)#neighbor 10.0.0.14 remote-as 254
R3(config-router)#neighbor 10.0.0.14 timers 5 15
% Warning: A hold time of less than 20 seconds increases
the chances of peer flapping
R3(config-router)#neighbor 10.0.0.14 password CCNP
R3(config-router)#neighbor 10.0.0.14 send-community standard
R3(config-router)#exit
R4(config)#router bgp 254
R4(config-router)#bgp router-id 4.4.4.4
R4(config-router)#neighbor 10.0.0.13 remote-as 254
R4(config-router)#neighbor 10.0.0.13 timers 5 15
% Warning: A hold time of less than 20 seconds increases
the chances of peer flapping
R4(config-router)#neighbor 10.0.0.13 password CCNP
R4(config-router)#neighbor 10.0.0.13 send-community standard
R4(config-router)#exit

Verify your configuration using the show ip bgp summary command:

R1#show ip bgp summary
BGP router identifier 1.1.1.1, local AS number 254
BGP table version is 1, main routing table version 1

Neighbor    V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
10.0.0.2    4   254      32      32        1    0    0 00:02:27        0
10.0.0.6    4   254      20      21        1    0    0 00:01:25        0

R2#show ip bgp summary
BGP router identifier 2.2.2.2, local AS number 254
BGP table version is 1, main routing table version 1

Neighbor    V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
10.0.0.1    4   254      33      33        1    0    0 00:02:31        0

 

R3#show ip bgp summary
BGP router identifier 3.3.3.3, local AS number 254
BGP table version is 1, main routing table version 1

Neighbor    V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
10.0.0.5    4   254      22      21        1    0    0 00:01:33        0
10.0.0.14   4   254       8       8        1    0    0 00:00:22        0

R4#show ip bgp summary
BGP router identifier 4.4.4.4, local AS number 254
BGP table version is 1, main routing table version 1

Neighbor    V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
10.0.0.13   4   254       9       9        1    0    0 00:00:25        0

Task 3

BGP allows you to set attributes for prefixes advertised via the  network <network> mask <mask> command by appending a route map to this command. The route map can be used to set or modify different BGP attributes for the network. This is completed as follows:

R1(config)#route-map COMMUNITY permit 10
R1(config-route-map)#set community 254:111
R1(config-route-map)#exit
R1(config)#router bgp 254
R1(config-router)#network 150.1.1.0 mask 255.255.255.0 route-map COMMUNITY
R1(config-router)#exit
R2(config)#route-map COMMUNITY permit 10
R2(config-route-map)#set community 254:222
R2(config-route-map)#exit
R2(config)#router bgp 254
R2(config-router)#network 150.2.2.0 mask 255.255.255.0 route-map COMMUNITY
R2(config-router)#exit
R3(config)#route-map COMMUNITY permit 10
R3(config-route-map)#set community 254:333
R3(config-route-map)#exit
R3(config)#router bgp 254
R3(config-router)#network 150.3.3.0 mask 255.255.255.0 route-map COMMUNITY
R3(config-router)#exit

Verify your configuration using the show ip bgp command on all routers:

R1#show ip bgp 150.1.1.0 255.255.255.0
BGP routing table entry for 150.1.1.0/24, version 2
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 (1.1.1.1)
Origin IGP, metric 0, localpref 100, weight 32768, valid, sourced, local, best
Community: 16646255

By default, the Cisco default community format is one 32-bit number (as seen above). To ensure that the community conforms to RFC 1997 (BGP Communities Attribute), you need to issue the ip bgp-community new-format command on all routers. This task is completed as follows:

R1(config)#ip bgp-community new-format
R2(config)#ip bgp-community new-format
R3(config)#ip bgp-community new-format
R4(config)#ip bgp-community new-format

Verify these changes using the show ip bgp command on all routers:

R1#show ip bgp 150.1.1.0 255.255.255.0
BGP routing table entry for 150.1.1.0/24, version 2
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 (1.1.1.1)
Origin IGP, metric 0, localpref 100, weight 32768, valid, sourced, local, best
Community: 254:111
R2#show ip bgp 150.2.2.0 255.255.255.0
BGP routing table entry for 150.2.2.0/24, version 3
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 (2.2.2.2)
Origin IGP, metric 0, localpref 100, weight 32768, valid, sourced, local, best
Community: 254:222
R3#show ip bgp 150.3.3.0 255.255.255.0
BGP routing table entry for 150.3.3.0/24, version 3
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
Community: 254:333

You can verify that the COMMUNITY attribute is being sent to peers using the show ip bgp neighbors <address> command:

R1#show ip bgp neighbors 10.0.0.2
BGP neighbor is 10.0.0.2,  remote AS 254, internal link
BGP version 4, remote router ID 10.0.0.2
BGP state = Established, up for 00:34:11
Last read 00:00:00, last write 00:00:00, hold time is 15, keepalive interval is 5 seconds
Configured hold time is 15,keepalive interval is 5 seconds  Minimum holdtime from neighbor is 0 seconds
Neighbor capabilities:
Route refresh: advertised and received(old & new)
Address family IPv4 Unicast: advertised and received
Message statistics:
InQ depth is 0
OutQ depth is 0
Sent       Rcvd
Opens:                  1          1
Notifications:          0          0
Updates:                5          1
Keepalives:           413        413
Route Refresh:          0          0
Total:                419        415
Default minimum time between advertisement runs is 0 seconds

For address family: IPv4 Unicast
BGP table version 6, neighbor version 6/0
Output queue size : 0
Index 1, Offset 0, Mask 0x2
1 update-group member
  Community attribute sent to this neighbor

 

Task 4

The requirements of this final task are three-fold. Because we cannot advertise the 150.4.4.0/24 subnet connected to R4 via BGP, we need to configure this router to advertise a default route to the rest of the domain, allowing all other routers to reach this subnet.

Therefore, the first part of this task is completed by advertising a default route from R4 so that all other routers can reach the 150.4.4.0/24 subnet since this cannot be advertised or redistributed into BGP.  To advertise a default route without one existing in the routing table, use the neighbor <address> default-originate command under BGP. This task is completed by executing this command on R4 as follows:

 

R4(config)#router bgp 254
R4(config-router)#neighbor 10.0.0.13 default-originate
R4(config-router)#exit

Following this, verify that there is NO default route locally on R4:

R4#show ip bgp 0.0.0.0 0.0.0.0
% Network not in table

However, based on the configuration, a BGP-originated default route is now advertised to R3:

R3#show ip bgp 0.0.0.0 0.0.0.0
BGP routing table entry for 0.0.0.0/0, version 4
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Flag: 0x820
Not advertised to any peer
Local
10.0.0.14 from 10.0.0.14 (4.4.4.4)
Origin IGP, metric 0, localpref 100, valid, internal, best

The second part of this task is to ensure that routes are advertised between all routers. Since we cannot configure R2 or R4, we need to configure R1 and R3 as route reflectors. This is because, by default, internal BGP (iBGP) speakers will NOT advertise routes received from one iBGP speaker to another iBGP speaker.

Because of this default rule, the BGP tables on all routers are incomplete and do not contain all the prefixes. Verify using the show ip bgp command. For example, R1 will not have the default route advertised by R4 in its BGP Table because this default route is received by R3 from another iBGP peer:

R1#show ip bgp
BGP table version is 4, 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
*> 150.1.1.0/24     0.0.0.0                  0         32768 i
*>i150.2.2.0/24     10.0.0.2                 0    100      0 i
*>i150.3.3.0/24     10.0.0.6                 0    100      0 i

Likewise, R2 will not show an entry for the 150.3.3.0/24 (R3) and 0.0.0.0/0 (R4) prefixes in its BGP Table because the 150.3.3.0/24 prefix is advertised to R1 from an iBGP peer. Likewise, because R1 never receives the default route from R3, this will never show up in R2s BGP Table.

R2#show ip bgp
BGP table version is 3, 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
*>i150.1.1.0/24     10.0.0.1                 0    100      0 i
*> 150.2.2.0/24     0.0.0.0                  0         32768 i

The same concept is also applicable to R3 and R4. To address this issue, you need to configure R1 and R3 as route reflectors. When doing so, you do NOT need to configure R1 and R3 as clients of each other. This is because, by default, a route reflector will advertise routes received from a client to a non-client and vice versa. This task is completed as follows:

R1(config)#router bgp 254
R1(config-router)#neighbor 10.0.0.2 route-reflector-client
R1(config-router)#exit
R3(config)#router bgp 254
R3(config-router)#neighbor 10.0.0.14 route-reflector-client
R3(config-router)#exit

However, you will still notice that the routers still cannot ping each others’ 150.x.x.x/24 subnets. This is because the NEXT_HOP attribute is NOT changed when these prefixes are advertised between the iBGP peers. For example, on R1, the NEXT_HOP for the 0.0.0.0/0 prefix reflects the IP address of R1 (10.0.0.14). Because there is no route for this prefix, it is considered inaccessible and is not advertised to R2:

R1#show ip bgp 0.0.0.0 0.0.0.0
BGP routing table entry for 0.0.0.0/0, version 12
Paths: (1 available, no best path)
Not advertised to any peer
Local
    10.0.0.14 (inaccessible) from 10.0.0.6 (3.3.3.3)
Origin IGP, metric 0, localpref 100, valid, internal
Originator: 4.4.4.4, Cluster list: 3.3.3.3

To resolve this issue, you need to either run an IGP or use static routes, which is forbidden in this task, or modify the BGP NEXT_HOP. However, because these updates are from iBGP neighbors, you cannot use the the neighbor <address> next-hop-self command. The reason you need to modify the NEXT_HOP using a route-map is because the neighbor <address> next-hop-self command should not be used to modify the NEXT_HOP
attribute for a route reflector when this feature is enabled for a route reflector client.

It will not work because this command will modify next hop attributes only for routes that are learned from eBGP peers and not the intended routes that are being reflected from the route reflector clients. This means that the NEXT_HOP for all routes received from the iBGP peers will be inaccessible since we are not running an IGP or using static routes in the network. For example, on R1, the NEXT_HOP for the default advertised by R4 shows the IP address of the Serial0/0 interface on R4, which is 10.0.0.14, as illustrated or shown in the previous output.

Because the neighbor <address> next-hop-self command will not work due to the route reflector configuration, the only other way to modify the next NEXT_HOP attribute is using an outbound route map. This task is completed as follows:

R1(config)#route-map R2-NEXT-HOP permit 10
R1(config-route-map)#set ip next-hop 10.0.0.1
% Warning: Next hop address is our address
R1(config-route-map)#exit
R1(config)#route-map R3-NEXT-HOP permit 10
R1(config-route-map)#set ip next-hop 10.0.0.5
% Warning: Next hop address is our address
R1(config-route-map)#exit
R1(config)#router bgp 254
R1(config-router)#neighbor 10.0.0.2 route-map R2-NEXT-HOP out
R1(config-router)#neighbor 10.0.0.6 route-map R3-NEXT-HOP out
R1(config-router)#exit
R3(config)#route-map R1-NEXT-HOP permit 10
R3(config-route-map)#set ip next-hop 10.0.0.6
% Warning: Next hop address is our address
R3(config-route-map)#exit
R3(config)#route-map R4-NEXT-HOP permit 10
R3(config-route-map)#set ip next-hop 10.0.0.13
% Warning: Next hop address is our address
R3(config-route-map)#exit
R3(config)#router bgp 254
R3(config-router)#neighbor 10.0.0.14 route-map R4-NEXT-HOP out
R3(config-router)#neighbor 10.0.0.5 route-map R1-NEXT-HOP out
R3(config-router)#exit

Following this configuration, the BGP RIBs on all routers show the following entries:

R1#show ip bgp
BGP table version is 7, 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
*>i0.0.0.0          10.0.0.6                 0    100      0 i
*> 150.1.1.0/24     0.0.0.0                  0         32768 i
*>i150.2.2.0/24     10.0.0.2                 0    100      0 i
*>i150.3.3.0/24     10.0.0.6                 0    100      0 i

R2#show ip bgp
BGP table version is 7, 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
*>i0.0.0.0          10.0.0.1                 0    100      0 i
*>i150.1.1.0/24     10.0.0.1                 0    100      0 i
*> 150.2.2.0/24     0.0.0.0                  0         32768 i
*>i150.3.3.0/24     10.0.0.1                 0    100      0 i

R3#show ip bgp
BGP table version is 4, 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
*>i0.0.0.0          10.0.0.14                0    100      0 i
*>i150.1.1.0/24     10.0.0.5                 0    100      0 i
*>i150.2.2.0/24     10.0.0.5                 0    100      0 i

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
*>i150.1.1.0/24     10.0.0.13                0    100      0 i
*>i150.2.2.0/24     10.0.0.13                0    100      0 i
*>i150.3.3.0/24     10.0.0.13                0    100      0 i

Finally, complete this task by issuing extended pings, LAN-to-LAN, between the routers:

R1#ping 150.2.2.2 source fastethernet 0/0 repeat 10

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

R1#ping 150.3.3.3 source fastethernet 0/0 repeat 10

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

R1#ping 150.4.4.4 source fastethernet 0/0 repeat 10

Type escape sequence to abort.
Sending 10, 100-byte ICMP Echos to 150.4.4.4, timeout is 2 seconds:
Packet sent with a source address of 150.1.1.1
!!!!!!!!!!
Success rate is 100 percent (10/10), round-trip min/avg/max = 28/30/32 ms

R2#ping 150.1.1.1 source fastethernet 0/0 repeat 10

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

R2#ping 150.3.3.3 source fastethernet 0/0 repeat 10

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

R2#ping 150.4.4.4 source fastethernet 0/0 repeat 10

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

R3#ping 150.1.1.1 source fastethernet 0/0 repeat 10

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

R3#ping 150.2.2.2 source fastethernet 0/0 repeat 10

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

R3#ping 150.4.4.4 source fastethernet 0/0 repeat 10

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

R4#ping 150.1.1.1 source fastethernet 0/0 repeat 10

Type escape sequence to abort.
Sending 10, 100-byte ICMP Echos to 150.1.1.1, timeout is 2 seconds:
Packet sent with a source address of 150.4.4.4
!!!!!!!!!!
Success rate is 100 percent (10/10), round-trip min/avg/max = 28/30/32 ms

R4#ping 150.2.2.2 source fastethernet 0/0 repeat 10

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

R4#ping 150.3.3.3 source fastethernet 0/0 repeat 10

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

Final Router Configurations

R1

 

R1#term len 0
R1#sh run
Building configuration…

Current configuration : 1582 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
no logging console
!
no aaa new-model
no network-clock-participate slot 1
no network-clock-participate wic 0
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 150.1.1.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0
ip address 10.0.0.1 255.255.255.252
clock rate 2000000
!
interface Serial0/1
ip address 10.0.0.5 255.255.255.252
!
router bgp 254
no synchronization
bgp router-id 1.1.1.1
bgp log-neighbor-changes
network 150.1.1.0 mask 255.255.255.0 route-map COMMUNITY
neighbor 10.0.0.2 remote-as 254
neighbor 10.0.0.2 password CCNP
neighbor 10.0.0.2 timers 5 15
neighbor 10.0.0.2 route-reflector-client
neighbor 10.0.0.2 send-community
neighbor 10.0.0.2 route-map R2-NEXT-HOP out
neighbor 10.0.0.6 remote-as 254
neighbor 10.0.0.6 password CCNP
neighbor 10.0.0.6 timers 5 15
neighbor 10.0.0.6 send-community
neighbor 10.0.0.6 route-map R3-NEXT-HOP out
no auto-summary
!
ip forward-protocol nd
!
ip bgp-community new-format
!
no ip http server
no ip http secure-server
!
!
route-map R2-NEXT-HOP permit 10
set ip next-hop 10.0.0.1
!
route-map R3-NEXT-HOP permit 10
set ip next-hop 10.0.0.5
!
route-map COMMUNITY permit 10
set community 254:111
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end

R1#

R2

 

R2#term len 0
R2#sh run
Building configuration…

Current configuration : 1167 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
no logging console
!
no aaa new-model
no network-clock-participate slot 1
no network-clock-participate wic 0
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 150.2.2.2 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0
ip address 10.0.0.2 255.255.255.252
!
interface Serial0/1
no ip address
shutdown
!
router bgp 254
no synchronization
bgp router-id 2.2.2.2
bgp log-neighbor-changes
network 150.2.2.0 mask 255.255.255.0 route-map COMMUNITY
neighbor 10.0.0.1 remote-as 254
neighbor 10.0.0.1 password CCNP
neighbor 10.0.0.1 timers 5 15
neighbor 10.0.0.1 send-community
no auto-summary
!
ip forward-protocol nd
!
ip bgp-community new-format
!
no ip http server
no ip http secure-server
!
!
route-map COMMUNITY permit 10
set community 254:222
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end

R2#

R3

 

R3#term len 0
R3#sh run
Building configuration…

Current configuration : 1909 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
no logging console
!
no aaa new-model
no network-clock-participate slot 1
no network-clock-participate wic 0
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 150.3.3.3 255.255.255.0
duplex auto
speed auto
!
interface Serial1/0
ip address 10.0.0.6 255.255.255.252
clock rate 128000
!
interface Serial1/1
no ip address
shutdown
clock rate 128000
!
interface Serial1/2
ip address 10.0.0.13 255.255.255.252
clock rate 128000
!
interface Serial1/3
no ip address
shutdown
!
interface Serial1/4
no ip address
shutdown
!
interface Serial1/5
no ip address
shutdown
!
interface Serial1/6
no ip address
shutdown
!
interface Serial1/7
no ip address
shutdown
!
router bgp 254
no synchronization
bgp router-id 3.3.3.3
bgp log-neighbor-changes
network 150.3.3.0 mask 255.255.255.0 route-map COMMUNITY
neighbor 10.0.0.5 remote-as 254
neighbor 10.0.0.5 password CCNP
neighbor 10.0.0.5 timers 5 15
neighbor 10.0.0.5 send-community
neighbor 10.0.0.5 route-map R1-NEXT-HOP out
neighbor 10.0.0.14 remote-as 254
neighbor 10.0.0.14 password CCNP
neighbor 10.0.0.14 timers 5 15
neighbor 10.0.0.14 route-reflector-client
neighbor 10.0.0.14 send-community
neighbor 10.0.0.14 route-map R4-NEXT-HOP out
no auto-summary
!
ip forward-protocol nd
!
ip bgp-community new-format
!
no ip http server
no ip http secure-server
!
!
route-map R1-NEXT-HOP permit 10
set ip next-hop 10.0.0.6
!
route-map R4-NEXT-HOP permit 10
set ip next-hop 10.0.0.13
!
route-map COMMUNITY permit 10
set community 254:333
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end

R3#

R4

 

R4#term len 0
R4#sh run
Building configuration…

Current configuration : 1097 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R4
!
boot-start-marker
boot-end-marker
!
no logging console
!
no aaa new-model
no network-clock-participate slot 1
no network-clock-participate wic 0
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 150.4.4.4 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0
ip address 10.0.0.14 255.255.255.252
!
interface Serial0/1
no ip address
shutdown
!
router bgp 254
no synchronization
bgp router-id 4.4.4.4
bgp log-neighbor-changes
neighbor 10.0.0.13 remote-as 254
neighbor 10.0.0.13 password CCNP
neighbor 10.0.0.13 timers 5 15
neighbor 10.0.0.13 send-community
neighbor 10.0.0.13 default-originate
no auto-summary
!
ip forward-protocol nd
!
ip bgp-community new-format
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end

R4#

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.