Ubuntu 网络不通检查要点

1.网络设置

1)连接设置

/etc/network/interfaces文件中做如下设定
iface eth0 inet static
address 192.168.1.166
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

2)DNS:

  1. echo 'nameserver 192.168.0.1' >> /etc/resolv.conf  
  2. echo 'nameserver 88.8.8.8' >> /etc/resolv.conf  
  3.   
  4. //然后重启网卡  
  5. /etc/init.d/networking restart  


2.关闭防火墙

ufw disable


3.VMWare 网络连接配置

Edit->Virtual Network Editor

你可能感兴趣的:(Linux,ubuntu,network,vmware)