Gateway on Centos


2008-01-10 Digg! icurtain Delcious icurtain Technorati icurtain


How to change your gateway in Centos

temporary change:

route del default gw 192.168.1.1

route add default gw 192.168.0.1

pemanent change

cd /etc/sysconfig/

nano network

NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=centosBox
GATEWAY=192.168.0.1