[[email protected] ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:0C:29:69:91:F4
TYPE=Ethernet
UUID=605ef50b-8527-440e-ad49-0ff7eae01034
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=192.168.123.147 # 这里要与物理机同网段
NETMASK=255.255.255.0
GATEWAY=192.168.123.1
DNS1=192.168.1.1
DNS2=8.8.8.8
时间: 2024-10-23 23:14:54