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

Re: Trouble with eth0



On Thu, May 15, 2003 at 07:06:29PM -0700, Piero wrote:
> Gee Law wrote:
> >whoops...should've gone to list...
> >
> >On Thu, May 15, 2003 at 03:35:45PM -0700, Piero Caracciolo wrote:
> >
> >>I have two ethernet cards, a D-Link DFE-530TX and a Broadcom 440x 
> >>(integrated in my Asus motherboard). Debian 3.0 semms to detect at least 
> >>one of them (I think the D-Link). Here are a few lines from dmesg:
> >>
> >>
> >>>pcnet32.c: PCI bios is present, checking for devices...
> >>>via-rhine.c:v1.08b-LK1.0.1 12/14/2000  Written by Donald Becker
> >>>http://www.scyld.com/network/via-rhine.html
> >>>eth0: VIA VT6102 Rhine-II at 0xb800, 00:05:5d:aa:3b:e0, IRQ 0.
> >>>eth0: MII PHY found at address 8, status 0x782d advertising 05e1 Link 
> >>>45e1.
...
> >>This shows that interface eth0 is not really detected.
> >>Has anyboy got an idea?
> >>
> >>Should eth0 be in /dev ?
> >
> >
> >You need to edit /etc/network/interfaces. Here's mine:
> >
> ># /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
> >                                                                                
> ># The loopback interface
> >auto lo
> >iface lo inet loopback
> >                                                                                
> ># The first network card - this entry was created during the Debian 
> >installation# (network, broadcast and gateway are optional)
> >auto eth0 eth1
> >iface eth0 inet static
> >        address 129.31.25.22
> >        netmask 255.255.255.0
> >        broadcast 129.31.25.255
> >        gateway 129.31.25.1
> >                                                                                
> >iface eth1 inet static
> >        address 192.168.0.2
> >        netmask 255.255.255.0
> >        broadcast 192.168.0.255
> >
> >
> >Check out man interfaces for more info.
> >
> 
> Thanks, it sounds reassuring. I cannot give static address, though, 
> since they schould be obatained dynamically through DHCP: my computer is 
> connected to a Router-Switch that contains an embedded DHCP server. The 
> thing is that, in order to install a dhcp client, I need to have a 
> working eth interface (I believe).
> If you can tell me something more, it will be welcomed.


Install a DHCP client from the CD (or download it with a Windows machine):
apt-get install dhcp3-client

The rest is easy:

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
 
# The loopback interface
auto lo eth0

iface lo inet loopback
iface eth0 inet dhcp

-- 
Gee Law, gee(at)cromulent(dot)org(dot)uk
www.dizzyduck.uklinux.net [GPG key]

Attachment: pgpJtZ709Y48g.pgp
Description: PGP signature


Reply to: