centos7修改静态ip

vim /etc/sysconfig/network-scripts/ifcfg-ens33

修改以下配置:

BOOTPROTO="static" 

ONBOOT="yes"

修改之后重启网卡:

systemctl restart network

posted @ 2024-08-15 14:22  stone9693  阅读(12)  评论(0)    收藏  举报
GitHub账户:https://github.com/stone9693