Changing default gateway in SuSE Linux

Adding default Gateway in Linux SUSE

To change the default route permanently in SuSe Linux, make an entry in /etc/sysconfig/network/routes file.

For example, to make as default route, add the following line into /etc/sysconfig/network/routes file. 

default - -

Using route command:

To route all the traffic via gateway connected via eth1 network interface:
# route add default gw eth1

To view routes configured:

# netstat -rn 

Share this

Related Posts

Next Post »


Write comments
October 24, 2018 at 1:23 PM delete

You have type up in IP addresses.


What do you think about this Article? Add your Opinion..! EmoticonEmoticon