C++ CSS HTML Java JavaScript MySQL Oracle PERL PHP SQL Unix VBScript XHTML XML Сети
Interface Control Scripts
 

8.3. Interface Control Scripts

/sbin/ifdown and /sbin/ifup, that call on control scripts located in the /etc/sysconfig/network-scripts/ directory.

The ifdown and ifup interface scripts are symbolic links to scripts in the /sbin/ directory. When either of these scripts are called, they require the value of the interface to be specified, such as:

ifup eth0
Determining IP information for eth0... done. 

At that point, the /etc/rc.d/init.d/functions and /etc/sysconfig/network-scripts/network-functions files are used to perform a variety of tasks. See Section 8.4 Network Function Files for more information.

are common interface control scripts:

WarningWarning
 

Removing or modifying any scripts in the /etc/sysconfig/network-scripts/

The easiest way to manipulate all network scripts simultaneously is to use the /sbin/service command on the network service (/etc/rc.d/init.d/network), as illustrated the following command:

/sbin/service network <action>

In this example <action> can be either start, stop, or restart.

To view a list of configured devices and currently active network interfaces, use the following command:

/sbin/service/network status
Главная