终端键入Setup : 1,修改网络配置,
本地ip地址
子网掩码
网关
DNS
2,修改防火墙配置
命令验证 : service iptables stop 关闭防火墙
service iptables status 验证防火墙状态
service network restart 重启网络服务
Centos7:
Firewall-cmd –state 查看防火墙状态
systemctl stopfirewalld.service 停止防火墙
systemctl disablefirewalld.service 禁止防火墙开机启动
查看网络状态 : ifconfig
Ping www.baidu.com