Setting a CentOS gateway up that is in a different subney
Windows will just pop up a message stating that the gateway is on a different subnet, you click ok, and it works. CentOS on the other hand will take your configuration and not connect because of the netmask, if your gateway is close to the interface IP, you might get away with increasing the maximum hosts available with your netmask.
the following will get you access to IP addresses on the internet.
route add 123.45.67.89/32 dev eth0
route add default gw 123.45.67.89
where 123.45.67.89 is your gateway and eth0 is your interface. You can then add DNS or addresses in the hosts file
/etc/resolv.conf should be in the following format:
nameserver 123.45.67.89 nameserver 123.45.67.82