Default Gateway Location

Centos and Red Hat:
/etc/sysconfig/network

NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=myhost
GATEWAY=123.123.123.1

Ubuntu/Debian:
/etc/network/interfaces

gateway 192.168.1.254

Command Line:

route add default gw 192.168.1.254

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>