为什么手动设置IP后上不了网了
Tofloor
poster avatar
liandchen
deepin
2014-04-03 05:17
Author
系统版本:linux deepin  2013

使用自动获取IP就可以上网

但我需要固定的IP呀!
Reply Favorite View the author
All Replies
liandchen
deepin
2014-04-03 05:20
#1
IP:192.168.1.8
子网:255.255.255.0
网关:192.168.1.1
DNS:61.132.163.68
Reply View the author
wuy069
deepin
2014-04-03 05:30
#2
我记得以前说可以的,可能2013在这方面还是有问题吧;下午看微博,说2014解决了

不介意使用命令行解决问题的话,请看下面:
  1. sudo gedit /etc/network/interfaces
Copy the Code
内容修改成如下:
  1. auto lo
  2. iface lo inet loopback
  3. # The primary network interface
  4. auto eth0
  5. #iface eth0 inet dhcp
  6. iface eth0 inet static
  7. address 192.168.1.8
  8. netmask 255.255.255.0
  9. gateway 192.168.1.1
Copy the Code

DNS添加到这个文件/etc/resolv.conf
Reply View the author
cxbii
deepin
2014-04-03 16:55
#3
网络其实是个大坑。。。

2014一定会做好的
Reply View the author
liandchen
deepin
2014-04-03 19:36
#4
我记得以前说可以的,可能2013在这方面还是有问题吧;下午看微博,说2014解决了

不介意使用命令行解决问题的话,请看下面:
  1. sudo gedit /etc/network/interfaces
Copy the Code
内容修改成如下:
  1. auto lo
  2. iface lo inet loopback
  3. # The primary network interface
  4. auto eth0
  5. #iface eth0 inet dhcp
  6. iface eth0 inet static
  7. address 192.168.1.8
  8. netmask 255.255.255.0
  9. gateway 192.168.1.1
Copy the Code

DNS添加到这个文件/etc/resolv.conf

谢谢你,可以上了。
Reply View the author