>
> on an Opensuse 11 I have config my /etc/sysconfig/network/ifcfg-eth0 :
>
>
> Code:
> --------------------
>
> BOOTPROTO=‘none’
> BROADCAST=’’
> ETHTOOL_OPTIONS=’’
> IPADDR=‘192.168.51.30’
> MTU=’’
> NAME=‘name of my card’
> NETMASK=‘255.255.255.0’
> NETWORK=‘192.168.51.0’
> REMOTE_IPADDR=’’
> STARTMODE=‘auto’
> USERCONTROL=‘no’
> GATEWAY=‘192.168.51.2’
>
> --------------------
>
>
> if I run a route command I get no default route, only 192.168.51.0,
> link-local, and loopback.
>
> How can I define a default route Gateway permanently.
>
> I try
> route add default gw 192.168.51.2
>
> but when I reboot I got no route default again
>
> thx
>
>
The man page for routes is very useful, type
man 5 routes
in a console to read it.
To solve your problem, edit/create the file ‘/etc/sysconfig/network/routes’
add this line: (using information from your post)
default 192.168.51.2
Either reboot {shudder} or ‘rcnetwork restart’ to have this change
implemented.