接口控制脚本
接口控制脚本用于激活和关闭网络接口.有两个订的控制脚本 , /sbin/ifdown
and /sbin/ifup
,它们调用的控制脚本位于 /etc/sysconfig/network-scripts/目录,调用这两个命令需要指定接口的值,如
这两个脚本在网络接口打开的时间执行初始化操作
/etc/sysconfig/network-scripts/中所有被引用的控制脚本
-
ifup-aliases
— Configures IP aliases from interface configuration files when more than one IP address is associated with an interface. -
ifup-ippp
andifdown-ippp
— Brings ISDN interfaces up and down. -
ifup-ipsec
andifdown-ipsec
— Brings IPsec interfaces up and down. -
ifup-ipv6
andifdown-ipv6
— Brings IPv6 interfaces up and down. -
ifup-ipx
— Brings up an IPX interface. -
ifup-plip
— Brings up a PLIP interface. -
ifup-plusb
— Brings up a USB interface for network connections. -
ifup-post
andifdown-post
— Contains commands to be executed after an interface is brought up or down. -
ifup-ppp
andifdown-ppp
— Brings a PPP interface up or down. -
ifup-routes
— Adds static routes for a device as its interface is brought up. -
ifdown-sit
andifup-sit
— Contains function calls related to bringing up and down an IPv6 tunnel within an IPv4 connection. -
ifup-sl
andifdown-sl
— Brings a SLIP interface up or down. -
ifup-wireless
— Brings up a wireless interface.