安装系统后IP配置问题

1.配置静态IP

在/etc/sysconfig/network-script/ifcfg-eth0 文件,网卡管理文件。修改为静态IP、IPADDR、网关、掩码等

同一台机器上的网卡不能配置在同一网段。

然后service network restart

2.ping不通

iptables打开关闭设置

route -a查看路由

原文地址:https://www.cnblogs.com/yaoyuanfeixing/p/6558038.html