pre-up | 网卡启用前的动作 |
up | 启用时候的动作 |
post-up | 启用后的动作 |
pre-down | 关闭前的动作 |
down | 关闭时动作 |
post-down | 关闭后动作 |
sample:
auto lo
iface lo inet loopback
iface eth0 inet dhcp
iface wlan0 inet static
address 10.0.0.1
netmask 255.255.255.0
broadcast 255.0.0.0
pre-up iptables-restore < /etc/iptables.rules
http://blog.ihipop.info/2010/11/1857.html