You are not logged in.

#1 2009-03-27 19:40:41

summer
Member
Registered: 2009-03-27
Posts: 5

cable connected, ip assigned - still no network

Hi.. I have a very odd problem that i've never had on any other linux dist. just installed arch linux and i'm unable to get a wan-connection (guess that's what it's called since i'm able to ping everyone on the lan)

i've tried rebooting a million times and switch the netcable without luck.

this is what i got:

ifconfig -a:

eth0 [wireless, doesn't matter]

eth1 link encap:ethernet   hwadder 00:.......
inet addr:192.168.0.101  bcast:192.168.0.255  mask:255.255.255.0
up broadcast running multicast mtu:1500  metric:1
rx ...
tx ...
collisions:0 txqueuelen:1000

lo [localhost....]

/etc/rc.conf:

eth1="dhcp"
INTERFACES=(eth1)
ROUTES=(!gateway)

/etc/resolv.conf:

nameserver 192.168.0.1

the nameserver is the ip of the router. It's what dhcp writes to resolv.conf on boot. i've tried adding the nameservers i've got from my ISP with no luck either.

dmesg | grep eth

driver 'sd' needs updating - please use bus_type methods
sda:(4)Driver 'sr' needs updating - please use bus_type methods
eth1: broadcom 44xx/47xx 10/100baset ethernet 00:14:.....
b44: eth1: link is up at 100 mpbs, full duplex
b44: eth1: flow control is off for tx and off for rx
b44: eth1: powering down phy
b44: eth1: link is up at 100 mpbs, full duplex
b44: eth1: flow control is off for tx and off for rx

my harddrive is partitioned so var, tmp, home, boot, / and usr is separated. don't know if it's because root doesn't have access or something, but here's a copy of my fstab:

/etc/fstab:

none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs rw,noexec,nosuid,nodev 0 0
/dev/sda10 /home ext4 rw,suid,exec,auto,nouser,async 0 2
/dev/sda2 /boot ext4 defaults 1 2
/dev/sda7 / ext4 defaults 0 1
/dev/sda5 swap swap defaults 0 0
/dev/sda6 /var ext4 defaults 0 1
/dev/sda8 /tmp ext4 loop,rw,noexec,nosuid,nodev 0 0
/dev/sda9 /usr ext4 defaults 0 1

to sum it up:  i have access to my lan, but can't get outside. every other computer on the network can. tried dhcpcd eth1 and /etc/rc.d/network restart a few times also.. i'm logged in as root.

Offline

#2 2009-03-27 19:46:44

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: cable connected, ip assigned - still no network

Doesn't your DHCP server provide you with a default route? (netstat -rn) If it doesn't, you might try removing the ! from "gateway" in ROUTES, after making sure the gateway entry actually matches your real gateway.

Offline

#3 2009-03-27 19:54:07

summer
Member
Registered: 2009-03-27
Posts: 5

Re: cable connected, ip assigned - still no network

when i remove the ! infront of gateway my rc.conf looks like this:
eth0="dhcp"
INTERFACES=(eth0)
gateway="default gw 192.168.1.1"
routes=(gateway)

when i run /etc/rc.d/network restart i get:
:: stopping network
SIOCDELRT: no such process [FAIL]
:: starting network
SIOCADDRT: no such process [FAIL]

notice that the interface is no longer eth1 but eth0, because i also rebooted, and the NIC's are randomly called either eth0 or eth1...... weird indeed.

Offline

#4 2009-03-27 20:02:03

summer
Member
Registered: 2009-03-27
Posts: 5

Re: cable connected, ip assigned - still no network

i just noticed that when i ping a site i also get its ip. it gives me this:

[root@freespot ~]# ping google.com
PING google.com (74.125.67.100) 56(84) bytes of data

and then it just stays there until i interupt with ctrl+c... i finds the ip of any url i type.. what does this mean??

edit:
i can even do a full traceroute to google ... i really don't understand whats wrong here. never tried that all the other stuff worked when ping doesn't. i can also ping archlinux from my mac. really don't understand what's going on here. why is ping not working??

Last edited by summer (2009-03-27 20:06:38)

Offline

#5 2009-03-27 20:05:46

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: cable connected, ip assigned - still no network

summer wrote:

when i remove the ! infront of gateway my rc.conf looks like this:
eth0="dhcp"
INTERFACES=(eth0)
gateway="default gw 192.168.1.1"
routes=(gateway)

when i run /etc/rc.d/network restart i get:
:: stopping network
SIOCDELRT: no such process [FAIL]
:: starting network
SIOCADDRT: no such process [FAIL]

notice that the interface is no longer eth1 but eth0, because i also rebooted, and the NIC's are randomly called either eth0 or eth1...... weird indeed.

If what you have here is accurate the problem is that the IP of the gateway does not match the real IP in your network.
You have now gateway="default gw 192.168.1.1" but it should be gateway="default gw 192.168.0.1"

R.

Offline

#6 2009-03-27 20:08:32

summer
Member
Registered: 2009-03-27
Posts: 5

Re: cable connected, ip assigned - still no network

thanks for your comment ralvez - but my routers webinterface tells me that the default gateway is 192.168.1.1 ... i've also tried 192.168.0.1 and gives me the same error...

Offline

#7 2009-03-27 20:24:54

summer
Member
Registered: 2009-03-27
Posts: 5

Re: cable connected, ip assigned - still no network

sorry that i wasted your time.. shows up it's my router. it's brand new and i just took it for granted that ping worked on every router but everything else works. i'm too much a geek to think it could be such a simple solution. i appreciate your efforts to help me out!

Offline

Board footer

Powered by FluxBB