LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-22-2005, 01:46 AM   #1
calathar
LQ Newbie
 
Registered: Apr 2005
Posts: 17

Rep: Reputation: 0
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?
 
Old 04-22-2005, 01:54 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
try assigning ip address to ur eth0

ifconfig eth0 <ipaddress/subnet>

regards
 
Old 04-22-2005, 02:00 AM   #3
calathar
LQ Newbie
 
Registered: Apr 2005
Posts: 17

Original Poster
Rep: Reputation: 0
The message I get when trying that is:

SIOCSIFADDR: Permission Denied
SIOCSIFFLAG: Permission Denied

Any other ideas?
 
Old 04-22-2005, 02:03 AM   #4
borru
LQ Newbie
 
Registered: Aug 2004
Posts: 7

Rep: Reputation: 0
Code:
su root
before that

Last edited by borru; 04-22-2005 at 02:48 AM.
 
Old 04-22-2005, 02:06 AM   #5
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
yes u need to run

su

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

regards
 
Old 04-22-2005, 02:08 AM   #6
calathar
LQ Newbie
 
Registered: Apr 2005
Posts: 17

Original Poster
Rep: Reputation: 0
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.
 
Old 04-22-2005, 02:27 AM   #7
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
post the O/P of

ifconfig

and

route -n
 
Old 04-22-2005, 02:45 AM   #8
calathar
LQ Newbie
 
Registered: Apr 2005
Posts: 17

Original Poster
Rep: Reputation: 0
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.
 
Old 04-22-2005, 03:08 AM   #9
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
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

Last edited by masand; 04-22-2005 at 03:13 AM.
 
Old 04-22-2005, 03:10 AM   #10
calathar
LQ Newbie
 
Registered: Apr 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Traceroute: unknown host yahoo.com
 
Old 04-22-2005, 03:17 AM   #11
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
what is ur gateway and dns server address???

try

route del default

then

route add default gw <ip addr of ur gateway>

regards
 
Old 04-22-2005, 03:19 AM   #12
calathar
LQ Newbie
 
Registered: Apr 2005
Posts: 17

Original Poster
Rep: Reputation: 0
I just checked, and it has the correct address for my gateway.
 
Old 04-22-2005, 03:22 AM   #13
calathar
LQ Newbie
 
Registered: Apr 2005
Posts: 17

Original Poster
Rep: Reputation: 0
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
 
Old 04-22-2005, 03:32 AM   #14
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
yes thats is fine

can u ping ur gateway?
 
Old 04-22-2005, 03:42 AM   #15
calathar
LQ Newbie
 
Registered: Apr 2005
Posts: 17

Original Poster
Rep: Reputation: 0
No, I can't.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot connect to wireless internet using linux ipodlinux Linux - Wireless Networking 10 07-01-2006 01:35 PM
how to connect to Internet with Linux ? MaaSTaaR Linux - General 13 08-11-2005 01:16 PM
How does Linux connect to the internet? testforechozero Programming 2 08-17-2004 06:01 PM
can't connect to the internet:linux dont read my internet address droplsh Linux - General 1 02-29-2004 07:32 PM
I can't connect to the Internet in Linux scracker Linux - Networking 5 09-20-2003 04:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration