i dont know if this is possible to advertise just a number of /32 on my provider. we will do some testing on our link and they want me to advertise only 3 ip address's.
Solved! Go to Solution.
You can advertise /24 or larger subnets (/23 /22 ...), since IPS filter the small subnets updates. If you are sure that your ISP accepts smaller you can do with the aggregate command or with the network command and ip route "IP" "mask" null...
Please rate me if I helped.
If for example, the three IP addr which you want advertised are 192.168.1.1 to 192.168.1.3, then configure the following commands on our ISP-facing BGP router:
router bgp 25
network 192.168.1.1 mask 255.255.255.255
network 192.168.1.2 mask 255.255.255.255
network 192.168.1.3 mask 255.255.255.255
If your eBGP peering with the ISP is working correctly, then these routes will be automatically added to the IP route table of the remote eBGP peer on ISP end.
Hi dear ,
Just make a loopback and advertise that network ip to bgp ...
ip address 220.127.116.11 255.255.255.255
ip address 172.16.1.1 255.255.255.0
ip address 192.168.16.2 255.255.255.252
router bgp 2
network 18.104.22.168 mask 255.255.255.255
network 172.16.1.0 mask 255.255.255.0
neighbor 10.10.10.10 remote-as 1
neighbor 10.10.10.10 ebgp-multihop 2
neighbor 10.10.10.10 update-source Loopback0
ip route 10.10.10.0 255.255.255.0 192.168.16.1
TC / rate if works
You can filter your advertisements with prefix-list or route-map
ip prefix-list PL permit 192.168.0.1/32
router bgp 65001
neighbor 10.0.0.1 remote-as 65002
neighbor 10.0.0.1 prefix-list PL out
Only 192.168.0.1 is advertised to peer 10.0.0.1. Also if you don't want to advertise this prefix to other peers another prefix-list is needed which denies this prefix and permits all others.
ip prefix-list PL1 deny 192.168.0.1/32
ip prefix-list PL1 permit 0.0.0.0/0 le 32
neighbor 10.10.10.2 prefix-list PL1 out
Thanks for the Input. I tried and for some reason I dont get it in the advertised-routes. Here is the config below:
router bgp 65555
neighbor 22.214.171.124 remote-as 1
neighbor 126.96.36.199 soft-reconfiguration inbound
neighbor 188.8.131.52 distribute-list 30 in
neighbor 184.108.40.206 prefix-list test out
sh ip prefix-list
ip prefix-list test: 3 entries
seq 5 permit 220.127.116.11/32
seq 10 permit 18.104.22.168/32
seq 15 permit 22.214.171.124/32
sh ip bgp neighbors 126.96.36.199 advertised-routes
Total number of prefixes 0
Note: I did clear bgp soft out - no change and I did Clear ip bgp * - still nochange.
What am i missing here. Please help.
Thanks in advance
Do you have routes for your /32 newtorks on the router where BGP runs. You should have exactly the same networks in it, all with /32 mask since no auto-summary.
it's most likely that your ISP block your /32 prefixes, because the most internet service provider protect the internet against prefixes which are bigger than /24.