cd /etc/sysconfig/network-scripts/
vi ifcfg-enp0s3
1.修改配置
BOOTPROTO=static
2.新增配置(查询宿主机对应的信息)
IPADDR=192.168.0.17
GATEWAY=192.168.1.1
NETMASK=255.255.240.0
DNS1=219.141.136.10
DNS2=219.141.140.10
NM_CONTROLLED=no
2023-08-12 22:14:58
cd /etc/sysconfig/network-scripts/
vi ifcfg-enp0s3
1.修改配置
BOOTPROTO=static
2.新增配置(查询宿主机对应的信息)
IPADDR=192.168.0.17
GATEWAY=192.168.1.1
NETMASK=255.255.240.0
DNS1=219.141.136.10
DNS2=219.141.140.10
NM_CONTROLLED=no