PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > Address-less ethernet interface
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

Address-less ethernet interface

Réponse
 
LinkBack Outils de la discussion
Vieux 23/02/2007, 16h30   #1
Anand Buddhdev
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Address-less ethernet interface

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
  Réponse avec citation
Vieux 23/02/2007, 16h50   #2
Scott Reese
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Address-less ethernet interface

-----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
  Réponse avec citation
Vieux 23/02/2007, 20h20   #3
Gilles Mocellin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Address-less ethernet interface

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-----

  Réponse avec citation
Vieux 23/02/2007, 22h00   #4
pinniped
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut try


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
  Réponse avec citation
Vieux 24/02/2007, 21h30   #5
Anand Buddhdev
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Address-less ethernet interface

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
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 19h39.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13585 seconds with 13 queries