I'm testing openbsd and routing in a basic setup.
router-01 and router-02 are access routers with dynamic routing,
both connect to a lan where firewall-01 resides.

Both router-01 and router-02 have a static route for the network
behind firewall-01.

router-01# cat
/etc/hostname.em1
inet 192.168.1.226 255.255.255.224 NONE
! /sbin/ifconfig \$if description "FIREWALL LAN"
! /sbin/route add 192.168.2.0/24 192.168.1.254

router-02# cat
/etc/hostname.em1
inet 192.168.1.227 255.255.255.224 NONE
! /sbin/ifconfig \$if description "FIREWALL LAN"
! /sbin/route add 192.168.2.0/24 192.168.1.254

Both routers redistribute statics and connected into bgp.
bgpd.conf:
network connected set localpref 200
network static set localpref 200


In this basic setup, how can I avoid router-01 from black-holing
192.168.1.224/27 and 192.168.2.0/24 if em1 goes down ?

Even in the case of "ifconfig em1 down" on router-01 I see that
it continues to advertise the connnected and static networks.
The static I can understand as it could resolve via a recursive lookup,
if openbsd does that.

Regards Tony

Reply via email to