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.
|
All times are GMT -5. The time now is 11:39 PM. |