Use ifupdown for automatic network settings

Source: Internet
Author: User
Tags glob

When ifupdown is used for automatic network settings, when ifup is running, the interface name can be "mapped" for another name. The name of the ing depends on the situation. Therefore, ifup can be set to activate a physical interface by using an appropriate logical interface in the preset logical interface set. Logical interface name ing generates the following situation: If the logical interface name is not given during ifup execution, the physical interface name will be used as the initial logical interface name. If the logical interface name conforms to the glob-pattern described by mapping, it is mapped to the new logical interface name. Ing of each field is performed in this order. If the final logical interface name is the tag of a logical interface defined in/etc/network/interfaces, the physical interface is activated as this logical interface. Otherwise, ifup prints "Ignoring unknown interface" and then exits. Ing Syntax: script ing glob-patternscript script-name [map script input] the script in the mapping section always uses the name of the physical interface as its parameter. The content in other "map" rows (excluding "map" itself) will be used as its standard input. The script prints the ing result as a standard output before exiting. For example, the following mapping section allows ifup to use the logical interface home to activate the interface eth0. Ing eth0script/usr/local/sbin/echo-home :#! /Bin/shecho home because the ing is completed by the script, it is possible to automatically select the logical interface-based on some selection tests.

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.