本文共 531 字,大约阅读时间需要 1 分钟。
#vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0" BOOTPROTO="static" HWADDR="XX:XX:XX:XX:XX:XX" NM_CONTROLLED="yes" ONBOOT="yes" TYPE="Ethernet" UUID="aa3baac5-aaa7-4aa5-9aaa-baa284b2d231"
IPADDR=xx.xx.81.167 NETMASK=255.255.255.224 NETWORK=xx.xx.81.160 BROADCAST=xx.xx.81.191 GATEWAY=xx.xx.81.161IPADDR2=192.168.0.48 NETMASK2=255.255.255.0 NETWORK2=192.168.0.0 BROADCAST2=192.168.0.255 GATEWAY2=192.168.0.11DNS1=202.106.0.20 DNS2=192.168.0.13