Hi,
I want to do BGP routing of a IP subnet within a VLAN without advertising addresses from another VLAN.
Can somebody help me how to do this?
BR/
Erik-Jan
Hi,
I want to do BGP routing of a IP subnet within a VLAN without advertising addresses from another VLAN.
Can somebody help me how to do this?
BR/
Erik-Jan
So you only want to advertise your vlan subnet but import all prefixes from the remote peer, right?
That’s a task for a routing filter.
Assuming our VPN subnet is 192.168.88.0/24 the filter would look like this:
/routing filter
add action=discard chain=vlan-bp prefix=!192.168.88.0 prefix-length=0-128
Use this chain as out-filter for your BGP peer definition.
-Chris
Also, when you do not enable “redistribute” options in the BGP instance, only the networks
specified in BGP Networks will be advertised. So only put that single network there.