05-07-2016 12:03 AM - edited 03-05-2019 03:58 AM
hello,
i need some guidance regarding BGP.
i have taken public pool of /22. I have sub netted /22 pool in : /24, /24, /24, /26, /26, /26, /27, /28, /28.
so if i advertise /22, will i able to ping or access any of devices with above sub netted network.
also guide regarding BGP configuration.
thankyou
05-07-2016 11:00 AM
Hi,
Maybe I didn't understand what do you want, but if you advertise your network/22 , your router have to know this network in his route table or it will be not advertise.
You could configure your BGP with "network X.X.X.X mask 255.255.252.0" and also "ip route X.X.X.X 255.255.252.0 null 0" with this you will advertise the /22 and you could reach the different subnet.
TkR07_9393
05-07-2016 11:11 AM
Hi,
thank you for support !!
can you explain use of route-map in/out command in BGP??
05-08-2016 11:59 AM
Hi,
route-maps can be used to filter/tag BGP network as traffic goes out (route-map NAME out) or comes in (route-map NAME in) on an interface. This can be used for example to create a preferred route in multi-homed networks or to limit the networks that are advertised out from an Autonomous System.
05-08-2016 10:10 PM
hi,
thank you for support !!
i have 2 ISP. out of them i want to use ISP 1 as primary ie all traffic should go from ISP 1 and if ISP 1 fails then all traffic should go from ISP 2.
i have attached Nw diagram below.
here,
i have configured HSRP between 2 routers. with router 1 as higher priority than router 2.
i am new to BGP. i have configure external BGP between my router and ISP.
kindly guide internal BGP configuration between router 1 and router 2.
Regards,,
05-08-2016 11:01 PM
Assuming both routers reside in the same autonomous system I would:
On ROUTER 1 set a route-map that sets the local-preference with a higher value than the default of 100.
apply the route-map to the interface (inbound traffic from ISP1) of ROUTER 1.
ISP 1 routes will be preferred as they will have a higher local-preference.
05-08-2016 11:18 PM
05-09-2016 12:32 AM
HI,
router bgp 45000
bgp log-neighbor-changes
neighbor 172.16.1.2 remote-as 45000
bgp default local-preference < 0 to 4294967295 >
please keep high local preference on the router you want to the primary exit or one with high priority. Keep it more than 100.
05-09-2016 04:45 AM
Hi,
Also you should configure a tracking who track internet for example and decrement your Master router HSRP if it's down.
TkR07_9393
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