How to connect to the internet using CentOS 5 ?
Posted on 19 March 2010 by Abidoon
Hi I’m a newbie in a linux OS Centos5. I’m having trouble in connecting to the internet using centOS 5. The DSL company gives me an static IP address of 192.168.8.6 with a subnet mask of 255.255.254.0, Default Gateway is 192.168.10.1 and a preferred DNS of 10.11.12.1 . Can anyone help me to create an internet connection in CentOS 5.

The IP address, the netmask and the gateway don’t make sense. Usually they are all within the same subnet.
For 192.168.8.6, with a netmask of 255.255.254.0, your machine can access 192.168.8.1 to 192.168.9.254. That’s it… you cannot get to your gateway as written.
So either the gateway is elsewhere in your address range (not 192.168.10.1), or your netmask is wrong.
DNS will work once the gateway is set right…
If you want, try netmask of 255.255.252 (will take you up to 192.168.11.254) or try gateway at 192.168.8.1 or 192.168.9.1