Triggering network settings

Source: Internet
Author: User

We already know how to set and reset interfaces for triggering network settings. These actions must be completed as appropriate. Traditionally, the network is set by the/etc/rcS. d/S40networking script at startup, and rarely reset. Other services that require the network are subsequently started. During shutdown or restart, initscripts is executed in reverse order. However, GNU and Linux are now moving towards support for dynamic hardware replacement and emergencies. The first is to provide support for replaceable PCMCIA cards. After the hotplug mechanism is added, many peripherals can be replaced when the computer is running. This also includes network hardware. Note! When you unplug a hardware device, services related to this hardware need to be disabled after the device is started or deleted. This means that such services need to be deleted from the System V init System and are under ifupdown control. For example, assume that the Service foo controlled by initscript/etc/init. d/foo depends on the dynamically set network interface eth0. First, delete foo from the init system. If you are using the sysv-rc init system, complete the following items. # Rm/etc/rc [2345]. d/S ?? Foo then puts foo under the control of ifupdown by adding the up and down options in the eth0 section of/etc/network/interfaces. This file can also call the foo initialization script (initscript): iface eth0 inet dhcpup/etc/init. d/foo startdown/etc/init. d/foo stop

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.