|
|
|
|
||||||
| linux.debian.user debian-user@lists.debian.org. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi everyone,
I have looked through a Debian book I have, as well as Google and archive searches, but I can't figure out how to activate an ethernet interface on Debian at boot time without assigning any IP address to it. I have a system with eth0, eth1 and eth2. eth1 and eth2 have IP addresses, and are defined in /etc/network/interfaces. eth0 is connected to a monitoring switch port, so that I can run "tcpdump -i eth0 ...." to capture traffic on the network. I don't need any IP address on eth0, but I need it to be up. I can manually run "ifconfig eth0 up", but I can't figure out how to do this automatically at boot time. I have tried to put in the following in /etc/network/interfaces: auto eth0 iface eth0 However, ifup complains about incomplete parameters. Does anyone know the correct way to solve this problem? Please keep in mind that I can already do this from an /etc/rc.local script or somesuch, but I consider those kind of solutions to be a hack, and I prefer to do things the way "proper" way, ie. using the distro's scripts. TIA, -- Anand -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Anand Buddhdev wrote: > Hi everyone, > > I have looked through a Debian book I have, as well as Google and archive > searches, but I can't figure out how to activate an ethernet interface on > Debian at boot time without assigning any IP address to it. > > I have a system with eth0, eth1 and eth2. eth1 and eth2 have IP addresses, > and are defined in /etc/network/interfaces. eth0 is connected to a > monitoring switch port, so that I can run "tcpdump -i eth0 ...." to > capture traffic on the network. > > I don't need any IP address on eth0, but I need it to be up. I can > manually run "ifconfig eth0 up", but I can't figure out how to do this > automatically at boot time. I have tried to put in the following > in /etc/network/interfaces: > > auto eth0 > iface eth0 > > However, ifup complains about incomplete parameters. Does anyone know the > correct way to solve this problem? Please keep in mind that I can already > do this from an /etc/rc.local script or somesuch, but I consider those > kind of solutions to be a hack, and I prefer to do things the > way "proper" way, ie. using the distro's scripts. > > TIA, > Greetings Anand: in /etc/network/interfaces: auto eth0 iface eth0 inet manual The manual method is described in the manpage "interfaces" - -Scott -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF3xjtS7FYdPX6+iYRAt7YAJ4qfG1SMuzaUSkW7wQEnY/Xc8Y6SACfXmkS Pu/QDyQQXf8cIGD+ZzPkSBc= =KyYn -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Le vendredi 23 février 2007 17:40, Scott Reese a écrit:
> Anand Buddhdev wrote: [...] > in /etc/network/interfaces: > > auto eth0 > iface eth0 inet manual > > The manual method is described in the manpage "interfaces" > > -Scott I had to add "up ifconfig eth0 up" or it doesn't came up. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBF30r6DltnDmLJYdARAjBEAKCCepZdMV1Yfez1Wvv1R+ WQJ5FTqACgk+Op LPp2aKmkhcxehrupVHJxOFE= =r5pE -----END PGP SIGNATURE----- |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
auto eth0 iface eth0 inet manual Or else try to configure as 'static' with address '0.0.0.0'. -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
On 23/02/07 17:40, Scott Reese wrote:
Hello Scott, >> I don't need any IP address on eth0, but I need it to be up. I can >> manually run "ifconfig eth0 up", but I can't figure out how to do this >> automatically at boot time. I have tried to put in the following >> in /etc/network/interfaces: >> >> auto eth0 >> iface eth0 >> >> However, ifup complains about incomplete parameters. Does anyone know the >> correct way to solve this problem? Please keep in mind that I can already >> do this from an /etc/rc.local script or somesuch, but I consider those >> kind of solutions to be a hack, and I prefer to do things the >> way "proper" way, ie. using the distro's scripts. > > in /etc/network/interfaces: > > auto eth0 > iface eth0 inet manual > > The manual method is described in the manpage "interfaces" Thank you for your advice. The "manual" method is not described in the man page for "interfaces" on this system that I have. It may be because it's running Debian 3.0. I will probably use some kind of entry in /etc/rc.boot to get this working at boot time. Regards, -- Anand -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
![]() |
| Outils de la discussion | |
|
|