File:  [ELWIX - Embedded LightWeight unIX -] / elwix / config / etc / uboot / rc.d / 014.lagg.stop
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Mon Sep 15 19:06:52 2014 UTC (9 years, 10 months ago) by misho
Branches: MAIN
CVS tags: elwix2_3, HEAD, ELWIX2_2p0
elwix 2.2

    1: #!/bin/sh
    2: 
    3: IFACE="lagg0"
    4: PROTO="lacp"
    5: PORTS="fxp0 fxp1"
    6: 
    7: MEDIA="autoselect"
    8: 
    9: OPT=""
   10: IP=""
   11: 
   12: echo "Config Ethernet-Link aggregation interface $IFACE ..."
   13: ifconfig $IFACE create
   14: ifconfig $IFACE laggproto $PROTO
   15: for p in $PORTS; do
   16: 	ifconfig $IFACE laggport $p
   17: done
   18: ifconfig $IFACE inet $IP media $MEDIA $OPT up
   19: #dhclient $IFACE

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>