linux網路莫名無法啟動問題

來源:互聯網
上載者:User

 

下午調試iptables的配置,增加支援vsftp的配置項。

某次重啟機器後發現iptables服務無法啟動,發現網路服務沒有啟動成功。

提示pcnet32 device eth0 does not seem to be present 原因不明。

在網上找到這篇文章http://blog.chinaunix.net/u3/102399/showart_2014783.html,解決了

 

    “

在communities.vmware.com看到一個老外說,他在遇到這個問題時
說:“What I found was that my modules.dep and modules.alias were empty,
which live in /lib/modules/`uname
-r`/”。這讓我想起了,下午我在編一個模組時,執行過depmod,這是會改變modules.dep和modules.alias。到/lib
/modules/`uname
-r`/一看,果然,裡面只有與我的模組有關的依賴資訊。看來,這是由於我以錯誤的方式執行了depmod命令造成的。(具體怎麼回事我忘了,好像我在自
己工作目錄depmod my.ko過)。

 
看來是系統模組的依賴關係資訊丟失了,啟動時網卡驅動等模組無法載入。所以,如果想用modprobe向系統加自己的模組時,應將
your_module.ko拷入/lib/modules/`uname -r`/,然後depmod -a 。最後,modprob
your_module。

解決:

在/lib/modules/`uname -r`/下執行,depmod,重建modules.dep和modules.alias,重啟。

 

看來需要瞭解一下 modprobe、 /lib/modules/`uname -r`/modules.dep 和 modules.alias的知識了。

 

linux的基礎
還是很關鍵的。


相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.