Linux operations-Configuring the NIC should be aware of things

Source: Internet
Author: User

The mask must use a host mask, or 255.255.255.255, when the 1.lo network adapter is configured with IP.

Possible failure: If configured as a mask for the 255.255.0.0 network segment, the default route is bound to the LO Nic after the NIC is restarted. At the same time, the native ping any IP is displayed unicom ssh to any IP is actually connected to their own native, but the outside server can not access the machine.

2. "siocaddrt:no such process" error occurred when restarting the NIC

Cause: The gateway you are adding is not on the same network segment as your host.

The Linux default gateway is valid for all network cards if it is set in the/etc/sysconfig/network file. At this time, the environment of multiple network cards, if a network card configured IP and gateway is not a network segment will occur this problem.

WORKAROUND: Instead of configuring the default gateway in the/etc/sysconfig/network file, add the default gateway for the NIC in Ifcfg-eth0 so that this error does not occur.


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.