buntu中檢視網絡卡資訊的基礎知識

2021-09-01 20:32:20 字數 1445 閱讀 8441

ubuntunetworkexpress工具網路access

ubuntu 中,通常有線網絡卡為eth0,無線網絡卡則為wlan0,後續增加的以此類推(可能某些無線網絡卡型號命名為eth1,而非wlan0)。 ifconfig簡介 ifconfig 是乙個用來檢視、配置、啟用或禁用網路介面的工具,這個工具極為常用的(說的是喜歡動命令的人……)。 檢視

ubuntu 中,通常有線網絡卡為eth0,無線網絡卡則為wlan0,後續增加的以此類推(可能某些無線網絡卡型號命名為eth1,而非wlan0)。

ifconfig簡介

ifconfig 是乙個用來檢視、配置、啟用或禁用網路介面的工具,這個工具極為常用的(說的是喜歡動命令的人……)。

檢視系統網絡卡資訊

ifconfig

啟用/禁用網絡卡

啟用網絡卡

sudo ifconfig 網絡卡裝置名 up

檢視網絡卡資訊

ifconfig 網絡卡裝置名

啟用/禁用網路

sudo /etc/init.d/networking start

iwconfig

用於檢視無線連線情況

qii@ubuntu:~$ iwconfig

lo no wireless extensions.

eth0 no wireless extensions.

wlan0 ieee 802.11bgn essid:off/any

mode:managed access point: not-associated tx-power=20 dbm

retry long limit:7 rts thr:off fragment thr:off

power management:off

檢視網絡卡裝置資訊

檢視網絡卡生產商,型號。

qii@ubuntu:~$ lspci | grep -i net

03:00.0 ethernet controller: realtek semiconductor co., ltd. rtl8111/8168b pci express gigabit ethernet controller (rev 01)

04:00.0 network controller: atheros communications inc. ar9285 wireless network adapter (pci-express) (rev 01)

舉例來說,最底部,這樣的格式,這裡第一行是realtek的rtl8111/8168b有線網絡卡,第二行是atheros的ar9285無線網絡卡。

如果你是usb網絡卡

lsusb

修改網絡卡介面名

qii@ubuntu:~$ sudo nano /etc/udev/rules.d/70-persistent-net.rules

修改下列欄位便成。

name="eth0"和 name="wlan0"

隨後重啟ubuntu。

檢視網絡卡資訊命令

1,ifconfig 檢視或者配置計算機當前的網絡卡配置資訊 如 ifconfig ifconfig grep inet 更精細 網域名稱 由一串用點分隔的名字組成 如 www.itcast.cn 也就是ip位址的別名,方便使用者記憶 ip位址 通過ip位址找到網路上的計算機 埠號 通過埠號可以找到...

Linux下面檢視網絡卡的資訊

檢視linux下面網絡卡的速度資訊 1.centos機器 安裝的比較全 個人比較懶 沒有使用core最小化安裝,避免出問題麻煩 公司網路太垃圾 使用ifconfig檢視網絡卡的名字 2.使用 ethtool 檢視網絡卡的資訊 root centos76 ethtool ens192 settings...

linux 檢視網絡卡相關資訊

檢視網絡卡速度有兩個命令都可以檢視 mii tool eth0 negotiated 1000baset fd flow control,link ok這表示,eth0網絡卡的速度為1000m,並且是全雙工工作模式,也可以使用 ethtool eth0 settings for eth0 suppo...