cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
410
Views
0
Helpful
6
Replies

EBGP not advertising route to nei router

mahesh18
Level 6
Level 6

 

Hi Everyone,

 

I am setting up home lab for BGP.

R1 and R2 are connected via EBGP.

R1 config

interface FastEthernet1/0/14
 description BGP NEI
 no switchport
 ip address 10.1.45.2 255.255.255.0
 

router bgp 6500
 no synchronization
 bgp log-neighbor-changes
 network 50.1.1.1 mask 255.255.255.255
 neighbor 10.1.45.1 remote-as 5500
 no auto-summary
 

Loopback12             50.1.1.1        YES manual up                    up
 

 

when I do sh ip bgp it shows blank

 

R1#                    sh ip bgp summ
BGP router identifier 10.10.3.1, local AS number 6500
BGP table version is 1, main routing table version 1

Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
10.1.45.1       4  5500      55      52        1    0    0 00:51:13        0
R1#sh ip bgp

I can ping the nei router

ping 10.1.45.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.45.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/4/9 ms

 

Regards

MAhesh

 

1 Accepted Solution

Accepted Solutions

Mahesh

For BGP to advertise a network that you specify with the "network ..." statement there must be an exact match in the IP routing table.

An exact match means prefix and subnet mask but your subnet mask is 255.255.255.0 whereas in your BGP configuration you have used 255.255.255.255.

They need to match.

Jon

View solution in original post

6 Replies 6

Jon Marshall
Hall of Fame
Hall of Fame

Mahesh

Are you saying a "sh ip bgp" shows nothing ?

If so what is the subnet mask you configured on the loopback ?

Jon

Hi jon,

yes sh ip bgp is blank on both R1 and R2

R1#sh run int loopback 12
Building configuration...

Current configuration : 63 bytes
!
interface Loopback12
 ip address 50.1.1.1 255.255.255.0

 

Regards

MAhesh

 

Mahesh

For BGP to advertise a network that you specify with the "network ..." statement there must be an exact match in the IP routing table.

An exact match means prefix and subnet mask but your subnet mask is 255.255.255.0 whereas in your BGP configuration you have used 255.255.255.255.

They need to match.

Jon

Thanks jon that fix the issue

(config-router)#network 50.1.1.0 mask 255.255.255.0
R1(config-router)#end
R1#sh ip bgp
BGP table version is 2, local router ID is 10.10.3.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
*> 50.1.1.0/24      0.0.0.0                  0         32768 i

 

Best Regards

MAhesh

Reza Sharifi
Hall of Fame
Hall of Fame

Hi Mahesh,

From R1 can you ping the loopback interface of R2 (50.1.1.x)?

Thanks,

Reza

Hi Reza,

Loopback is configured on R1.

BGP should advertise the Route 50.1.1.1 to R2 then only R2 can ping 50.1.1.1 right?

Regards

MAhesh

Review Cisco Networking for a $25 gift card