There's a mobile version of our website.
I have network that I am sending route about to my BGP peer. Is it possible to have route for one IP to have as path prepended. For example how can I get my peer to see this
- path for my network is AS 5
- but path for one host from my network is 5 5
you would need to
1) get the host route to your routing table (configure a static route to your host, e.g.)
2) advertise this host route to your BGP peer with as-prepend (by a route-map, e.g.)
But some peers are filtering the length of BGP prefixes received - permitting /24 or /19 as the maximum prefix length, e.g.
well .... this subnet is directly connected to this router and I am NATing some internal private IP hosts to this subnet, so how can I do what you ae proposing in 1)?
2) what is the default BGP seting for this? I am testing this in LAB and it is not working
let's say you've got 10.10.10.0/24 connected to your router interface fa0 and you want to advertise your host 10.10.10.100 with as-prepend 5 to your BGP neighbor x.x.x.x.
So to fulfil the task 1), you might try to add
ip route 10.10.10.100 255.255.255.255 fa0
to your config.
This should bring the host route to your routing table.
To finish your config, you can add
router bgp 5
network 10.10.10.100 mask 255.255.255.255
neighbor x.x.x.x route-map advertise-to-xxxx out
ip prefix-list my-host seq 5 permit 10.10.10.100/32
route-map advertise-to-xxxx permit 10
match ip address prefix-list my-host
set as-path prepend 5
route-map advertise-to-xxxx permit 20
I hope this should work.
Login to share your discussion activity with your friends on Facebook. You can control what you share and turn off sharing anytime.
Your Facebook friends can now see that you have started this discussion
Your Facebook friends can now see that you have commented on this discussion
Your Facebook friends can now see that you have read this discussion