Ethernet Connections in Linux systems

Source: Internet
Author: User

1. In Linux, the Ethernet connection interface is ordered as: Eth0,eth1, where 0, 1 indicates the network card number.

2.lspci to view NIC hardware information (USB is LSUSB)

3.ifconfig to view interface information

Ifconfig-a to view all interfaces

Ifconfig eth0 to view specific eth0 interface information.

Ifup and Ifdown to enable or disable a solution. such as: Ifup eth0 to start the Eth0 interface.

The Setup command can be used to configure the network information, which can be started by using Ifup after the configuration is complete.

4. Network Test commands:

Ping to test the connectivity of the network. such as: Ping 192.168.1.1

To test DNS resolution with the Host,dig command. Such as:

Host Www.baidu.com

Dig www.baidu.com

To display the routing table information with the IP route

To modify the hostname: hostname newname (real-time modification)

To trace the network path to the destination address is traceroute. Such as:

Traceroute www.baidu.com.

MTR is used for network quality testing. Such as:

MTR www.baidu.com.

Ethernet Connections in Linux systems

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.