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
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.