/etc/sysconfig/network-scripts/
directory: /sbin/ifdown
and /sbin/ifup
.
ifup
and ifdown
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
Use the ifup and ifdown interface scripts
ifup
and ifdown
interface scripts are the only scripts that the user should use to bring up and take down network interfaces.
/etc/rc.d/init.d/functions
and /etc/sysconfig/network-scripts/network-functions
. Refer to Section 1.4, “Network Function Files” for more information.
/etc/sysconfig/network-scripts/
directory:
ifup-aliases
IP
aliases from interface configuration files when more than one IP
address is associated with an interface.
ifup-ippp
and ifdown-ippp
ifup-ipv6
and ifdown-ipv6
IPv6
interfaces up and down.
ifup-plip
PLIP
interface.
ifup-plusb
ifup-post
and ifdown-post
ifup-ppp
and ifdown-ppp
PPP
interface up or down.
ifup-routes
ifdown-sit
and ifup-sit
IPv6
tunnel within an IPv4
connection.
ifup-wireless
Be careful when removing or modifying network scripts!
/etc/sysconfig/network-scripts/
directory can cause interface connections to act irregularly or fail. Only advanced users should modify scripts related to a network interface.
/sbin/service
command on the network service (/etc/rc.d/init.d/network
), as illustrated by the following command:
/sbin/service network action
start
, stop
, or restart
.
/sbin/service network status