接口控制脚本
接口控制脚本用于激活和关闭网络接口.有两个订的控制脚本 , /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-ipppandifdown-ippp— Brings ISDN interfaces up and down. -
ifup-ipsecandifdown-ipsec— Brings IPsec interfaces up and down. -
ifup-ipv6andifdown-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-postandifdown-post— Contains commands to be executed after an interface is brought up or down. -
ifup-pppandifdown-ppp— Brings a PPP interface up or down. -
ifup-routes— Adds static routes for a device as its interface is brought up. -
ifdown-sitandifup-sit— Contains function calls related to bringing up and down an IPv6 tunnel within an IPv4 connection. -
ifup-slandifdown-sl— Brings a SLIP interface up or down. -
ifup-wireless— Brings up a wireless interface.
本文介绍了用于激活和关闭网络接口的控制脚本及其功能。这些脚本位于/etc/sysconfig/network-scripts/目录下,支持IPv4和IPv6的配置与管理,包括IP别名、PPP、USB接口及无线网络等的启动与关闭。
584

被折叠的 条评论
为什么被折叠?



