Multiple IP's

Peter Rathlev peter at rathlev.dk
Thu Jun 27 19:14:55 UTC 2013


On Thu, 2013-06-27 at 10:38 -0400, David Peterson wrote:
> The main issue is not which interface is listening, only which IP address
> responds.  I think the only fix is to have multiple NICs with routing
> statements to the NIC.

Not exactly elegant, but you might be able to use something like this:

 ip route add 198.51.100.0/24 via 192.0.2.1 dev eth0 src 192.0.2.10
 ip route add 203.0.113.1/24  via 192.0.2.1 dev eth0 src 192.0.2.20

If dhcpd lets the kernel choose a source address that should work. It
happens to affect any traffic towards those net that haven't already
selected a source address, not just dhcpd. But it should work.

-- 
Peter




More information about the dhcp-users mailing list