[quagga-users 14956] Hiding subnet along routing path

Klemen Sladic gosturnca at gmail.com
Tue Feb 27 22:14:09 GMT 2018


Hi.

I have a question regarding OSPF operation in some specific route
configuration.

Let's say I have two devices, each has 2 network interfaces and both
running OSPF.

----------------------------    --------------------------|
| DEV1                     |    | DEV2                    |
| eth0                 eth1|<==>|eth1                 eth0|
| 192.168.0.1 192.168.192.1|    |192.168.192.2 192.168.1.1|
----------------------------    ---------------------------

The "default" kernel routes are like:
DEV1:
192.168.192.0/24 dev eth1 proto kernel scope link src 192.168.192.1
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.1
DEV2:
192.168.192.0/24 dev eth1 proto kernel scope link src 192.168.192.2
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.1

OSPF and route distribution works as expected through this network.

Now, I wanted to hide the eth1 subnet from the outside world by
setting 192.168.192.0/24 route source to eth0 IP address, like:
DEV1:
192.168.192.0/24 dev eth1 scope link  src 192.168.0.1
DEV2:
192.168.192.0/24 dev eth1 scope link  src 192.168.1.1

This works from routing perspective, but it breaks OSPF. This is
probably expected, since this has broken a link between two
devices/neighbors.

My question is if it is possible to somehow configure OSPF to
work with those modified route sources? To be able to exchange
OSPF messages by hopping over eth1 subnet?

Thank you very much.

RegK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quagga.net/pipermail/quagga-users/attachments/20180228/04c52238/attachment.html>


More information about the Quagga-users mailing list