[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: multiple DHCP servers and /etc/resolv.conf



On Mon, Oct 22, 2012 at 7:12 AM, Vincent Lefevre <vincent@vinc17.net> wrote:
> On 2012-10-21 16:11:28 -0400, Tom H wrote:
>>
>> What do you mean by "kill"? "dhclient -r <nic>"?
>
> I don't know how it is killed exactly. I have in /etc/network/interfaces:
>
> allow-hotplug n900
>
> mapping n900
>   script /usr/sbin/guessnet-ifupdown
>   map syslog: true
>   map default: n900-dhcp
>   map debug: true
>   map timeout: 10
>
> iface n900-dhcp inet dhcp
>
> iface n900-n900 inet dhcp
>   test peer address 192.168.2.15
>   up sed -i 's/.*[[:space:]]n900\./192.168.2.15\tn900./' /etc/hosts
>   down sed -i 's/.*[[:space:]]n900\./192.168.0.9\tn900./' /etc/hosts
>
> When I unplug the USB cable, the n900 interface is automatically
> removed (by udev, I assume), and I suppose that it is ifupdown
> that kills the DHCP client and that it does the right thing (by
> using "dhclient -r ...").

When you said "kill" I thought that you might be using "kill...".

You seem to have hit a resolvconf bug.


Reply to: