CCIE Command Line Memorizer:
Major revamp of the CCIE Command Line Memorizer with
a better interface and functionality.
Click here to see a video of the new product.

Free resources:
We have been adding more free resources to the
website. Keep an eye on it as we are planning to add a
lot more content in the coming weeks and months.
Here is an example of just one type of resource you
will see:
Example:
Network Diagram:

AIM: Demonstrate next
hop in BGP and fix using Peer Next Hop rather than
next-hop-self
==================================================================
R1 Configuration
==================================================================
router bgp 300
no synchronization
network 2.2.2.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.220 100 0 200 i
<=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
<=Next Hop is still IP address of R2 as per BGP rule
*>i161.10.0.1/32 22.22.22.22
0 100 0 200 i
<=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
<=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
<=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
<=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
<=== Notice
BGP Routes missing
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
<=== Cannot
ping R2 loopbacks
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
<=== Cannot
ping R2 loopbacks
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
<=
Route-map bound to IBGP neighbor R3 in
no auto-summary
!
route-map changenexthop permit 10
set ip next-hop peer-address
<=
Set next hop to peer address (override default of R2)
==================================================================
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
<=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
<=Next Hop is Changed to R3 address
*>i161.10.0.1/32 33.33.33.33
0 100 0 200
i
<=Next Hop is Changed to R3
address
*>i162.10.0.1/32 33.33.33.33
0 100 0 200
i
<=Next Hop is Changed to R3
address
*>i163.10.0.1/32 33.33.33.33
0 100 0 200
i
<=Next Hop is Changed to R3
address
*>i164.10.0.1/32 33.33.33.33
0 100 0 200
i
<=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#
I hope you like the new website and updated products.
To your success
David Bombal