03-17-2019 10:20 AM - edited 03-17-2019 10:21 AM
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,
Solved! Go to Solution.
03-17-2019 01:44 PM
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
03-18-2019 12:36 AM
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
03-17-2019 01:44 PM
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
03-18-2019 12:58 PM - edited 03-18-2019 01:01 PM
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
03-18-2019 12:36 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide