LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-05-2008, 12:12 AM   #1
turburator
LQ Newbie
 
Registered: May 2008
Posts: 3

Rep: Reputation: 0
Cannot connect to internet


Hi,

I am a newbie and I have a problem of getting my fedora box connected to internet via LAN. I have the broadband connection connected to my winxp desktop and I use D-Link ethernet switch to connect to linux box. The linux box can detect my winxp but when I cannot ping to any other server. on typing the command "ifconfig -a" I get the following::

eth0 Link encap:Ethernet HWaddr 00:02:55:FF:AE:AE
inet addr:192.168.0.254 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::202:55ff:feff:aeae/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2258 errors:0 dropped:0 overruns:0 frame:0
TX packets:2746 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:224227 (218.9 KiB) TX bytes:747820 (730.2 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:27 errors:0 dropped:0 overruns:0 frame:0
TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2248 (2.1 KiB) TX bytes:2248 (2.1 KiB)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)


Please help me in connecting to internet.

Thanks
Gary
 
Old 05-05-2008, 03:10 AM   #2
yowi
Member
 
Registered: Dec 2002
Location: Au
Distribution: Debian
Posts: 209

Rep: Reputation: 52
Have you set up "internet connection sharing" or whatever they call it now on the XP machine?

The output of "route" from the linux machine may be helpful.

Section 25 of Rute should fill in your knowledge.
 
Old 05-05-2008, 03:15 AM   #3
a.almeida
LQ Newbie
 
Registered: Feb 2008
Location: Luxembourg, Europe
Distribution: Ubuntu 10.04
Posts: 7

Rep: Reputation: 0
Internet access problems

I guess what you need to do depends on the distribution you're using. I use Suse Linux and sometimes have problems accessing the internet. The solution I found is to open the system console (you have to give the "root" password to get in) and type the instruction "rcnetwork restart".
 
Old 05-05-2008, 09:32 AM   #4
dr_agon
Member
 
Registered: Sep 2007
Location: Poland
Distribution: Ubuntu 8.04
Posts: 76
Blog Entries: 12

Rep: Reputation: 24
The best would be to connect your broadband network to the switch, but I guess it is not possible for you.
Check which network on the XP box you marked as "shared" because the help was little confusing for me. See http://support.microsoft.com/kb/306126
Make sure you have a default route on the linux system pointing to the XP box - it is your gateway.
Try to ping the next computer after the XP - this is the gateway address provided by your ISP and you can get its IP number from the XP setup. If you can do it, than you have internet, but you may be missing DNS setup.
 
Old 05-07-2008, 03:46 AM   #5
turburator
LQ Newbie
 
Registered: May 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Hi Guys,

Thanks for all your responses. This is what my current situation is
I have a dsl modem connected to DLink Ethernet switch and my xp and linux box is connected to this ehternet switch. I dial broadband connection via my win xp.
I have reached a situation wherein If I allow network connections to be shared on my xp then I can get linux box also connected to internet but when this happens I no longer can ping linux box from my winxp and vice versa. I am sure it is
some DNS settings issue but my novice talent is not helping me proceed further.

Thanks
Gary
 
Old 05-08-2008, 09:03 AM   #6
dr_agon
Member
 
Registered: Sep 2007
Location: Poland
Distribution: Ubuntu 8.04
Posts: 76
Blog Entries: 12

Rep: Reputation: 24
Quote:
Originally Posted by turburator View Post
I have a dsl modem connected to DLink Ethernet switch and my xp and linux box is connected to this ehternet switch. I dial broadband connection via my win xp.
I don't quite understand how you dial from XP when DSL modem is connected to the switch? Do you have ethernet connection from you DSL modem?
Quote:
If I allow network connections to be shared on my xp then I can get linux box also connected to internet but when this happens I no longer can ping linux box from my winxp and vice versa.
Try to configure each computer with static IP on the LAN side. Note that XP changes the IP of LAN interface when you turn "internet connection sharing" on (it is described in Widows help). Check the netmask and default gateway for each network interface.
Check your firewall options - maybe you just blocked ICMP packets?
Use IP numbers for ping instead of names to rule out DNS problems. If you can ping the DNS server, then try to use names.
 
Old 05-08-2008, 02:55 PM   #7
seraphim172
Member
 
Registered: May 2008
Posts: 101

Rep: Reputation: 15
web interface

My DLink Ethernet switch has an internal web interface that has all settings to connect to the Internet and provides DHCP services for connected services.

The IP number of the Ethernet switch has to be set as the gateway for the connected computer. You also need to set proper DNS IP numbers to get access to the outside world.

Why do you have to connect by hand from XP? Do you have an application for this on XP or are using the web interface anyway?

Linux Archive

Last edited by seraphim172; 06-05-2008 at 10:47 AM.
 
Old 05-09-2008, 01:25 AM   #8
paragkalra
Member
 
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 221

Rep: Reputation: 31
Hello turburator,

I had similar kind of setup and this is how both my boxes uses to access internet. I too had adsl broadband connnection. My ISP provided me with username & password which I used to dial up.

Now coming to the issue. I enabled always on internet connection in my D-Link adsl modem which meant that modem will automatically dial up and get connected to internet whenever it was powered on. (Just google and u will get tons of urls explaining always on dial up connection). So my modem used to get a dynamic IP from the ISP.

This modem was connected to the switch (Netgear). Now the trick here is to make your switch act as a DHCP server which will assign IP address to both the boxes. Thats it. There is no need to share your network connections on the windows box.

I would also suggest you take help of your Modem & Switch vendor support. Let me know how it goes.
 
Old 05-21-2008, 07:58 AM   #9
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
turburator,
  • Please resolve the 2 contradictions pointed out by dr_agon:
    1. You don't dial an ADSL connection. -- Your ISP may force you to use PPPoE, but that isn't dialing.
    2. You can't dial anything from a box, XP or other, that is connected to router; unless it has a separate (old-fashioned, true) dial-up modem, which I doubt.
    (paragkalra, please take note, & use proper terminology.)

  • As seraphim172 points out, you need to set up DHCP serving to your LAN on your D-Link.

  • You also also need to make sure that its DHCP client is getting an IP address from your ISP. However, if you are getting any 'Net connection, this is probably OK.

  • Please post the model # of your D-Link & a link to the mfr's info on it.
 
Old 06-06-2008, 11:39 AM   #10
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
ping . . .
 
  


Reply

Tags
restart


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
connect to internet trough wireless others connect to me with lan Amir Menesy Linux - Wireless Networking 1 11-13-2007 08:28 PM
how i connect (bridging) two internet connection and how to use that both the connect karthi26 Linux - Newbie 1 08-26-2007 03:10 AM
Messed up my Internet Settings (can't connect to the internet) Almazick Linux - Wireless Networking 0 09-07-2004 06:23 PM
can't connect to the internet:linux dont read my internet address droplsh Linux - General 1 02-29-2004 07:32 PM
Can connect broadband but can't connect Internet satimis Linux - Networking 4 01-31-2004 07:58 PM


All times are GMT -5. The time now is 04:28 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration