Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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 have 2 systems one with win-xp and the other with redhat 8.0
i have a cable modem and a router my isp doesnt support for linux
so how do i connect to internet through linux machine.
Does your router have mutiple ethernet ports (a hub) or just a single ethernet connection? If you have a hub you can just plug in both your boxes and setup dhcp like this: http://www.linuxquestions.org/questi...threadid=51554
If it only has one port you have 2 options:
A) Go buy a multiport ethernet router($60-80 USD) Linksys BEFSR41, etc
B) Setup some type of internet sharing
Option B is a little bit trickier, but definitely feasible:
Step 1)
Set the linux box up hardware-wise. You'll have to buy a second ethernet card for the linux box and a crossover-cable (not normal patch cable!) to have an internal LAN for the XP machine.
Alot of times ISPs will tell you that they don't support linux, but usually linux works just fine anyway. If your multi-port router can do dhcp, it's a snap to setup. Just plug in both boxes and configure them to use dhcp to get their ip adresses from the router. Redhat has a network configuration tool (start button->system settings->network). Just select the external interface (usually eth0), click edit, there will be a line that says " automatically obtain ip address settings with". Click the button in front of that line and select dhcp from the drop down menu. Make sure activate device on startup is selected as well. Click ok. You probably will need to reboot.
HTH
Hi
I did that but it isnt working.
actually the sys with redhat has dual boot one win2K and redhat 8.0
the other sys is only win-xp
when i ping the redhat sys from xp its successful but the other isnt.
I hope you understood my problem.
Thank you
So your XP machine is doing dhcp properly, right? First use network tool again and see if Redhat is getting an ip from the router properly. Compare it to the ip of the XP machine. If your router is doing dhcp properly, they should be similar (like 192.168.0.2 and 192.168.0.3).
Try turning off iptables using: service iptables stop and try pinging again
Also make sure you don't have ipchains on as well: chkconfig ipchains off
What brand of router is it? Are you pinging with the ip or hostname of the XP box? If you boot up the Windows partition on the RH8/Windows dual boot, can you ping then? What's the output the ifconfig comand on the Redhat box?
It just clicked! Sounds like the old "no gateway/dns" problem. Check the gateway ip address and the dns server address that the working XP machine is configured to use. These should be correct because it is routing stuff properly (ie ping works for the XP box). Double check these with the settings in RH8. It's probably just got one of these misconfigured (ie ping can't resolve/route properly on RH box).
Reply from 192.168.254.3: bytes=32 time<1ms TTL=64
Reply from 192.168.254.3: bytes=32 time<1ms TTL=64
Reply from 192.168.254.3: bytes=32 time<1ms TTL=64
Reply from 192.168.254.3: bytes=32 time<1ms TTL=64
Ping statistics for 192.168.254.3:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
this is when i ping from xp to RH
Hi
when i ping from win2K (ie dual boot with RH )to win-xp it works fine.but when i ping from Rh to win-xp it stays calm for some time and says failed.
The router i have is SIEMENS 4-port DSL/cable Router speed stream
Good, so the network hardware or topology isn't the problem. Check on the gateway and dns settings using the RH network tool, they should be the same as the settings in the WinXP box.
If dhcp is setup properly on the RH box, then no it will grab them from the router. But they should be the same as the Win2k machine otherwise something ain't workin' like it's supposed to.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.