Well, without having yast that seems to be what you have to do. There is a template file which may help:
Code:
cat /etc/sysconfig/network/ifcfg.template
This is my setup:
Code:
BOOTPROTO='static'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR='10.0.0.2/24'
MTU=''
NAME=''
NETMASK=''
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
DHCLIENT_SET_DEFAULT_ROUTE='yes'
I am mostly relying on yast, so I only have to do such editing once in a while. Checking my server, there is another file "ifroute-eth0" which is containing just one line - the default route via may fritz box:
Code:
default 10.0.0.1 - eth0
I made the IP addresses up - you will know your router's IP address I hope. There is also the file "config". For my server there is the DNS resolution set static:
Code:
NETCONFIG_DNS_STATIC_SEARCHLIST="my_router's_hostname"
Code:
NETCONFIG_DNS_STATIC_SERVERS="10.0.0.1"
I can't promise that is all. These are just the details I can identify having been set on my system.