0

On a Debian multihomed server, both interfaces eth0, eth1 are configured for DHCP. When the second interface (eth1) is bought up after eth0 is active, the DHCP client is sending out DHCPDISCOVER packets on both eth0 and eth1 interfaces. How can I prevent this behaviour and force DHCP to only broadcast on its interface?

Note, the "invalid argument" error is because I am experimenting with post-up/down settings

Thanks

enter image description here

300baud
  • 111
  • 2

1 Answers1

1

If you will always be bringing eth1 up manually at some point after anything automatic has happened during boot or network restart, then you could set the method on teh device to manual

auto eth1
iface eth1 inet manual

And then instead of ifup eth1 do dhclient -v eth1

ivanivan
  • 1,488
  • 7
  • 6