Basics of viewing network card information in Ubuntu

Source: Internet
Author: User
Keywords nbsp view network card information basics ifconfig
Tags aliyun basics html http ifconfig information models name

Ubuntu, usually wired Nic is eth0,http://www.aliyun.com/zixun/aggregation/32544.html "> wireless network card is Wlan0, Subsequent additions and so on (some wireless network card models may be named eth1, not wlan0).

Ifconfig Introduction

Ifconfig is a tool used to view, configure, enable, or disable network interfaces, a tool that is most commonly used (that is, people who like to move commands ...). )。

View System network card information

Ifconfig

Activate/disable NIC

Activate network card

sudo ifconfig NIC device name up

View Network card information

Ifconfig Network Card device name

Enable/disable Network

Sudo/etc/init.d/networking start

Iwconfig

For viewing wireless connections

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

View NIC Device information

Check the NIC manufacturer, model number.

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 Receptacle Controller:atheros Communications inc. AR9285 Wireless receptacle Adapter (pci-express) (Rev. 01)

For example, at the bottom, in this format, the first line here is Realtek's rtl8111/8168b wired network card, and the second line is the Atheros AR9285 wireless network card.

If you are a USB card

Lsusb

Modify NIC Interface name

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

Modify the following fields.

Name= "eth0" and Name= "Wlan0"

Then restart Ubuntu.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.