差異處
這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
linux:commonsetting:network:i40e_up_problem_on_centos7.2 [2017/03/25 00:05] tony [Symptom] |
linux:commonsetting:network:i40e_up_problem_on_centos7.2 [2023/06/25 09:48] (目前版本) |
||
---|---|---|---|
行 5: | 行 5: | ||
{{:linux:commonsetting:network:centos7_nic_cant_up.png|}}\\ | {{:linux:commonsetting:network:centos7_nic_cant_up.png|}}\\ | ||
由於同事說CentOS7.3是正常的,因而才想確認這是不是kernel module的問題。 | 由於同事說CentOS7.3是正常的,因而才想確認這是不是kernel module的問題。 | ||
- | ===== Symptom ===== | + | ===== Diagnosis ===== |
- | {{:linux:commonsetting:network:centos7_nic_i40e_dismatch.png|}} | + | 我系統網卡所使用的driver module是i40e。追蹤問題期間也嘗試找過i40e是否在CentOS7上有issue,但沒有什麼結果。最後是再次重新檢視dmesg,發現以下內容:\\ |
+ | {{:linux:commonsetting:network:centos7_nic_i40e_dismatch.png|}}\\ | ||
+ | 這是由於kernel module與網卡FW不匹配導致的,以我這案例是網卡FW過新,因此更新kernel module就能夠解決了。 | ||
+ | ===== Update driver ===== | ||
+ | 如果你是新的系統,請記得先執行以下指令安裝build driver所需要套件: | ||
+ | <code bash> | ||
+ | yum install kernel-devel kernel-headers gcc | ||
+ | </code> | ||
+ | 假如沒網路怎麼安裝這些套件? 可以參考[[linux:software_installation:repository:centos7_cdrom|此篇文章]],將iso設為repository。我下載了[[https://sourceforge.net/projects/e1000/files/i40e%20stable/|2.0.19]]版本驅動,並解壓縮到src資料夾下make就可以build出ko:\\ | ||
+ | {{:linux:commonsetting:network:build_i40e_driver.png|}}\\ | ||
+ | \\ | ||
+ | 接著就是測試ko是否可用。執行以下指令移除當前載入的i40e模組,並載入新build出來的ko檔: | ||
+ | <code bash> | ||
+ | rmmod i40e | ||
+ | insmod i40e.ko | ||
+ | </code> | ||
+ | 最後就是確認dmesg與網路狀態了:\\ | ||
+ | {{:linux:commonsetting:network:dmesg_load_new_i40e_driver.png|}}\\ | ||
+ | 要更新至系統模組要記得執行以下指令,否則重開機會載入舊的: | ||
+ | <code bash> | ||
+ | make install | ||
+ | </code> | ||
+ | PS. 執行modinfo i40e可以確認版本。 | ||
===== Reference ===== | ===== Reference ===== | ||
* [[https://wiki.centos.org/zh-tw/Manuals/ReleaseNotes/CentOS7.2|CentOS7.2 Release Notes]] | * [[https://wiki.centos.org/zh-tw/Manuals/ReleaseNotes/CentOS7.2|CentOS7.2 Release Notes]] | ||
* [[https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1482304|i40e與網卡FW相關的issue]] | * [[https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1482304|i40e與網卡FW相關的issue]] | ||
* [[http://cateee.net/lkddb/web-lkddb/I40E.html|i40e支援清單]] | * [[http://cateee.net/lkddb/web-lkddb/I40E.html|i40e支援清單]] | ||
+ | * [[https://sourceforge.net/projects/e1000/files/i40e%20stable/|ie40 driver載點]] | ||
+ | * [[http://linux.vbird.org/linux_server/0130internet_connect.php|鳥哥 - build網卡驅動]] | ||
+ | ===== ===== | ||
+ | ---- | ||
+ | \\ | ||
+ | ~~DISQUS~~ |