View Single Post

   
  #6 (permalink)  
Old 02-21-2008, 07:40 AM
TCMa
 
Posts: n/a
Default Re: eMachines M6807 notebook eth0 problem

I finally get the ethernet to work by adding "pci=noacpi noapic" to
the /boot/grub/grub.conf file:
kernel /kernel-2.6.5-gentoo root=/dev/ram0 init=/linuxrc
real_root=/dev/hda5 vga=0x317 splash=verbose pci=noacpi noapic
psmouse.proto=imps

However,
#ifconfig

eth1 Link encap:Ethernet HWaddr 00:03:25:10:b0:21
inet addr:192.168.2.112 Bcast:192.168.2.255
Mask:255.255.255.0
inet6 addr: fe80::203:25ff:fe10:b021/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2307 (2.2 Kb) TX bytes:1243 (1.2 Kb)
Interrupt:9 Base address:0xb000

Why "eth1" but not "eth0"?
Do "inet6 addr" suppose to appear?

Hekaton Keires <mailto__hekatonkeires@hotmail.com> wrote in message news:<2kl7haF3mfrsU1@uni-berlin.de>...
> TCMa wrote:
>
> > My ADSL modem and 4 port router is working because I am using another
> > linux computer which got an IP address 192.168.2.192.

>
> so you have a dhcp server on your network?
>
> > The values of eMachines M6807 notebook
> > /etc/conf.d/net are
> > iface_eth0="up"
> > iface_eth1="up"
> > iface_eth0="dhcp"
> > iface_eth1="dhcp"
> > iface_eth0="192.168.2.112 broadcast 192.168.0.255 netmask
> > 255.255.255.0"
> > iface_eth1="192.168.2.112 broadcast 192.168.0.255 netmask
> > 255.255.255.0"
> > gateway="eth0/192.168.2.1"
> > gateway="eth1/192.168.2.1"

>
> is this right? i mean i've just removed all the suspicous parts of your
> message and tried to reconstruct your configuration file.
>
> anyway first of all you have to decide between dynamic or static addressing,
> this means that you shouldn't have at the same time
>
> iface_eth[0-1]="dhcp" and
> iface_eth[0-1]="192.168..."
>
> follows a strip from my /etc/conf.d/net:
>
> ### eth0 dynamic configuration ###
> iface_eth0="dhcp"
> dhcpcd_eth0="-h hostname"
> ### eth1 static configuration ###
> iface_eth1="192.168.254.1"
> gateway="eth1/192.168.254.254"
> ### EOF
>
> first of you can see that eth1 has only ip address, w/out any netmask or
> broadcast - these are just calculated considering ip address as a part of
> standard private class C network (netmask 255.255.255.0 broadcast
> 192.168.254.255), second you should pay also attention when defining more
> than one default gateways...
>
> what i can suggest you is try to put down network with
>
> /etc/init.d/net.eth[0-1] down
>
> and then just try to configure eth by yourself with
>
> # ifconfig eth0 192.168.2.112
> # ifconfig eth up
>
> or, in case you have somewhere (on the same broadcast domain) a dhcp server:
>
> # dhcpcd eth0
>
> hope this helps to see something new

Reply With Quote