04-20-2003 05:17 AM - edited 03-02-2019 06:45 AM
Hi,
Per se If I've 20.1.192.0/18 network behind the backbone and want to advertise the same over my BGP.
Why do I need static routing at my end as
ip route 20.1.192.0 255.255.192.0 null 0
to see the subnet 20.1.192.0/18 at my neighbor's router.
Thanks
my-ASBR#
!
router bgp 200
network 20.1.192.0 mask 255.255.192.0
neighbor 202.54.66.194 remote-as 100
!
!
ip route 20.1.192.0 mask 255.255.192.0 null 0
!
neighbor-AS#
!
router bgp 100
network 202.54.66.0
neighbor 202.54.66.193 remote-as 200
!
04-20-2003 06:44 AM
Hi,
The network command controls what are originated by your router.
Its not like when your running OSPF on an interface, and try run BGP on a specific interface. The network command will only work if the network you are trying to advertise is known to the router, whether connected, static or learned dynamically.
This also a way to advertise many small subnets as bigger subnet.
04-21-2003 07:57 AM
Even though you have the network defined under BGP, BGP will not advertise a network unless the network exists in it's routing table. Hence the static route. This is to prevent black holes. That function can be disabled by putting the "no sync" command under BGP.
04-21-2003 09:02 PM
BGP will not advertise any network unless there is an exact match in the routing table learn either via an IGP or by configuring static route as you did in your case. To verify it you can do the show command " show ip bgp neighbor < ip address > advertised-routes" and that will tell you the networks your router my-ASBR advertising. Hope this helps.
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: