包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
-
kim_ss
- 帖子: 6
- 注册时间: 2008-11-09 13:23
#1
帖子
由 kim_ss » 2008-11-12 12:24
我的interfaces配置如下:
代码: 全选
auto eth0
iface eth0 inet static
address 12.112.104.183
netmask 255.255.255.128
gateway 12.112.104.129
dns-nameserver 10.100.0.3
dns-nameserver 202.96.209.133
resolv.conf配置如下:
代码: 全选
nameserver 10.100.0.3
nameserver 202.96.209.133
重启网络配置的时候出现这个情况:
代码: 全选
ubuntu:~$ sudo /etc/init.d/networking restart
* Reconfiguring network interfaces.../etc/network/interfaces:2: misplaced option
ifdown: couldn't read interfaces file "/etc/network/interfaces"
/etc/network/interfaces:2: misplaced option
ifup: couldn't read interfaces file "/etc/network/interfaces"
[fail]
无法链接网络。求高人指点迷津!急!谢谢!
上次由
kim_ss 在 2008-11-12 16:10,总共编辑 1 次。
-
想入非非
- 帖子: 8078
- 注册时间: 2008-07-14 22:42
- 来自: Beijing
-
联系:
#3
帖子
由 想入非非 » 2008-11-12 13:35
这是我的
/etc/network/interfaces
代码: 全选
auto lo
iface lo inet loopback
iface eth0 inet static
address 59.65.166.20
netmask 255.255.255.0
gateway 59.65.166.1
auto eth0
报错好像是说
/etc/network/interfaces
不可读
Ubuntu User
-
straw
- 帖子: 1
- 注册时间: 2008-11-19 19:14
#8
帖子
由 straw » 2008-11-19 19:15
我也遇到同样问题,不知道如何解决
-
fuger
- 帖子: 154
- 注册时间: 2005-11-15 15:04
#9
帖子
由 fuger » 2010-12-23 16:40
我今天也遇到这个问题了,谷歌了一下,居然没有中文的答案,看了一下国外的,貌似是因为用nano编辑,导致第一行后面的内容折到第二行,第二行前面就没有#号了,所以出错啦,在第二行注释前面加个#号就行了。
-
kangta25
- 帖子: 1
- 注册时间: 2012-02-08 16:39
#10
帖子
由 kangta25 » 2012-02-08 16:40
这个问题困扰了我2天,后来找资料发现说是配置文件的问题,自己检查下格式把。
-
ljj_jjl2008
- 论坛版主
- 帖子: 14255
- 注册时间: 2007-09-16 8:29
#11
帖子
由 ljj_jjl2008 » 2012-02-08 16:44
我的interfaces配置如下:
auto eth0
iface eth0 inet static
address 12.112.104.183
netmask 255.255.255.128
gateway 12.112.104.129
dns-nameserver 10.100.0.3
dns-nameserver 202.96.209.133
注释掉那两行