cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2632
Views
10
Helpful
3
Replies

BGP not advertising connected routes

Youn88
Level 1
Level 1

Hello,

I have a CE router (ACME2) connected to an MPLS network connected via a PE router (PE-2).

The probem is: ACME2 router is not advertising connected route 192.168.50.0 to the PE router (PE-2)

 

ACME2:

 

ACME2#show ip bgp neighbors 192.168.5.1 advertised-routes

Total number of prefixes 0

 

ACME2#show ip route
Gateway of last resort is not set

192.168.5.0/32 is subnetted, 1 subnets
S 192.168.5.1 [1/0] via 192.168.11.2
192.168.11.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.11.0/24 is directly connected, Ethernet0/2
L 192.168.11.1/32 is directly connected, Ethernet0/2
192.168.21.0/32 is subnetted, 1 subnets
C 192.168.21.1 is directly connected, Loopback0
192.168.50.0/32 is subnetted, 1 subnets
C 192.168.50.1 is directly connected, Loopback1

 

ACME2#show running-config | section bgp
router bgp 65537
bgp router-id 1.1.1.1
bgp log-neighbor-changes
network 192.168.50.0
neighbor 192.168.5.1 remote-as 65536
neighbor 192.168.5.1 ebgp-multihop 2
neighbor 192.168.5.1 update-source Loopback0

 

PE-2:

 

PE-2#show running-config | section bgp
redistribute bgp 65536 metric 5
router bgp 65536
bgp router-id 2.2.2.2
bgp log-neighbor-changes
neighbor 192.168.0.1 remote-as 65536
neighbor 192.168.0.1 update-source Loopback0
!
address-family ipv4
neighbor 192.168.0.1 activate
exit-address-family
!
address-family vpnv4
neighbor 192.168.0.1 activate
neighbor 192.168.0.1 send-community extended
neighbor 192.168.0.1 next-hop-self
exit-address-family
!
address-family ipv4 vrf 102:CBT
redistribute rip
exit-address-family
!
address-family ipv4 vrf 103:ACME
network 192.168.5.0
neighbor 192.168.21.1 remote-as 65537
neighbor 192.168.21.1 ebgp-multihop 2
neighbor 192.168.21.1 update-source Loopback1
neighbor 192.168.21.1 activate
exit-address-family

 

PE-2#show ip route vrf 103:ACME

Gateway of last resort is not set

192.168.5.0/32 is subnetted, 1 subnets
C 192.168.5.1 is directly connected, Loopback1
192.168.11.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.11.0/24 is directly connected, Ethernet0/2
L 192.168.11.2/32 is directly connected, Ethernet0/2
192.168.21.0/32 is subnetted, 1 subnets
S 192.168.21.1 [1/0] via 192.168.11.1

 

Thank you for your help.

Regards,

2 Accepted Solutions

Accepted Solutions

Jon Marshall
Hall of Fame
Hall of Fame

 

If you want to advertise 192.168.50.0/24 then you need to change the subnet mask on the loopback interface to be 255.255.255.0. 

 

If you want to advertise just the loopback address and you don't want to use "redistribute connected" under your BGP configuration then - 

 

router bgp 65537
network 192.168.50.1 mask 255.255.255.255

 

Jon

View solution in original post

Deepak Kumar
VIP Alumni
VIP Alumni

Hi,

Make changes as highlighted on ACME2


router bgp 65537
bgp router-id 1.1.1.1
network 192.168.50.1 mask 255.255.255.255

Regards,

Deepak Kumar

 

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

View solution in original post

3 Replies 3

Jon Marshall
Hall of Fame
Hall of Fame

 

If you want to advertise 192.168.50.0/24 then you need to change the subnet mask on the loopback interface to be 255.255.255.0. 

 

If you want to advertise just the loopback address and you don't want to use "redistribute connected" under your BGP configuration then - 

 

router bgp 65537
network 192.168.50.1 mask 255.255.255.255

 

Jon

Thank you for your help, it's working now.

I thought it could not come from that because the subnet 192.168.50.1/32 is in 192.168.50.0/24, so I'm advertising a whole network even if I'm using only one address

Deepak Kumar
VIP Alumni
VIP Alumni

Hi,

Make changes as highlighted on ACME2


router bgp 65537
bgp router-id 1.1.1.1
network 192.168.50.1 mask 255.255.255.255

Regards,

Deepak Kumar

 

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!