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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-05-2008, 12:12 AM
|
#1
|
|
LQ Newbie
Registered: May 2008
Posts: 3
Rep:
|
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
|
|
|
|
05-05-2008, 03:10 AM
|
#2
|
|
Member
Registered: Dec 2002
Location: Au
Distribution: Debian
Posts: 208
Rep:
|
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.
|
|
|
|
05-05-2008, 03:15 AM
|
#3
|
|
LQ Newbie
Registered: Feb 2008
Location: Luxembourg, Europe
Distribution: Ubuntu 10.04
Posts: 7
Rep:
|
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".
|
|
|
|
05-05-2008, 09:32 AM
|
#4
|
|
Member
Registered: Sep 2007
Location: Poland
Distribution: Ubuntu 8.04
Posts: 71
Rep:
|
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.
|
|
|
|
05-07-2008, 03:46 AM
|
#5
|
|
LQ Newbie
Registered: May 2008
Posts: 3
Original Poster
Rep:
|
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
|
|
|
|
05-08-2008, 09:03 AM
|
#6
|
|
Member
Registered: Sep 2007
Location: Poland
Distribution: Ubuntu 8.04
Posts: 71
Rep:
|
Quote:
Originally Posted by turburator
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.
|
|
|
|
05-08-2008, 02:55 PM
|
#7
|
|
Member
Registered: May 2008
Posts: 101
Rep:
|
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.
|
|
|
|
05-09-2008, 01:25 AM
|
#8
|
|
Member
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 221
Rep:
|
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.
|
|
|
|
05-21-2008, 07:58 AM
|
#9
|
|
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
|
turburator, - Please resolve the 2 contradictions pointed out by dr_agon:
- You don't dial an ADSL connection. -- Your ISP may force you to use PPPoE, but that isn't dialing.
- 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.
|
|
|
|
06-06-2008, 11:39 AM
|
#10
|
|
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
|
ping . . .
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:03 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|