Dual-nic in linux

Source: Internet
Author: User
Linux dual NIC-Linux Enterprise Application-Linux server application information. For more information, see the following section. If two NICs are configured in Linux and are not used as a route or proxy

1. You only need to use one Nic to configure the IP address and the other to set the NIC configuration file onboot = no

2. If both IP addresses are active and connected to the network, they can be used normally.

3. If both IP addresses are configured, they are all activated. However, if only one network card is connected to the network, the network will fail. Cause analysis:

When both NICs are active, for example
Eth0 ip 192.168.0.11 is not connected to the network
Eth1 ip 192.168.0.100 Access Network
Gateway 192.168.0.1

At this time, you do not know which Nic is used to send data. PING 192.168.0.1

Reply from 192.168.0.11 request time out

If you find that the network adapter is not connected to the network, you can run eth0 down and PING the gateway. In this case, you can use eth1 but only communicate with each other. Then, the route node finds that no default route exists, it is estimated that the route through this interface also disappears after the eth0 is down. Restart the network configuration normally.

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.