S
S
smartlight2013-01-15 14:21:22
Debian
smartlight, 2013-01-15 14:21:22

How to get DHCP settings from two different providers in Debian 6?

Good afternoon.
There is a router on Debian for a small organization.
There are two providers. They give settings on DHCP.
I would like to configure /etc/network/interfaces in such a way that changing the laces from different providers the Internet will automatically rise. Now for this you need to restart the server.
During the setup, I came to the conclusion that the whole thing is in dhclient.
Set up the interface like this:

auto eth1
allow-hotplug eth1
iface eth1 inet dhcp
        hwaddress ether 00:22:64:54:6B:66
        down "/usr/bin/killall dhclient"
        up "/sbin/dhclient eth1"


But the up/down commands don't work.

CHADNT?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
ivnik, 2013-01-15
@smartlight

Check out netplugd (http://linux.die.net/man/8/netplugd).
In your config, the scripts will be triggered when the interface is brought up/stopped, and not when the link appears/disappears.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question