You are not logged in.
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
What is the output of ifconfig and route?
Happy Hacking!
Twitter: http://twitter.com/bobbyrburden/
Website: http://codebutcher.com/
Offline
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
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
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
This may be useless, but try this as root:
dhcpcd eth0
and see what happens.
Offline
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
No one?
Offline
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
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
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
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
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
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
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
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
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
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
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
configure your rc.conf for dhcp.
reboot your cable model.
then reboot your box
Done, done and done. Still no luck.
Offline
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
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
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
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
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