LinuxSir.cn,穿越时空的Linuxsir!

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

[求助]重启要重新配置网路

[复制链接]
发表于 2005-9-10 14:47:19 | 显示全部楼层 |阅读模式
每次重新启动以后ifconfig查看,得到如下结果:
james@debianJ:~$ sudo ifconfig
lo        Link encapocal Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:560 (560.0 b)  TX bytes:560 (560.0 b)

需要dpkg-reconfigure etherconf以后,才可以使用网络,不知道是怎么一回事?

我的/etc/network/interfaces如下:
### etherconf DEBCONF AREA. DO NOT EDIT THIS AREA OR INSERT TEXT BEFORE IT.
auto lo

iface lo inet loopback

iface eth0 inet static
        address 10.1.246.123
        netmask 255.255.255.0
        broadcast 10.1.246.255
        gateway 10.1.246.2


### END OF DEBCONF AREA.  PLACE YOUR EDITS BELOW; THEY WILL BE PRESERVED.
 楼主| 发表于 2005-9-10 15:01:11 | 显示全部楼层
已解决。
修改interfaces文件,在iface eth0 inet static前面添加 auto eth0,就ok了。
但是不知道为什么dpkg-reconfigure etherconf生成的脚本文件不把那行给添加上去。
回复 支持 反对

使用道具 举报

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

本版积分规则

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