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 192.168.10.1 as default route, add the following line into /etc/sysconfig/network/routes file. 

default 192.168.2.1 - -

Using route command:

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

To view routes configured:

# netstat -rn 

Share this

Related Posts

Previous
Next Post »

1 comments:

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

You have type up in IP addresses.

Reply
avatar

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