1、Redhat
(1)网络配置
vi /etc/sysconfig/network-scripts/ifcfg-eth0(2)域名解析配置
vi /etc/resolv.conf
nameserver 192.168.1.1
(3)重启网络
/etc/init.d/network restart2、ubantu
(1)配置网络
(2)重启网络
(3)关闭防火墙
sudo ufw disable
(4)配置域名
vi /etc/resolv.conf (修改域名)