LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 804|回复: 5

interfaces不能被读取?

[复制链接]
发表于 2006-3-30 23:01:13 | 显示全部楼层 |阅读模式
问题是这样的,安装基本系统的时候,没有配置网络,后来用 apt-get install etherconf 来设置了下,由于是固定ip,设置自然是和以前的一样,可是这个时候问题来了,提示是不能读取/etc/network/interfaces 我把network 目录和interfaces的权限都改成了754也是不能,真奇怪 了?
发表于 2006-3-31 08:28:11 | 显示全部楼层
以root用户的身份,直接修改/etc/network/interfaces
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-31 10:19:03 | 显示全部楼层
Post by springwind426
以root用户的身份,直接修改/etc/network/interfaces

意思是自己编辑interfaces文件,不用别的编辑工具?
回复 支持 反对

使用道具 举报

发表于 2006-3-31 10:31:22 | 显示全部楼层
这是最直接,也是最有效的方式
回复 支持 反对

使用道具 举报

发表于 2006-3-31 17:21:43 | 显示全部楼层
我一般也是自己编辑interfaces,resolv.conf

man interfaces

内容类似:
auto lo
iface lo inet loopback
     
auto eth0
iface eth0 inet static
             address 192.168.0.111
             netmask 255.255.255.0
             gateway 192.168.0.1
            
dns-nameservers 195.238.2.21 195.238.2.22

然后$sudo /etc/init.d/networking restart


或者用ifconfig配置,man ifconfig
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-31 18:25:21 | 显示全部楼层
Post by apzc2529
我一般也是自己编辑interfaces,resolv.conf

man interfaces

内容类似:
auto lo
iface lo inet loopback
     
auto eth0
iface eth0 inet static
             address 192.168.0.111
             netmask 255.255.255.0
             gateway 192.168.0.1
            
dns-nameservers 195.238.2.21 195.238.2.22

然后$sudo /etc/init.d/networking restart


或者用ifconfig配置,man ifconfig


Thank you
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表