centos 内网IP配置教程
58
2024-09-08
1、ip addr 查看内网网卡
2、vi /etc/sysconfig/network-scripts/ifcfg-eth0 编辑文件

添加内网IP,掩码
删除defroute=yes
IPADDR=内网IP
NETMASK=掩码
退出并保存
Centos6:service network restart
centos7:systemctl restart network
centos8: nmcli c reload
重启网卡 完成!!!!