This would do (put it in
/etc/rc.d/rc.inet1.conf):
Code:
# Config information for eth0:
IPADDR[0]="192.168.0.100"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
....
# Default gateway IP address:
GATEWAY="192.168.0.XXX"
Where the
XXX is the IP of your router/gateway.
If your server uses eth1 instead, change the
[0] into
[1]. Don't forget to remove the existing DHCP related lines for your network interface (the
USE_DHCP[0]="yes" specifically)
Eric