unbridge mode shell script。#!/bin/sh
BR=192.168.3.223
GW=192.168.1.1

brctl delif br0 eth0
brctl delif br0 eth1
ifconfig br0 down
brctl delbr br0
ifconfig eth0 down
ifconfig eth1 down
ifconfig eth0 0.0.0.0 -promisc
ifconfig eth1 0.0.0.0 -promisc
ifconfig eth1 $BR netmask 255.255.0.0 up
route add default gw $GW dev eth1

flyfox 發表在 痞客邦 PIXNET 留言(0) 人氣()