2012年2月4日星期六

解決一直以來wicd在啟動時不連接eth0的問題

在使用wicd後,一直以來,他都不會在啟動後馬上替我連接eth0的。

但其實,他是有苦衷的。看/var/log/wicd/wicd.log會發現︰

No wired connection present, attempting to autoconnect to wireless network

但原因仍然不明。看ArchWiki後不加思索的就跟著做,在/etc/rc.local裡加上︰

dhcpcd -k eth0
dhcpcd -bn eth0



可以用root權限執行以下指令就不需用vi修改了,

echo "dhcpcd -k eth0" >> /etc/rc.local
echo "dhcpcd -bn eth0" >> /etc/rc.local



1 則留言:

  1. 發現了這個解決方法只是旁門左道,最根本的原因是網絡咭因某些未明原因而又開又關的,網絡咭模組又載入過兩次。


    [ 8.888329] ADDRCONF(NETDEV_UP): eth0: link is not ready
    [ 10.190636] IBM TrackPoint firmware: 0x0e, buttons: 3/3
    [ 10.447978] input: TPPS/2 IBM TrackPoint as /devices/platform/i8042/serio1/serio2/input/input14
    [ 12.475685] e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
    [ 12.476232] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [ 13.214020] iwlwifi 0000:03:00.0: L1 Disabled; Enabling L0S
    [ 13.214147] iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
    [ 13.336484] ADDRCONF(NETDEV_UP): wlan0: link is not ready
    [ 13.689243] e1000e 0000:00:19.0: irq 49 for MSI/MSI-X
    [ 13.741665] e1000e 0000:00:19.0: irq 49 for MSI/MSI-X
    [ 13.742167] ADDRCONF(NETDEV_UP): eth0: link is not ready
    [ 13.988095] e1000e 0000:00:19.0: irq 49 for MSI/MSI-X
    [ 14.041268] e1000e 0000:00:19.0: irq 49 for MSI/MSI-X
    [ 14.041714] ADDRCONF(NETDEV_UP): eth0: link is not ready
    [ 16.197883] EXT4-fs (sda3): re-mounted. Opts: discard,commit=0
    [ 16.214832] EXT4-fs (sda4): re-mounted. Opts: discard,commit=0
    [ 17.252927] e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
    [ 17.254408] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [ 27.304291] eth0: no IPv6 routers present


    原因有待查核。

    回覆刪除