Basic Linux: Basic Linux network configuration

Source: Internet
Author: User
Tags network troubleshooting
Linux basics: Linux network basic configurations Ethernet connections in Linux, Ethernet interfaces are named eth0, eth1, etc, 0, 1 indicates the NIC number. you can use the lspci command to view the NIC hardware information (if it is a usb Nic, you may need to use the lsusb command) ifconfig command (interf... linux basics: Linux network basic configurations Ethernet connections in Linux, Ethernet interfaces are named eth0, eth1, etc, 0, 1 indicates the network card number. you can use the lspci command to view the hardware information of the network card (if it is a usb network card, you may need to use the lsusb command) ifconfig command (interface configuration) to view the interface information: $ ifconfig-a view all interfaces $ ifconfig eth0 view specified interface command ifup, ifdown is used to enable, disable an interface $ ifup wlan0 $ ifdown wlan0 network test command to test network connectivity: $ ping 192.168.1.1 $ ping baidu.com to test DNS resolution $ host www.baidu.com $ dig www.baidu.com to view the route table $ ip route to track the network path to the target address (Ubuntu installation $ sudo apt-get install traceroute) $ traceroute www.baidu.com use mtr for network quality testing (combined with traceroute and ping) $ mtr www.baidu.com modify host name in real time host name: $ hostname shuangde permanently modify host name/etc/hostname (Ubuntu ): directly modify the name/etc/sysconfig/network (RedHat): HOSTNAME = shuangde troubleshooting network troubleshooting from the bottom to the top, check whether the network configuration information is correct from the process itself to the external:-IP address-subnet mask-network management-DNS check whether the network management is connected to ping the network management IP address to check whether DNS resolution is normal: $ host www.baidu.com $ host www.douban.com
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.