DEVICE="eth0"
BOOTPROTO=static
HWADDR="00:0C:29:95:89:35"
IPV6INIT="yes"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="922c9260-e4b5-443e-b5d2-a13cb12cb78f"
IPADDR=192.168.111.3
NETMASK=255.255.255.0
GATEWAY=192.168.111.2
DNS1=192.168.111.2//设置DNS vi /etc/resolv.conf查看
IPADDR2=192.168.111.234//设置虚拟ip 通过ip addr 查看
时间: 2024-10-11 11:49:38