#!/bin/bash

case "$1" in
start)
modprobe ne2k-pci  


ifconfig eth0 0.0.0.0 promisc 
ifconfig eth1 0.0.0.0 promisc 


brctl addbr pont 


brctl addif pont eth0  
brctl addif pont eth1


ifconfig pont up
;;
stop)

ifconfig eth0 down 
ifconfig eth1 down 

ifconfig pont down 
;;
status)
brctl show
;;
*)
echo  recommence encore :)
exit
esac

## dans ma distrib, je déplace les binaires brctl & brctld de /usr/local/sbin/ a /usr/sbin/ 
