Common Linux Network commands

Source: Internet
Author: User

Applicable to Debian Linux releases

Ifconfig-displays network information, including IP address and packet receipt/sending status
Iwconfig-display Wireless Network Information
Sudo/etc/init. d/networking restart-restart the network
/Etc/Network/interfaces-manually configure the Network File
IFUP interface-enable Network Interface

Ifdown interface-disable network interfaces
Iwlist scan-displays wireless network conditions in a region
Lshw-C network-displays Nic and network device driver information (run as Administrator)

Lspci-nn-shows PCI vendor and device codes as both numbers and names of hardware connected to the PCI bus
Lsusb-shows USB connected hardware
Lshw-c usb-Additional info on USB related hardware (good for USB dongles)

Route-n-list kernel IP Route tables and use gateways to solve problems.
Sudo dhclient-Get IP address from DHCP server
Sudo dhclient-r-get the IP address from the specified network interface
/Etc/udev/rules. d/70-persistent-net.rules-(File) ing the logical names (eth0, wlan0, etc) to the MAC address
CAT/etc/resolv. conf-view DNS servers

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.