New to linux, cannot connect to the internet.
I'm using the knoppix 3.7 livecd. I put it in, and it went wondrefully - detected everything, and looked like it was going to work quite well. Everything does, except that it won't connect to the internet. I used ifconfig, and eth0 doesn't show up, but eth1 does and has an ip address. I'm guessing that eth0 is my wireless adapter, which I have disabled, and eth1 is my wired adapter, which I would like to use. What do I need to do?
|
try assigning ip address to ur eth0
ifconfig eth0 <ipaddress/subnet> regards |
The message I get when trying that is:
SIOCSIFADDR: Permission Denied SIOCSIFFLAG: Permission Denied Any other ideas? |
Code:
su root |
yes u need to run
su before that,knoppix by defaults does not give u all the permissions regards |
Okay, I did that, and now eth0 shows up in ifconfig with the ip address, but I'm quite sure that eth0 is still the wrong adapter, and that adapter isn't connected to anything. I still can't connect to the internet, as well.
|
post the O/P of
ifconfig and route -n |
ifconfig:
eth0 Link encap:Ethernet HWaddr 00:04:23:5C:AB:A4 inet addr:24.244.xx.xxx Bcast: 24.255.255.255 Mask:255.0.0.0 UP BROADCAST MULTICAST MTU:1500 METRIC:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:1 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:11 Base address:0x8000 Memory:fcef6000-fcef6fff eth1 Link encap:Ethernet HWaddr 00:08:0D:52:E7:36 inet addr:24.244.xx.xxx Bcast: 24.244.xx.xxx Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 METRIC:1 RX packets:144 errors:0 dropped:0 overruns:0 frame:0 TX packets:160 errors: dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:33137 (32.3 KiB) TX bytes:9512 (9.2 KiB) Interrupt:11 Base address:0xcf40 Memory:fcef7000-fcef7038 lo Link encap: Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:138 errors:0 dropped:0 overrun:0 frame:0 TX packets:138 errors:0 dropped:0 overrun:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:12459 (12.1KiB) TX bytes:12456 (12.1 KiB) And for route -n(the table won't fit, so I'll just list the order of the columns): Kernel IP routing table Destination, Gateway, Genmask, Flags, Metric, Ref, Use, Iface 24.244.xx.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 24.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0 0.0.0.0 24.244.xx.1 0.0.0.0 UG 0 0 0 eth1 I hope I didn't make any typos...but that looks to be it. |
so u see ur default route,it is through eth1,now can u ping
24.244.xx.1 also what do u get for traceroute yahoo.com |
Traceroute: unknown host yahoo.com
|
what is ur gateway and dns server address???
try route del default then route add default gw <ip addr of ur gateway> regards |
I just checked, and it has the correct address for my gateway.
|
I entered those commands in anyway, and it didn't change anything...
Is it okay that the destination address for eth1 in the routing table has a 0 in the fouth octet? 24.244.xx.0 |
yes thats is fine
can u ping ur gateway? |
No, I can't.
|
what do u use to access internet eth1 or eth0???
|
Well, like I said, I'm assuming that eth0 is my wireless adapter which is not connected to anything, and eth1 is my wired adapter which is connected. I assume this because when I restart, eth1 has an ip address while eth0 does not.
So, I would think that I should be connecting through eth1, like I said earlier. |
Hello.. I am a Newbie but I am also getting the same error.
SIOCSIFADDR: Permission Denied SIOCSIFFLAG: Permission Denied Everyone has told me that I need the correct drivers for my nic card. I also have a laptop witha internal wireless connection plus a cat 5 connection. My suggest is to try to find the correct driver(s) for your card. Hope this helps. Not sure where you would be able to find them.. do a google. |
Quote:
do run su before u do this regards |
Quote:
if u cannot ping ur gateway then u cannot access the internet regards |
I'm connected directly to the internet through that machine, so there aren't any other machines for me to ping. I can't ping my gateway, either. Any ideas?
|
first of all u should be able to ping ur gateway then only w cna move ahead
do this bring down eth0 ifconfig eth0 down the assign ip adress to eth1 like ifconfig eth1 <ipaddress/subnet mask> and trying pinging ur gateway if it does not work then bring eth1 down again repeat this for eth0 and see if u get some results bring eth0 up by ifconfig eth0 up regards |
Okay, I tried all of that, and nothing got any results. However, I did notice that when eth0 was down, an internet browser would instantly tell me that the host of a website was not recognized, instead of taking a minute or two to realize that it has no connection...does that help at all?
|
hi there
looks like a ray of light!! so do this keeep eth0 down and the configuration that wokred a little there try running traceroute google.com ping google.com or nslookup on these and route -n regards |
ping: unknown host google.com
on the nslookup: ;; connection timed out; no severs could be located traceroute: unkown host google.com And on the route -n I have the exact same table as above, except without the row with eth0 at the end. Thanks for all the help so far. Hopefully we can get it working... |
we can go further only if u are able to ping ur gateway...
|
Okay. Thanks anyway.
|
I read it as those 2 ether net cards are conflicting. Both use the
same interupt. |
but none of them works if we bring each of them down
regards |
So that doesn't help any? I only somewhat caught what he meant, but when we isolated one by bringing the other down we rule that out from being the problem?
|
You have to remove it from the system. Physically take it outa there. Then try it.
|
All times are GMT -5. The time now is 11:29 PM. |