DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.0.255
HWADDR=00:0C:29:25:96:A3
#第1个IP
IPADDR=192.168.0.2
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes
GATEWAY=192.168.0.1
cp ifcfg-eth0 ifcfg-eth1
#注意:设备还是eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.0.255
HWADDR=00:0C:29:25:96:A3
#第二个IP
IPADDR=192.168.0.3
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes
service network restart
DEVICE=eth0
HWADDR=00:00:01:01:02:02
TYPE=Ethernet
UUID=666f430d-63c6-6c99-a666-6d0669db8762
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=192.168.10.65
NETMASK=255.255.255.0
GATEWAY=192.168.10.1
DNS1=8.8.8.8
IPADDR1=192.168.10.66
NETMASK1=255.255.255.0
IPADDR2=192.168.10.67
NETMASK2=255.255.255.0
IPADDR3=192.168.10.68
NETMASK3=255.255.255.0
IPADDR4=192.168.10.69
NETMASK4=255.255.255.0
欢迎光临 逐梦论坛 (http://temp2023.zhumeng.org/) | Powered by Discuz! 7.2 |