Nic priority in dual NICs-Linux Enterprise Application-Linux server application information. For details, refer to the following section. In linux, when two NICs are configured with ip addresses and the two NICs are in two different network segments, enable the NIC device by default, then, the eth0 Nic settings will be started, the default route will be available, and the gateway specified by eth0 will be enabled, and then the eth1 Nic settings will be started. In this case, the eth1 gateway will be enabled, in addition, the default route is the gateway that uses eth1, that is, the gateway specified by eth0 is overwritten, And the last default route of the system is the setting of the last started Nic device (usually eth1 ).
Solution:
1: No gateway is set for eth1;
2: Change "ONBOOT = yes" in the ifcfg-eth1 file in eth1 to "no.
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.