标签:
一、Gentoo风格随机启动脚本
#!/bin/bash #**net_bridge.start** bridge_start() { if=eno1 sw=br0 ip addr flush dev $if ip addr flush dev $sw ip link set $if up ip link set $if promisc on ip link add $sw type bridge ip link set $sw up ip link set $if master $sw ip addr add 172.18.21.4/24 dev $sw ip route replace default via 172.18.21.1 dev $sw ip addr add 10.1.7.4/16 dev $sw ip route add 10.1.0.0/24 via 10.1.0.1 dev $sw } bridge_start 2>/dev/null
标签:
原文地址:http://www.cnblogs.com/hadex/p/5808562.html