一、步骤
ip addr
cd /etc/sysconfig/network-scripts/ifcfg-xxx
vi ifcfg-xxx
-
i
-> 编辑 ->esc
->:wq
BOOTPROTO=static
ONBOOT=yes
IPADDR=xxx.xxx.xxx.xxx
NETMASK=xxx.xxx.xxx.xxx
GATEWAY=xxx.xxx.xxx.xxx
DNS1=xxx.xxx.xxx.xxx
DNS2=xxx.xxx.xxx.xxx
ZONE=public
service network restart
网友评论