|
AS 300 AS 100 
AS 300
==================================================================
R1 Configuration
==================================================================
router bgp 300 no synchronization network 2.2.2.0 mask 255.255.255.0 network 4.4.4.0 mask 255.255.255.0 network 11.11.11.11 mask 255.255.255.255 neighbor 33.33.33.33 remote-as 300 neighbor 33.33.33.33 update-source Loopback0 no auto-summary
==================================================================
R1 BGP table
==================================================================
r1#sh ip bgp BGP table version is 34, local router ID is 11.11.11.11 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path * i2.2.2.0/24 33.33.33.33 0 100 0 i *> 0.0.0.0 0 32768 i *>i3.3.3.0/24 33.33.33.33 0 100 0 i *> 4.4.4.0/24 0.0.0.0 0 32768 i *> 11.11.11.11/32 0.0.0.0 0 32768 i *>i22.22.22.22/32 22.22.22.22 0 100 0 200 i <=== Notice Next Hop is still ip address of R2 as per bgp rule *>i33.33.33.33/32 33.33.33.33 0 100 0 i *>i160.10.0.1/32 22.22.22.22 0 100 0 200 i <=== Notice Next Hop is still ip address of R2 as per bgp rules *>i161.10.0.1/32 22.22.22.22 0 100 0 200 i <=== Notice Next Hop is still ip address of R2 as per bgp rule *>i162.10.0.1/32 22.22.22.22 0 100 0 200 i <=== Notice Next Hop is still ip address of R2 as per bgp rule *>i163.10.0.1/32 22.22.22.22 0 100 0 200 i <=== Notice Next Hop is still ip address of R2 as per bgp rule *>i164.10.0.1/32 22.22.22.22 0 100 0 200 i <=== Notice Next Hop is still ip address of R2 as per bgp rule r1#
r1#sh ip route Codes: C - connected, S - static, I - IGRP, 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, E - EGP i - IS-IS, 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 Gateway of last resort is not set 2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks D 2.0.0.0/8 is a summary, 00:38:48, Null0 C 2.2.2.0/24 is directly connected, Serial0 33.0.0.0/32 is subnetted, 1 subnets S 33.33.33.33 [1/0] via 2.2.2.1 3.0.0.0/24 is subnetted, 1 subnets B 3.3.3.0 [200/0] via 33.33.33.33, 00:19:38 4.0.0.0/8 is variably subnetted, 2 subnets, 2 masks D 4.0.0.0/8 is a summary, 00:19:41, Null0 C 4.4.4.0/24 is directly connected, Serial1 11.0.0.0/32 is subnetted, 1 subnets C 11.11.11.11 is directly connected, Loopback0 r1#
r1#ping 160.10.0.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 160.10.0.1, timeout is 2 seconds: ..... Success rate is 0 percent (0/5) r1#
r1#ping 22.22.22.22 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 22.22.22.22, timeout is 2 seconds: ..... Success rate is 0 percent (0/5) r1#
==================================================================
Changed R1 Configuration
==================================================================
router bgp 300 no synchronization network 2.2.2.0 mask 255.255.255.0 network 4.4.4.0 mask 255.255.255.0 network 11.11.11.11 mask 255.255.255.255 neighbor 33.33.33.33 remote-as 300 neighbor 33.33.33.33 update-source Loopback0 neighbor 33.33.33.33 route-map changenexthop in no auto-summary ! route-map changenexthop permit 10 set ip next-hop peer-address
==================================================================
Changed R1 BGP Table
==================================================================
r1#sh ip bgp BGP table version is 46, local router ID is 11.11.11.11 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path * i2.2.2.0/24 33.33.33.33 0 100 0 i *> 0.0.0.0 0 32768 i *>i3.3.3.0/24 33.33.33.33 0 100 0 i *> 4.4.4.0/24 0.0.0.0 0 32768 i *> 11.11.11.11/32 0.0.0.0 0 32768 i *>i22.22.22.22/32 33.33.33.33 0 100 0 200 i <=== Notice Next Hop is Changed to R3 address *>i33.33.33.33/32 33.33.33.33 0 100 0 i *>i160.10.0.1/32 33.33.33.33 0 100 0 200 i <=== Notice Next Hop is Changed to R3 address *>i161.10.0.1/32 33.33.33.33 0 100 0 200 i <=== Notice Next Hop is Changed to R3 address *>i162.10.0.1/32 33.33.33.33 0 100 0 200 i <=== Notice Next Hop is Changed to R3 address *>i163.10.0.1/32 33.33.33.33 0 100 0 200 i <=== Notice Next Hop is Changed to R3 address *>i164.10.0.1/32 33.33.33.33 0 100 0 200 i <=== Notice Next Hop is Changed to R3 address r1#
r1#sh ip route Codes: C - connected, S - static, I - IGRP, 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, E - EGP i - IS-IS, 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 Gateway of last resort is not set 2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks D 2.0.0.0/8 is a summary, 00:40:07, Null0 C 2.2.2.0/24 is directly connected, Serial0 33.0.0.0/32 is subnetted, 1 subnets S 33.33.33.33 [1/0] via 2.2.2.1 3.0.0.0/24 is subnetted, 1 subnets B 3.3.3.0 [200/0] via 33.33.33.33, 00:20:57 4.0.0.0/8 is variably subnetted, 2 subnets, 2 masks D 4.0.0.0/8 is a summary, 00:21:00, Null0 C 4.4.4.0/24 is directly connected, Serial1 22.0.0.0/32 is subnetted, 1 subnets B 22.22.22.22 [200/0] via 33.33.33.33, 00:00:55 <= Routes now in routing table 162.10.0.0/32 is subnetted, 1 subnets B 162.10.0.1 [200/0] via 33.33.33.33, 00:00:57 163.10.0.0/32 is subnetted, 1 subnets B 163.10.0.1 [200/0] via 33.33.33.33, 00:00:57 160.10.0.0/32 is subnetted, 1 subnets B 160.10.0.1 [200/0] via 33.33.33.33, 00:00:57 161.10.0.0/32 is subnetted, 1 subnets B 161.10.0.1 [200/0] via 33.33.33.33, 00:00:57 11.0.0.0/32 is subnetted, 1 subnets C 11.11.11.11 is directly connected, Loopback0 164.10.0.0/32 is subnetted, 1 subnets B 164.10.0.1 [200/0] via 33.33.33.33, 00:00:57 r1#
|