![]() ![]() | ![]() |
version 1.1.1.1, 2011/07/05 23:43:00 | version 1.1.1.1.4.2, 2011/10/25 21:13:22 |
---|---|
Line 2 | Line 2 |
IFACE="bridge0" | IFACE="bridge0" |
BRIDGED="fxp0 rl0 wlan0 wlan1" | BRIDGED="fxp0 rl0 wlan0" |
STP="fxp rl0" | STP="fxp0 rl0" |
IP="" | |
echo "Config Bridge interface $IFACE ..." | echo "Config Bridge interface $IFACE ..." |
ifconfig $IFACE create | ifconfig $IFACE create |
for i in $BRIDGED; do | for i in $BRIDGED; do |
ifconfig $IFACE addm $i | ifconfig $IFACE addm $i |
done | done |
for i in $STP; do | for i in $STP; do |
ifconfig $IFACE stp $i | ifconfig $IFACE stp $i |
done | done |
ifconfig $IFACE up | |
ifconfig $IFACE inet $IP up |