Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

bgp next-hop

hello,

i getting one issue regarding external network reachability issue from ibgp peers.

R1 and R2 are EBGP nei

R2, R3 and R4 are full mesh ibgp nei

EIGRP is running between R2 R3 and R4

on R2, next-hop-self command used for R3 and R4 for external netwrk 192.168.1.0/24 which is commected loopback interface of R1

issue-- i can able to see 192.168.1.0 in bgp and routing table of R2 R3 and R4 and able to ping from R2 but unable to ping from R3 and R4 and its stuck till R2

please suggest...

1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Super Silver

Re: bgp next-hop

hello Sourabth,

the alternate way is to use the network command in router BGP on R2.

in BGP network command behaves differently then with IGPs like EIGRP:

network command can be used to put into BGP table every IP prefix known in the IP routing table including prefixes learned by EIGRP, OSPF and so on.

so you need to use

network prefix mask

for example for 172.16.20.0/24

use

network 172.16.20.0 mask 255.255.255.0

the usage of mask is mandatory if you have disabled auto-summary with

no auto-summary

this command changes the behaviour of network command.

with no auto-summary an exact match in IP routing table is needed to trigger injection into BGP table

Hope to help

Giuseppe

3 REPLIES
Hall of Fame Super Silver

Re: bgp next-hop

Hello Sourabh,

with next-hop-self you have been able to make R3 and R4 to accept eBGP route 192.168.1.0/24.

However, R1 may need routing information to be able to send the ICMP echo reply back to R3,R4.

so using debug ip icmp or simply using sh ip route 192.168.1.0 on R3 and R4 verify what is the source IP address they use in their ICMP echo requests.

on R2 you may need additional network commands to be used to advertise internal networks to R1.

Hope to help

Giuseppe

New Member

Re: bgp next-hop

hello Giuseppe

now i am able to ping 192.168.1.1 from R3 and R4 after redistributing EIGRP into BGP on R2, but why i require redistribution, is there any another alternate way to reach external netorks without doing redistribution??

Hall of Fame Super Silver

Re: bgp next-hop

hello Sourabth,

the alternate way is to use the network command in router BGP on R2.

in BGP network command behaves differently then with IGPs like EIGRP:

network command can be used to put into BGP table every IP prefix known in the IP routing table including prefixes learned by EIGRP, OSPF and so on.

so you need to use

network prefix mask

for example for 172.16.20.0/24

use

network 172.16.20.0 mask 255.255.255.0

the usage of mask is mandatory if you have disabled auto-summary with

no auto-summary

this command changes the behaviour of network command.

with no auto-summary an exact match in IP routing table is needed to trigger injection into BGP table

Hope to help

Giuseppe

112
Views
0
Helpful
3
Replies