Linux网络配置(10)

Linux网络配置原理图(NAT模式)

查看网络IP和网关:

  CentOS7:ip addr

  CentOS6:ifconfig

  

Ping测试主机之间网络的连通性:ping [www.baidu.com]

网络环境配置:

  /etc/sysconfig/network-scripts/ifcfg-eth0

  一般服务器采用手动配置的方式设置一个静态IP;设置成功后重启服务service network restart 或者 reboot

  

猜你喜欢

转载自www.cnblogs.com/az4215/p/11416050.html