linux-218:/etc/sysconfig/network

suse设置静态IP配置工作记录20130608_suse 静态ip

BOOTPROTO='static'

BROADCAST=''

ETHTOOL_OPTIONS=''

IPADDR='192.168.1.218'

MTU=''

NAME='VMWare 82545EM Gigabit Ethernet Controller (Copper)'

NETMASK='255.255.255.0'

NETWORK=''

REMOTE_IPADDR=''

STARTMODE='auto'

UNIQUE='rBUF.5dU8kR7eh2C'

USERCONTROL='no'

_nm_name='bus-pci-0000:02:01.0'


正式环境双网卡ip配置

gamedb:/etc/sysconfig/network # cat ifcfg-eth0
BOOTPROTO='static'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR='121.14.36.9'
MTU=''
NAME='NetXtreme II BCM5709 Gigabit Ethernet'
NETMASK='255.255.255.128'
NETWORK=''
GATEWAY='121.14.36.1'
REMOTE_IPADDR=''
STARTMODE='onboot'
USERCONTROL='no'
gamedb:/etc/sysconfig/network # cat ifcfg-eth1
BOOTPROTO='static'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR='60.56.26.14'
MTU=''
NAME='NetXtreme II BCM5709 Gigabit Ethernet'
NETMASK='255.255.255.224'
GATEWAY='60.59.26.1'
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='onboot'
USERCONTROL='no'
DEVICE='Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet'

路由配置

gamedb:/etc/sysconfig/network # cat routes
default 121.14.36.1 - -
default 60.59.26.1 - -

opensuse的路由网关配置需要单独写在/etc/sysconfig/network/routes这个文件中