Need to advertise single route to ISP but Block all Internal routes
Hi,
Have bgp peers set up currently but it's sending all internal routes to our ISP. id like to advertise only 111.69.40.246/29 (example IP) to them. Restricting all internal connected from being adverstived.
What i have done so far
config router bgp
config network
edit 1
set prefix 111.69.40.246 255.255.255.248
Config router bgp
set network-import-check disable
end
Can i appy a prefix-list to the neighbor config? Or do i apply a prefix-list to a route map and apply the route map to the neighbor config? Would this work below
config router prefix-list
edit "WWW_OUT"
config rule
edit 1
set prefix 111.69.40.246 255.255.255.248
unset ge
unset le
next
edit 5
set action deny
set prefix any
unset ge
unset le
next
end
next
end
Many thanks