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

Re: weird dhclient problem



On Thu 30 Jun 2011 at 08:33:47 +0800, wolf python london wrote:

>     # The primary network interface
>     allow-hotplug eth0
>     #NetworkManager#iface eth0 inet dhcp
> 
>     iface dsl-provider inet ppp
>     pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
>     provider dsl-provider
>     iface eth0 inet dhcp
> 
>     As you can see, the last line "iface eth0 inet dhcp" means I can
>     get an ip via ifupdown and still use the dhcp to configure eth0.

Why use dhclient when 'iface eth0 inet dhcp' does it all for you? Not
that it's forbidden but what is the purpose?

The pre-up line is also puzzling. What is it meant to achieve that
'iface eth0 inet dhcp' doesn't? The commented portion  at the end of the
line is not allowed in /e/n/i. Please see the manual for ifupdown.
Neither may be the cause of your perceived problem but end of line
comments can lead to trouble.

The arp table after using dhclient (presumably ifup has run) being
incomplete may have something to do with the nature of the gateway
router but that's a wild guess.

There should be no difference between auto and allow-hotplug for the
interface. But try it and see.


Reply to: