linux-ubuntu下网络配置
第一步:配置IP,子网掩码,网关、
auto lo
iface to inet loopback
if eth0 inet static
address 192.168.200.172
netmask 255.255.255.0
gataway 192.168.200.254
auto eth0;
第二步:配置DNS:
vim /etc/resolv.conf
#Generated by NetworkManager
nameserrer 202.117.128.2
第三步:重启网络:
sudo /etc/initd/networking.restart
这样就一切ok了!!!
阅读(668) | 评论(0) | 转发(0) |