bridge.sh ========= Public domain ******************************************************************************** #!/bin/bash PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin" ifconfig eth0 0.0.0.0 txqueuelen 5000 ifconfig eth1 0.0.0.0 txqueuelen 5000 brctl addbr br0 brctl addif br0 eth0 brctl addif br0 eth1 ifconfig br0 1.1.1.10 netmask 255.255.255.252 txqueuelen 5000 route add default gw 1.1.1.9 for F in /proc/sys/net/bridge/* ;do echo 1 > $F;echo $F;cat $F; done ip route flush cache ******************************************************************************** _BY: Pejman Moghadam_ _TAG: bridge, brctl, proc, txqueuelen, bash-script, bash_ _DATE: 2011-01-29 16:57:24_