Tuesday, July 28, 2009

How do I properly configure my Linux to connect through my home router?

I have a wierd situation:





I currently have a home network consisting of 3 pc's and a DSL router. 2 of the 3 pc's are running windows and the DNS is pointing to the IP of the router (in this case 10.0.0.2), everything is fine with those 2, but the 3rd pc is running linux (more specificly fedora core 5). Now, if I open the network settings window and browse to DNS, I then obviously put 10.0.0.2 in the primary DNS right? nope, dont work, I can ping the other 2 pc's using their IP's but not their names - same goes for web pages. So after a lot of googling I found out that I could use the DNS IP that the router is using (something like 196.x.x.x) and put it directly into the linux settings, I can now open web pages properly, but now I still cant access the local 2 pc's. What the heck is going wrong here? Why does Windows seem to do everything "automaticaly" compared to linux?

How do I properly configure my Linux to connect through my home router?
If you're running a home network, in most cases, the internal IP, that is the IP address accessible to your computers would normally be 192.168.1.1 as a default. You could enable DHCP on your router and set your computers to, including the Linux computer to Obtain IP address automatically, and set your default gateway to 192.168.1.1. To set up Linux from KDE: Log in as root, in the systems menu select 'network device control', then select your card, click on the configure button, when the 'network device configurations' window appears, double click on your device, then the 'ethernet device' window will open, in that window make the following settings:





1. activate device when computer starts


2. automatically obtain IP address settings with DHCP


3. check the box 'Automatically obtain DNS information from provider.





Then restart the computer, and you should be up and going.
Reply:Your ISP DNS is not configured to resolve the names of your PC's.





Look up how to setup a hosts file.





If you can browse the Internet, you are already using your home router.


No comments:

Post a Comment