Linux - NewbieThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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::
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".
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.
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.
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.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.