[prev in list] [next in list] [prev in thread] [next in thread] 

List:       quagga-users
Subject:    [quagga-users 7129] override source IP
From:       Daniel Pocock <daniel () readytechnology ! co ! uk>
Date:       2006-06-25 9:30:50
Message-ID: 449E57CA.8030509 () readytechnology ! co ! uk
[Download RAW message or body]


At the moment, I can set up addresses like this on a Linux box:

ip addr add dev eth0 192.168.1.2/24   ; private IP
ip addr add dev eth1 192.168.2.2/24   ; private IP
ip addr add dev lo 195.8.117.80/32   ; public IP

and then set up two static routes (provided equal cost multi-path is 
enabled):

ip route add default via 192.168.1.1 src 195.8.117.80
ip route add default via 192.168.2.1 src 195.8.117.80

The src parameters in the above commands tell Linux to use 195.8.117.80 
as the source address in all packets it sends via the route - otherwise 
it would use the 192.168.x.2 as the source address.

How can I get ospfd to enter the src parameter when it creates routes?

The reason for doing this is that I would prefer to use OSPF so that 
each default route is only present when the link is up.  With static 
routing, both routes would always be there even if one link is down.

Regards,

Daniel
_______________________________________________
Quagga-users mailing list
Quagga-users@lists.quagga.net
http://lists.quagga.net/mailman/listinfo/quagga-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic