no auto for network interface?

Zach uid000 at gmail.com
Wed Nov 16 01:39:17 UTC 2005


I have no hotplug entry for eth0

The interfaces file, sans comments, is below.

I want eth0, which is wired,  to not be automatic, but to be
configured with dhcp when I tell it to.

I want eth1, which is 802.11 to be automatic at boot also via dhcp.

Currently they both get configured at boot.

------------------BEGIN /etc/network/interfaces-------------
auto lo
iface lo inet loopback

mapping hotplug
	script grep
	map eth1
iface eth1 inet dhcp
wireless-essid XXXXX
wireless-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
wireless-txpower 25mw
iface eth0 inet dhcp
auto eth1

------------------END /etc/network/interfaces----------------


On 11/15/05, Sandip Bhattacharya <sandip at lug-delhi.org> wrote:
> <posted & mailed>
>
> Zach wrote:
>
> > Can anyone tell me how to configure my /etc/network/interfaces file to
> > *not* configure an interface automatically on boot?
> >
> > the following entry is in my interfaces file for eth0
> > iface eth0 inet dhcp
> > which I believe is correct, since I want eth0 to be configured with
> > dhcp.
> >
> > I do not have an auto entry for eth0, yet it still is configured
> > automatically on boot, if the network cable is connected.  I only want
> > to bring it up explicitly, because I have to bring down eth1 first?
> >
> > Aside from not connecting the network cable, how can I have it not
> > brought up automatically?
>
> I had the same problem. I got by by *commenting* these lines
> in /etc/network/interfaces:
>
> ===========================
> mapping hotplug
>         script grep
>         map eth0
> ===========================
>
>
> - Sandip
>
> --
> Sandip Bhattacharya  *    Puroga Technologies   *     sandip at puroga.com
> Work: http://www.puroga.com  *   Home/Blog: http://www.sandipb.net/blog
>
> PGP/GPG Signature: 51A4 6C57 4BC6 8C82 6A65 AE78 B1A1 2280 A129 0FF3
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>


--
If you reply to a message I posted to a mailing list,
and you want me to see your reply, be sure to put my
address in the 'To:', or I might not see the message.




More information about the ubuntu-users mailing list