#!/bin/bash
/sbin/kldload netgraph
/sbin/kldload ng_ether
/sbin/kldload ng_one2many
/sbin/kldload ng_socket
/sbin/ifconfig ste0 up
/sbin/ifconfig ed0 up
/sbin/ifconfig rl0 up
/usr/sbin/ngctl mkpeer ste0: one2many upper one
/usr/sbin/ngctl connect ste0: ste0:upper lower many0
/usr/sbin/ngctl connect ed0: ste0:upper lower many1
/usr/sbin/ngctl connect rl0: ste0:upper lower many1
/usr/sbin/ngctl msg ed0: setpromisc 1
/usr/sbin/ngctl msg rl0: setpromisc 1
/usr/sbin/ngctl msg ed0: setautosrc 0
/usr/sbin/ngctl msg rl0: setautosrc 0
/usr/sbin/ngctl msg ste0:upper setconfig "{ xmitAlg=1 failAlg=1 enabledLinks=[ 1 1 1 1 ] }"
/sbin/ifconfig fxp0 inet 10.2.223.239 netmask 0xffffffe0
/sbin/route add default 10.2.223.1
by hopesfish@2004-06-03