cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
343
Views
0
Helpful
3
Replies

bgp next-hop

sourabh1000_2
Level 1
Level 1

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

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

View solution in original post

3 Replies 3

Giuseppe Larosa
Hall of Fame
Hall of Fame

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

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??

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco