LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   New to linux, cannot connect to the internet. (https://www.linuxquestions.org/questions/linux-networking-3/new-to-linux-cannot-connect-to-the-internet-315950/)

calathar 04-22-2005 01:46 AM

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?

masand 04-22-2005 01:54 AM

try assigning ip address to ur eth0

ifconfig eth0 <ipaddress/subnet>

regards

calathar 04-22-2005 02:00 AM

The message I get when trying that is:

SIOCSIFADDR: Permission Denied
SIOCSIFFLAG: Permission Denied

Any other ideas?

borru 04-22-2005 02:03 AM

Code:

su root
before that

masand 04-22-2005 02:06 AM

yes u need to run

su

before that,knoppix by defaults does not give u all the permissions

regards

calathar 04-22-2005 02:08 AM

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.

masand 04-22-2005 02:27 AM

post the O/P of

ifconfig

and

route -n

calathar 04-22-2005 02:45 AM

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.

masand 04-22-2005 03:08 AM

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

calathar 04-22-2005 03:10 AM

Traceroute: unknown host yahoo.com

masand 04-22-2005 03:17 AM

what is ur gateway and dns server address???

try

route del default

then

route add default gw <ip addr of ur gateway>

regards

calathar 04-22-2005 03:19 AM

I just checked, and it has the correct address for my gateway.

calathar 04-22-2005 03:22 AM

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

masand 04-22-2005 03:32 AM

yes thats is fine

can u ping ur gateway?

calathar 04-22-2005 03:42 AM

No, I can't.

masand 04-22-2005 03:52 AM

what do u use to access internet eth1 or eth0???

calathar 04-22-2005 03:07 PM

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.

Linuxmyatuk 04-22-2005 07:53 PM

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.

masand 04-22-2005 09:34 PM

Quote:

Originally posted by Linuxmyatuk
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.

are u doin thi while u are "root"???

do run

su

before u do this

regards

masand 04-22-2005 09:50 PM

Quote:

Originally posted by calathar
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.

so if u say that u are connected through eth1 so can u ping any machine on the network??

if u cannot ping ur gateway then u cannot access the internet

regards

calathar 04-23-2005 01:23 PM

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?

masand 04-23-2005 01:45 PM

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

calathar 04-23-2005 04:35 PM

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?

masand 04-23-2005 10:14 PM

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

calathar 04-24-2005 01:38 AM

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...

masand 04-24-2005 01:58 AM

we can go further only if u are able to ping ur gateway...

calathar 04-24-2005 12:29 PM

Okay. Thanks anyway.

Bill Johns 04-25-2005 01:21 AM

I read it as those 2 ether net cards are conflicting. Both use the
same interupt.

masand 04-25-2005 02:02 AM

but none of them works if we bring each of them down

regards

calathar 04-25-2005 11:42 PM

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?

Bill Johns 04-27-2005 04:57 AM

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.