this question is related to my previous one (link). my network topology is: NAT->modem->router(NetGear 192.168.1.1)->TPLink(192.168.0.1) TPLink gives me the wireless network at home. but I have also ubuntu 12.10 connected to TPLink through wire.
other machines (wireless) have IP addresses like 192.168.0.100, ubuntu (wire) has eth0 configured as address 192.168.0.101 netmask 255.255.255.0 gw 192.168.0.1 it works fine, but after restart or shutdown of system I get disconnected. ping 192.168.0.1 gives "no network" error I can get connected again if I get wire off, wait a while and plug it again. sometimes it works instantaneously, but sometimes not, sometimes I get IP 192.168.1.3 as if the ubuntu was connected directly to the router (NetGear .1.1) but it is connected to the TPLink(.0.1) -> how is this possible??? and all in all this IP doesn't give me internet access.
when I do dhcpcd it fail:
sudo dhcpcd eth0 err, eth0: timed out warn, eth0: using IPV4LL address 169.254.201.73 user@comp:~$ dhcpcd.sh: interface eth0 has been configured with new IP=169.254.201.73
in order to bring internet back I have to
sudo dhcpcd eth0 err, eth0: dhcpcd already running on pid 2534 (/var/run/dhcpcd-eth0.pid) user@comp:~$ sudo kill -9 2534
plug the wire off, wait a while, turn it on again and:
sudo dhcpcd eth0 user@comp:~$ dhcpcd.sh: interface eth0 has been configured with new IP=192.168.0.100
then it is configured as 0.100 and works OK. so the problem is that dhcp is not stopped, and than it is not started automatically? sometimes when I turn on ubuntu after it was shut down, I have no connection but IP 0.100, then I have only to start dhcpcd.