Re: eMachines M6807 notebook eth0 problem 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
--
remove mailto__ on reply |