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.