RHEL/Fedora的网络配置二

接口控制脚本

 

接口控制脚本用于激活和关闭网络接口.有两个订的控制脚本 , /sbin/ifdown and /sbin/ifup ,它们调用的控制脚本位于 /etc/sysconfig/network-scripts/目录,调用这两个命令需要指定接口的值,如

ifup eth0

这两个脚本在网络接口打开的时间执行初始化操作

/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 and ifdown-ippp — Brings ISDN interfaces up and down.

  • ifup-ipsec and ifdown-ipsec — Brings IPsec interfaces up and down.

  • ifup-ipv6 and ifdown-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 and ifdown-post — Contains commands to be executed after an interface is brought up or down.

  • ifup-ppp and ifdown-ppp — Brings a PPP interface up or down.

  • ifup-routes — Adds static routes for a device as its interface is brought up.

  • ifdown-sit and ifup-sit — Contains function calls related to bringing up and down an IPv6 tunnel within an IPv4 connection.

  • ifup-sl and ifdown-sl — Brings a SLIP interface up or down.

  • ifup-wireless — Brings up a wireless interface.

在所有接口上执行这两个操作相当于执行 /etc/init.d/network start 或stop
网络功能文件
RHEL/Fedora包含几个重要的打开,关闭网络接口的通用功能文件,它们包含每个接口控制脚本需要调用的功能.

你可能感兴趣的:(网络应用,脚本,UP)