You are not logged in.

#1 2008-03-18 22:40:46

Xs1t0ry
Member
From: Canada
Registered: 2007-07-01
Posts: 181

I've done everything right, so why isn't this working?

I'm connecting (or not) to a cable modem. I am using dhcp and I've followed the steps, but I just can't get a connection. I have fiddled with a lot of settings, but every time I try to ping google, unknown host. Need help, please!

/etc/rc.conf

HOSTNAME="myhost"
eth0="dhcp"
INTERFACES=(eth0)
ROUTES=(!gateway)

/etc/hosts

127.0.0.1 localhost.localdomain localhost myhost

Modules

# hwdetect --net
MODULES=(sk2 slhc)

Ping

# ping -c 3 www.google.com
ping: unknown host www.google.com

P.S. How can I ping my gateway, DNS server and IP provider in order to check if the problem is with one of those?

Thanks!

Offline

#2 2008-03-18 22:57:14

valnour
Member
From: Cleveland, TN, USA
Registered: 2008-02-17
Posts: 84
Website

Re: I've done everything right, so why isn't this working?

What is the output of ifconfig and route?

Offline

#3 2008-03-18 23:11:01

Xs1t0ry
Member
From: Canada
Registered: 2007-07-01
Posts: 181

Re: I've done everything right, so why isn't this working?

route

# route
Kernel IP routing table
Destination      Gateway        Genmask         Flag   Metric   Ref     Use    Iface
169.254.0.0      *             255.255.0.0      U      0         0       0      eth0

ifconfig

# ifconfig
eth0       Link encao: Ethernet HWaddr 00:01:29:A3:D0:C5
             inet addr:169.254.74.224 Bcast:169.254.255.255 Mask:255.255.0.0
             UD BROADCAST MULTICAST MTU:1500 Metric:1
             RX packets:24 errors:0 dropped:0 overrruns:0 frame:0 
             TX packets:19  errors:0 dropped:0 overrruns:0 carrier:0
             Collisions:0 txqueuelen:1000
             RX bytes:4874 (4.7 Kb) TX bytes:1408 (1.3 Kb)
             Interrupt:17

That's a lot of copying from a PC in the other room! Whew

Offline

#4 2008-03-18 23:33:48

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: I've done everything right, so why isn't this working?

You do not show a gateway so you cannot ping it.

If you have eth0 established in /etc/rc.conf, you can ping that number and receive a response.  If you establish a gateway, you can do the same with its numbers.  If you have a dns nameserver in /etc/resolv.conf (for static IP, not dhcp) you can ping the dns nameserver IP address.

The problem may be related to the IP number of the modem, or maybe you need a crossover cable between computer and modem(that is needed if I connect to Verizon modem direct).  I have static IP, no DHCP.


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#5 2008-03-18 23:46:26

Xs1t0ry
Member
From: Canada
Registered: 2007-07-01
Posts: 181

Re: I've done everything right, so why isn't this working?

Well like I said this is a fresh install and the net worked with my last install of arch (I switched from 32bit to 64) using the same cable and modem. I just can't remember what I did. Should I try static IP?

Offline

#6 2008-03-19 01:07:18

Jessehk
Member
From: Toronto, Ontario, Canada
Registered: 2007-01-16
Posts: 152

Re: I've done everything right, so why isn't this working?

This may be useless, but try this as root:

dhcpcd eth0

and see what happens.

Offline

#7 2008-03-19 01:19:47

Xs1t0ry
Member
From: Canada
Registered: 2007-07-01
Posts: 181

Re: I've done everything right, so why isn't this working?

Ok I switched to static IP and it's a bit better. Now I have a gateway when I use route:

# route
Kernel IP routing table
Destination      Gateway        Genmask         Flag   Metric   Ref     Use    Iface
169.254.0.0      *             255.255.0.0      U      0         0       0      eth0
default          192.168.0.1    0.0.0.0         UG      0       0         0      eth0

Ping results now:
lo = 0% loss
eth0 = 0% loss
nameserver = 100% loss
netmask = "network unreachable"
broadcast = "network unreachable"
gateway = "network unreachable"

