05-16-2006 07:30 AM - edited 03-03-2019 12:43 PM
hi
How i advertise this bl, in my bgp X.X.X.0/21
waiting for ur pesponse
Thanks
05-16-2006 07:40 AM
Hello,
one way of doing it (assuming 10.1.0.0/21):
router bgp 65000
network 10.1.0.0 mask 255.255.224.0
neighbor 1.1.1.1 remote-as 64646 !ISP
neighbor 1.1.1.1 filter-list 1 out
no auto-summary
ip as-path access-list 1 permit ^$
ip route 10.1.0.0 255.255.224.0 Null0 250
The static route "organizes" the entry in the IP routing table exactly matching the network statement in BGP. Routing will use longest match, so your subnetted official IP addresses will be reachable.
The as-path list assures, that you only announce networks originated in your AS.
Hope this helps! Please rate all posts.
Regards, Martin
05-16-2006 07:42 AM
network x.x.x.0 mask 255.255.248.0
This will advertise x.x.x.0/21 provided the router knows this network (through either static route, dynamic routing protocols, or a connected interface).
05-16-2006 07:47 AM
Hi,
Thanks alot
i was missing the words mask ????
thanks alot.
05-16-2006 08:47 AM
OOps,
255.255.248.0 off course! Sorry for the miscalculation, it has been a long day at work...
Please make sure also to adjust the static route to the correct mask! The correct version is:
router bgp 65000
network 10.1.0.0 mask 255.255.248.0
neighbor 1.1.1.1 remote-as 64646 !ISP
neighbor 1.1.1.1 filter-list 1 out
no auto-summary
ip as-path access-list 1 permit ^$
ip route 10.1.0.0 255.255.248.0 Null0 250
Regards, Martin
05-16-2006 09:29 AM
hi,
i ant to conform that that it shuld be/
192.168.202.0 mask 255.255.255.248.0
and
ip route 192.168.202.0 255.255.248.0 null0
why we use static routes..???? for its definations
Thanks
05-16-2006 09:54 AM
BGP would not advertise a route, unless the route is in the IGP. Often times, you would have more specific routes in the IGP, but you would need to advertise the aggregate route via BGP.
By configuring the static route, BGP can advertise the route, since it is now known to IGP. Pointing to null interface, will have little effects, since there should be more specific routes in the IGP. However, if there are no more specific routes, the static route could point to the appropriate interface.
05-17-2006 01:21 AM
Hi,
Thanks for the Ans,,
I have advertise my suppernet blocK of /21 as mention earlier e.g.
router Bgp 65551
network x.x.x.0 mask 255.255.248.0
!
!
!
ip route X.X.X.0 255.255.248.0 null0
Is ok ??? i have chked it is working
i want to ask is there any other method to adverise such block not with static route.
Thanks
05-17-2006 01:37 AM
If you do not want to add a static route, then the router will need to know the route via another routing protocol like OSPF, ISIS or EIGRP.
05-17-2006 02:09 AM
Hi,
Thanks for the Ans
Than its is via another routing protocol, and we redistribute it in to bpg with redistributons commonds
can i you send any detial or link about the resdistribution of IGP;s in to BGp
regards
05-17-2006 04:25 AM
You should find the information available at the following links a very useful source of reference for BGP:
http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a00800c95bb.shtml
http://www.cisco.com/en/US/tech/tk365/tk80/tsd_technology_support_sub-protocol_home.html
05-17-2006 05:59 AM
Well, you could either redistribute using the redistribute command or use the network command. Both will make BGP advertise the route. However, if you use redistribute, the origin code for the BGP route is incomplete while if you use the network command, the origin code is IGP.
see
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