From owner-freebsd-stable@FreeBSD.ORG Wed Feb 9 09:07:40 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AAC3016A504 for ; Wed, 9 Feb 2005 09:07:39 +0000 (GMT) Received: from f20.mail.ru (f20.mail.ru [194.67.57.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 50A4543D1F for ; Wed, 9 Feb 2005 09:07:39 +0000 (GMT) (envelope-from _pppp@mail.ru) Received: from mail by f20.mail.ru with local id 1Cynov-000D7u-00 for freebsd-stable@freebsd.org; Wed, 09 Feb 2005 12:07:37 +0300 Received: from [81.200.13.122] by win.mail.ru with HTTP; Wed, 09 Feb 2005 12:07:37 +0300 From: dima <_pppp@mail.ru> To: freebsd-stable@freebsd.org Mime-Version: 1.0 X-Mailer: mPOP Web-Mail 2.19 X-Originating-IP: [81.200.13.122] Date: Wed, 09 Feb 2005 12:07:37 +0300 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Message-Id: Subject: ng_fec startup X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: dima <_pppp@mail.ru> List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2005 09:07:40 -0000 I am curious about the proper way of setting up an EtherChannel from startup scripts. grep -R fec /etc/* didnt provide me a hint. So, all the EtherChannel configuration is in /etc/rc.local now: $ cat /etc/rc.local #!/bin/sh /sbin/ifconfig bge0 media 100BaseTX mediaopt full-duplex up /sbin/ifconfig bge1 media 100BaseTX mediaopt full-duplex up /usr/sbin/ngctl -f /var/fec0.conf /sbin/ifconfig fec0 inet x.x.x.x netmask 255.255.255.224 up /sbin/route add default x.x.x.x $ cat /var/fec0.conf mkpeer fec dummy fec msg fec0: add_iface "bge0" msg fec0: add_iface "bge1" msg fec0: set_mode_inet The ngctl behavoir looks kinda strange also -- the catalyst produces warnings about speed changes from 100 to 10 and back while the netgraph script is running. Thats why I fixed the speed and duplex on both sides.