Suggestions?

dhcpcd eth0 (still with static IP) gives me this:

Error, eth0 timed out

Do you want me to do it using dhcp setup?

BTW thanks for the help, not having internet sucks!

Offline

#8 2008-03-19 12:25:58

Xs1t0ry
Member
From: Canada
Registered: 2007-07-01
Posts: 181

Re: I've done everything right, so why isn't this working?

No one?

Offline

#9 2008-03-19 13:17:24

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

Re: I've done everything right, so why isn't this working?

In you are using a static ip you have to set /etc/resolv.conf

Get the name servers for your network and add them like this:

search mynetwork.org
nameserver 142.214.66.172
nameserver 142.214.67.72

Hope this helps.

R.

Offline

#10 2008-03-19 13:26:46

alexisdm
Member
Registered: 2007-11-18
Posts: 8

Re: I've done everything right, so why isn't this working?

Xs1t0ry wrote:

Ok I switched to static IP and it's a bit better. Now I have a gateway when I use route:

If you switched correctly to static IP, there shouldn't be any IP starting with "169.254".

in rc.conf you should have the lines (initial config):

eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(eth0)
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

It assumes that the modem address is actually 192.168.0.1.

Offline

#11 2008-03-19 17:22:19

Xs1t0ry
Member
From: Canada
Registered: 2007-07-01
Posts: 181

Re: I've done everything right, so why isn't this working?

alexisdm wrote:
Xs1t0ry wrote:

Ok I switched to static IP and it's a bit better. Now I have a gateway when I use route:

If you switched correctly to static IP, there shouldn't be any IP starting with "169.254".

in rc.conf you should have the lines (initial config):

eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(eth0)
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

It assumes that the modem address is actually 192.168.0.1.

Yes, it does have those lines in there; mkes sense that its the default. So how can I find out what I need to do to solve the problem?

Offline

#12 2008-03-19 17:23:26

Xs1t0ry
Member
From: Canada
Registered: 2007-07-01
Posts: 181

Re: I've done everything right, so why isn't this working?

ralvez wrote:

In you are using a static ip you have to set /etc/resolv.conf

Get the name servers for your network and add them like this:

search mynetwork.org
nameserver 142.214.66.172
nameserver 142.214.67.72

Hope this helps.

R.

Excuse my ignorance, but how can I get them?
In resolve.conf I have a nameserver and domain name entry (it says it was configured by dhcpcd or something). Would these be valid, then?

Offline

#13 2008-03-19 20:15:55

Xs1t0ry
Member
From: Canada
Registered: 2007-07-01
Posts: 181

Re: I've done everything right, so why isn't this working?

Ok I switched back to dhcp because I didn't feel I was getting anywhere doing it the other way and I have a feeling that's how I did it on my last install. I am running dhcp now and everything is the same as in my original post. Now dhcpcd eth0 gives me this:

