blob: d4b05929f291c46fafa7ec95b980d377679ddb67 [file] [log] [blame]
Eric Lie0493a42010-11-15 13:05:43 -08001#!/bin/sh
2
3# The following expression selects the first bridge listed by 'brctl show'.
4# Modify it to suit your needs.
5switch=$(/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