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
1 comments:
Write commentsYou have type up in IP addresses.
ReplyWhat do you think about this Article? Add your Opinion..! EmoticonEmoticon