Error, eth0: dhcpcd already running on pid 5071 (/var/run/dhcpcd-eth0.pid

What can I do?

Also, in /etc/hosts, should localhost.localdomain be changed to something or is it supposed to work as is?

Thanks

Offline

#14 2008-03-19 23:00:14

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

Re: I've done everything right, so why isn't this working?

Excuse my ignorance, but how can I get them?
In resolve.conf I have a nameserver and domain name entry (it says it was configured by dhcpcd or something). Would these be valid, then?

Usually the nameserver are given you by your ISP or your Network admin.

R.

Offline

#15 2008-03-19 23:02:29

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

Re: I've done everything right, so why isn't this working?

Xs1t0ry wrote:

Ok I switched back to dhcp because I didn't feel I was getting anywhere doing it the other way and I have a feeling that's how I did it on my last install. I am running dhcp now and everything is the same as in my original post. Now dhcpcd eth0 gives me this:

Error, eth0: dhcpcd already running on pid 5071 (/var/run/dhcpcd-eth0.pid

What can I do?

Also, in /etc/hosts, should localhost.localdomain be changed to something or is it supposed to work as is?

Thanks

DHCP is already running, that's what the message means.
You have to issue (as root) /etc/rc.d/network restart to re-initiate things.

Offline

#16 2008-03-20 19:24:40

Xs1t0ry
Member
From: Canada
Registered: 2007-07-01
Posts: 181

Re: I've done everything right, so why isn't this working?

I've done that--multiple times--but I still get no ping from google and pacman  won't work. Does that message mean it should it be working?

Offline

#17 2008-03-20 19:31:54

daf666
Member
Registered: 2007-04-08
Posts: 470
Website

Re: I've done everything right, so why isn't this working?

Xs1t0ry wrote:

I've done that--multiple times--but I still get no ping from google and pacman  won't work. Does that message mean it should it be working?

Can you ping your router? (your default GW)

Offline

#18 2008-03-20 19:49:58

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: I've done everything right, so why isn't this working?

if you don't know your ip already, then you probably need to use dhcp. I highly doubt you are using a static ip configuration without having known about it before.
configure your rc.conf for dhcp.
reboot your cable model.
then reboot your box...easier for you than trying to have you kill running dhcp client daemons.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#19 2008-03-20 19:51:16

Xs1t0ry
Member
From: Canada
Registered: 2007-07-01
Posts: 181

Re: I've done everything right, so why isn't this working?

I can ping my default gateway, but I get a 100% packet loss.

I know the problem isn't with my modem (because I use it for another computer), my /etc/rc.conf (it is just the way it should be) or my /etc/resolv.conf (I don't need it for dhcp anyways, but even if I did, the info is correct).

I think the problem is either in /etc/hosts or with my hardware. As I said this is a fresh install, but it is also a new motherboard (DFI Blood-Iron TL2)... could the problem be driver related? I haven't installed any motherboard drivers from the CD it came with yet, but two net modules do load. Is this the likely culprit?

Offline

#20 2008-03-20 19:52:11

Xs1t0ry
Member
From: Canada
Registered: 2007-07-01
Posts: 181

Re: I've done everything right, so why isn't this working?

cactus wrote:

configure your rc.conf for dhcp.
reboot your cable model.
then reboot your box

Done, done and done. Still no luck. sad

Offline

#21 2008-03-20 19:57:33

Xs1t0ry
Member
From: Canada
Registered: 2007-07-01
Posts: 181

Re: I've done everything right, so why isn't this working?

I'm starting to think it is a network driver problem. I have inserted my cdrom that came with my motherboard and mounted it. How do I access the files?

Offline

#22 2008-03-20 19:58:09

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: I've done everything right, so why isn't this working?

check the link state on the back of your computer, and on the cable modem.
Is it showing link?
also try.. mii-tool as root. See if it outputs anything ineteresting (mii utils might not be supported for your driver so don't be discouraged if nothing interesting is output).


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#23 2008-03-20 20:06:23

Xs1t0ry
Member
From: Canada
Registered: 2007-07-01
Posts: 181

Re: I've done everything right, so why isn't this working?

Thanks for your help.

Yes, it's showing a link

I tried mii-tool..

eth0: link ok

So I suppose it is the drivers

Offline

#24 2008-03-20 21:09:29

Xs1t0ry
Member
From: Canada
Registered: 2007-07-01
Posts: 181

Re: I've done everything right, so why isn't this working?

Ok, it's not the drivers. *Apparently* my chipset and driver or whatever is natively supported by the linux kernel so I don't need to install anything (according to another member). If this is true, what can the problem be?

Offline

#25 2008-03-20 21:50:03

daf666
Member
Registered: 2007-04-08
Posts: 470
Website

Re: I've done everything right, so why isn't this working?

ok, so lets try this;

1. set the ip of your interface to some IP that belongs to the router's internal subnet, leave the configuration files for now
so if the internal subnet of the router is 192.168.0.X and the routers IP is 192.168.0.1 set the ip of your interface like this:

ifconfig eth0 192.168.0.66 netmask 255.255.255.0

2. add the internal rouer IP as the default GW:

route add default gw 192.168.0.1

3. now try pinging the router and the router and beyond

Offline

Board footer

Powered by FluxBB