From owner-freebsd-net@FreeBSD.ORG Tue Nov 2 17:31:00 2004 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 4999816A4CE for ; Tue, 2 Nov 2004 17:31:00 +0000 (GMT) Received: from unsane.co.uk (unsane.co.uk [82.152.23.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3695C43D2F for ; Tue, 2 Nov 2004 17:30:59 +0000 (GMT) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (localhost [127.0.0.1]) by unsane.co.uk (8.13.1/8.12.10) with ESMTP id iA2HUvGP087900 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 2 Nov 2004 17:30:57 GMT (envelope-from jhary@unsane.co.uk) Received: from localhost (jhary@localhost) by unsane.co.uk (8.13.1/8.12.10/Submit) with ESMTP id iA2HUukx087897; Tue, 2 Nov 2004 17:30:57 GMT (envelope-from jhary@unsane.co.uk) Date: Tue, 2 Nov 2004 17:30:56 +0000 (GMT) From: Vince Hoffman To: AndygreenNet@netscape.net In-Reply-To: <7B24A164.35066CB5.0C457E44@netscape.net> Message-ID: <20041102172918.A84007@unsane.co.uk> References: <7B24A164.35066CB5.0C457E44@netscape.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-net@freebsd.org Subject: Re: Bridge 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, 02 Nov 2004 17:31:00 -0000 On Mon, 1 Nov 2004 AndygreenNet@netscape.net wrote: > Hi everybody! > > I'm try configure bridge on FreeBSD box. > > Box configuration: > %uname -srp > FreeBSD 5.3-RC1 i386 > %ifconfig > xl0: flags=8943 mtu 1500 > options=9 > ether 00:04:79:68:02:e6 > media: Ethernet autoselect (none) > status: no carrier > fxp0: flags=8943 mtu 1500 > options=48 > inet 213.59.235.126 netmask 0xfffffff8 broadcast 213.59.235.127 > ether 00:0e:0c:00:58:60 > media: Ethernet autoselect (100baseTX ) > status: active > fxp1: flags=8943 mtu 1500 > options=48 > ether 00:07:e9:14:01:99 > media: Ethernet autoselect (100baseTX ) > status: active > fxp2: flags=8943 mtu 1500 > options=48 > inet 213.59.128.190 netmask 0xfffffffc broadcast 213.59.128.191 > ether 00:07:e9:14:05:be > media: Ethernet autoselect (none) > status: no carrier > plip0: flags=108810 mtu 1500 > pflog0: flags=0<> mtu 33208 > pfsync0: flags=0<> mtu 2020 > lo0: flags=8049 mtu 16384 > inet 127.0.0.1 netmask 0xff000000 > vlan0: flags=8943 mtu 1500 > ether 00:07:e9:14:05:be > media: Ethernet autoselect (none) > status: no carrier > vlan: 218 parent interface: fxp2 > vlan1: flags=8943 mtu 1500 > inet 62.33.196.254 netmask 0xffffff80 broadcast 62.33.196.255 > ether 00:07:e9:14:01:99 > media: Ethernet autoselect (100baseTX ) > status: active > vlan: 155 parent interface: fxp1 > vlan2: flags=8943 mtu 1500 > ether 00:07:e9:14:01:99 > media: Ethernet autoselect (100baseTX ) > status: active > vlan: 156 parent interface: fxp1 > vlan3: flags=8943 mtu 1500 > ether 00:07:e9:14:01:99 > media: Ethernet autoselect (100baseTX ) > status: active > vlan: 90 parent interface: fxp1 > vlan4: flags=8943 mtu 1500 > ether 00:0e:0c:00:58:60 > media: Ethernet autoselect (100baseTX ) > status: active > vlan: 156 parent interface: fxp0 > vlan5: flags=8943 mtu 1500 > ether 00:04:79:68:02:e6 > media: Ethernet autoselect (none) > status: no carrier > vlan: 90 parent interface: xl0 > %vi /usr/local/etc/rc.d/bridge.sh > #!/bin/sh > # > # > > if [ -z "${source_rc_confs_defined}"]; then > if [ -r /etc/defaults/rc.conf ]; then > . /etc/defaults/rc.conf > source_rc_confs > elif [ -r /etc/rc.conf ]; then > . /etc/rc.conf > fi > fi > > case "$1" in > start) > case "${bridge_enable}" in > [Yy][Ee][Ss]) This looks to me like you need to add bridge_enable="YES" to /etc/rc.conf > echo -n 'Starting bridge' > sysctl -w net.link.ether.bridge.enable=1 > sysctl -w net.link.ether.bridge.ipfw=1 > sysctl -w net.link.ether.bridge.config=vlan0:218,vlan1:155,vlan2:156,vlan3:90,vlan4:156,vlan5:90,xl0:218,fxp0:155 > ;; > esac > ;; > stop) > sysctl -w net.link.ether.bridge.enable=0 > ;; > *) > echo "Usage: `basename $0` {start|stop}" >&2 > ;; > esac > > exit > %vi /etc/rc.conf > firewall_enable="YES" # Set to YES to enable firewall functionality > firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall > firewall_type="OPEN" # Firewall type (see /etc/rc.firewall) > firewall_quiet="YES" # Set to YES to suppress rule display > firewall_logging="YES" # Set to YES to enable events logging > firewall_flags="" # Flags passed to ipfw when type is a file > ip_portrange_first="49190" # Set first dynamically allocated port > ip_portrange_last="65535" # Set last dynamically allocated port > > Bridge do not work! > What do I do incorrectly? > > __________________________________________________________________ > Switch to Netscape Internet Service. > As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register > > Netscape. Just the Net You Need. > > New! Netscape Toolbar for Internet Explorer > Search from anywhere on the Web and block those annoying pop-ups. > Download now at http://channels.netscape.com/ns/search/install.jsp > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >