ubuntu14 10 有線連線連線不上

2021-07-03 01:30:56 字數 1455 閱讀 7212

1.安裝ethtool軟體設定網絡卡的工作模式

sudo apt-get install ethtool

2. ethtool的命令

概要:ethtool ethx //查詢ethx網口基本設定

ethtool –h  //顯示ethtool的命令幫助(help)

ethtool –i ethx//查詢ethx網口的相關資訊

ethtool –d ethx//查詢ethx網口註冊性資訊

ethtool –r ethx//重置ethx網口到自適應模式

ethtool –s ethx//查詢ethx網口收發包統計

ethx 是網絡卡的代表,具體可以用ifconfig命令檢視 第一塊有線網絡卡是eth0

這是我電腦設定過的網絡卡資訊

settings for eth0:

supported ports: [ tp mii ]

supported link modes: 10baset/half 10baset/full

100baset/half 100baset/full

1000baset/half 1000baset/full

supported pause frame use: no

supports auto-negotiation: yes

advertised link modes:not reported

advertised pause frame use: no

advertised auto-negotiation: no

speed: 100mb/s

duplex: full

port: mii

phyad: 1

transceiver: internal

auto-negotiation: off

cannot get wake-on-lan settings: operation not permitted

current message level: 0x000020c6 (8390)

probe link rx_err tx_err hw

cannot get link status: operation not permitted

關閉了網絡卡的自動協商功能,設定網絡卡在100m下工作,設定全雙工的工作模式

命令如下

sudo ethtool -s eth0 autoneg off speed 100 duplex full

設定以後 電腦奇蹟般的能連上有線網路了

3.設定 開機自啟動

開啟/etc/init.d/rc.local

sudo vim /etc/init.c/rc.local

在檔案的最後新增

/sbin/ethtool -s eth0 autoneg off speed 100 duplex full

到此結束,希望能解決你的問題

Ubuntu 14 10新增root登入

預設情況下ubuntu14.10登入時只有安裝系統時的使用者和訪客登入兩個選項,但是對於開發人員來說需要用root登入,解決步驟 1 用安裝時的使用者登入系統 a.設定root登入密碼 user ubuntu sudo passwd root b.修改配置檔案 需要切換root許可權才能寫檔案 us...

ubuntu 14 10 編譯安裝 Golang

以ubuntu wiki的 安裝教程 為例 sudo apt get install bison gawk gcc libc6 dev make sudo apt get install mercurial hg clone r release go解壓後進入目錄,編譯golang cd go sr...

Ubuntu 14 10 異次元軟體世界

系統工具 linux 2014 10 25 一說到 linux,就不得不提目前最紅火的 ubuntu 發行版了!它擁有絢麗的介面,甚至跟以時尚為賣點的 mac osx 相比也有過之而無不及,相信當你試過這款作業系統之後,你會對 linux 的印象產生翻天覆地的改變!ubuntu 原版以及中國版 麒麟...