Eric Li | e0493a4 | 2010-11-15 13:05:43 -0800 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
3 | # The following expression selects the first bridge listed by 'brctl show'. | ||||
4 | # Modify it to suit your needs. | ||||
5 | switch=$(/usr/sbin/brctl show | awk 'NR==2 { print $1 }') | ||||
6 | |||||
7 | /bin/echo 0 > /proc/sys/net/ipv6/conf/${switch}/disable_ipv6 | ||||
8 | /sbin/ifconfig $1 0.0.0.0 up | ||||
9 | /usr/sbin/brctl addif ${switch} $1 | ||||
10 | /usr/sbin/brctl setfd ${switch} 0 | ||||
11 | /usr/sbin/brctl stp ${switch} off |