LinuxSir.cn,穿越时空的Linuxsir!

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

为啥每次开机后都要手动ifconfig eth0 up

[复制链接]
发表于 2007-1-25 21:37:13 | 显示全部楼层 |阅读模式
开机的时候eth0已经起来了,ifconfig -a也能看到eth0,但就是pon dsl-provider不行,提示eth0已经down,手动ifconfig eth0 up后再pon dsl-provider后就正常。dmesg信息关于网卡部分如下:
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
ADDRCONF(NETDEV_UP): eth0: link is not ready
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
NET: Registered protocol family 24
ip_tables: (C) 2000-2006 Netfilter Core Team
eth0: no IPv6 routers present


有段“b44: eth0: Flow control is off for TX and off for RX.”不晓得是不是这个原因,咋解决呢,望指点一二。
网卡:broadcom 4400
 楼主| 发表于 2007-1-25 21:41:18 | 显示全部楼层
开始怀疑/etc/network/interfaces文件有问题,
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping eth0
        script grep
        map eth0

# The primary network interface
#allow-hotplug eth0
auto eth0
iface eth0 inet static
        address 192.168.1.66
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 202.102.192.68

auto dsl-provider
iface dsl-provider inet ppp
provider dsl-provider

auto eth0

    iface eth0 inet manual

auto eth0

    iface eth0 inet manual

auto eth0

    iface eth0 inet manual
最后三段是同样的,不晓得是咋回事,和以前的sarge内容不同,多了一些东西。
补充:系统为etch。
回复 支持 反对

使用道具 举报

发表于 2007-1-26 10:17:50 | 显示全部楼层
ifconfig -a
这样当然能看到 eth0 啦,不管 eth0 是 down 还是 up。

你不加 -a 参数,状态为 down 的 eth0 你就看不到了吧。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-1-26 13:02:43 | 显示全部楼层
Post by kingway
这样当然能看到 eth0 啦,不管 eth0 是 down 还是 up。

你不加 -a 参数,状态为 down 的 eth0 你就看不到了吧。


是这个,不加-a参数就看不到eth0。
该咋解决呢?
回复 支持 反对

使用道具 举报

发表于 2007-1-28 01:34:25 | 显示全部楼层
  1. auto dsl-provider
  2. iface dsl-provider inet ppp
  3. provider dsl-provider

  4. auto eth0

  5. iface eth0 inet manual

  6. auto eth0

  7. iface eth0 inet manual

  8. auto eth0

  9. iface eth0 inet manual
复制代码

改为
  1. auto dsl-provider
  2. iface dsl-provider inet ppp
  3. pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
  4. provider dsl-provider

  5. auto eth0
复制代码
回复 支持 反对

使用道具 举报

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

本版积分规则

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