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包含几个重要的打开,关闭网络接口的通用功能文件,它们包含每个接口控制脚本需要调用的功能.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值