From owner-freebsd-net@FreeBSD.ORG Tue Apr 8 06:58:44 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BFBA37B401 for ; Tue, 8 Apr 2003 06:58:44 -0700 (PDT) Received: from bill.infodev.ca (bill.infodev.ca [216.191.3.69]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF18843FB1 for ; Tue, 8 Apr 2003 06:58:43 -0700 (PDT) (envelope-from dpageau@infodev.ca) Received: from localhost (localhost.infodev.ca [127.0.0.1]) by bill.infodev.ca (Postfix) with ESMTP id C0D102EB34 for ; Tue, 8 Apr 2003 10:05:50 -0400 (EDT) Received: from bill.infodev.ca ([127.0.0.1]) by localhost (bill.infodev.ca [127.0.0.1:10024]) (amavisd-new) with ESMTP id 80320-05 for ; Tue, 8 Apr 2003 10:05:50 -0400 (EDT) Received: from infodev.ca (rd-03.lan [192.168.42.127]) by bill.infodev.ca (Postfix) with ESMTP id 5356D2EB31 for ; Tue, 8 Apr 2003 10:05:50 -0400 (EDT) Message-ID: <3E92D716.9040803@infodev.ca> Date: Tue, 08 Apr 2003 10:05:10 -0400 From: "D.Pageau" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <3E91DBEC.5080602@infodev.ca> <3E9273DC.9040700@ccrle.nec.de> In-Reply-To: <3E9273DC.9040700@ccrle.nec.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Subject: Re: Can't bind IP to my bridge at boot time X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Apr 2003 13:58:44 -0000 Only one IP for the bridge (two interfaces). "If you want to be able to telnet into the bridge from the network, it is OK to assign one of the network cards an IP address. The consensus is that assigning both cards an address is a bad idea." Handbook I'm ok with that, two IP for the bridge is probably a bad idea. What about my third interface that is a default route for my nated network? This interface need a IP. BTW I have commented out the ifconfig_rl0 line so I only have one IP and this IP should be setup at boot time on the bridge and it's not working. Martin Stiemerling wrote: > As far as I know you can assign only one IP address when you are using > bridging. This means only one interface is allowed to be configured with > an IP address. > > Martin > > D.Pageau wrote: > >> If I uncomment #net.link.ether.bridge=1 in sysctl.conf my IP is not >> bind to rl1 but if I leave it commented and type "sysctl >> net.link.ether.bridge=1" at command prompt everything work fine. >> >> Need help! >> >> Thanks >> >> $cat /etc/rc.conf >> ... >> ifconfig_rl0="inet 192.168.42.2 netmask 255.255.255.0" >> ifconfig_rl1="inet 216.1.1.2 netmask 255.255.255.240" >> #ifconfig_rl2 Bridge to rl1 >> ... >> >> $cat /etc/sysctl.conf >> net.link.ether.bridge_cfg=rl1,rl2 >> net.link.ether.bridge_ipfw=1 >> #net.link.ether.bridge=1 >> >> $uname -a >> FreeBSD x.x.x 5.0-RELEASE FreeBSD 5.0-RELEASE #7: Mon Apr 7 13:35:54 >> EDT 2003 >> > > -- Dominic Pageau