Re: [CFT] if_transmit method for lagg(4)

2012-09-20 Thread Andrew Thompson
On 20 September 2012 19:47, Gleb Smirnoff gleb...@freebsd.org wrote: Hi, Yet another patch to test. Was suprising to me that lagg(4), which aims at high-performance, still utilizes if_start. Attached is patch that converts lagg(4) to use if_transmit. I'd appreciate if someone who do

Re: [CFT] if_transmit method for lagg(4)

2012-09-20 Thread Andrew Thompson
On 20 September 2012 20:48, Gleb Smirnoff gleb...@freebsd.org wrote: Hi! On Thu, Sep 20, 2012 at 08:37:19PM +1200, Andrew Thompson wrote: AYet another patch to test. Was suprising to me that lagg(4), which A aims at high-performance, still utilizes if_start. A AAttached is patch

Re: lagg speed trouble

2012-07-05 Thread Andrew Thompson
On 6 July 2012 04:43, Vyacheslav Kulikovskyy coolsy...@gmail.com wrote: 2012/7/4 Andrew Thompson thom...@freebsd.org On 4 July 2012 23:30, Vyacheslav Kulikovskyy coolsy...@gmail.com wrote: i have sever with two 1G links (em) aggregated by lagg0 after 1700Megabits i have collisions/errors

Re: lagg speed trouble

2012-07-04 Thread Andrew Thompson
On 4 July 2012 23:30, Vyacheslav Kulikovskyy coolsy...@gmail.com wrote: i have sever with two 1G links (em) aggregated by lagg0 after 1700Megabits i have collisions/errors on lagg0 port, but not on em0 or em1 I'm using nginx in own CDN. and server don't limited my mbufs, irq, or anything

Re: Panic with if_bridge when removing components

2012-06-10 Thread Andrew Thompson
On 10 June 2012 02:27, Gustau Perez Querol gpe...@entel.upc.edu wrote:  Hi,  I'm seeing panics when removing an interface of a bridge. The system runs HEAD/AMD64 r236733. I see no changes to if_bridge.c in the last two days, so I would say the problem's still there. I also checked stable and

Re: 'ifconfig tun0 destroy' gets stuck

2012-06-07 Thread Andrew Thompson
On 7 June 2012 19:08, Andriy Gapon a...@freebsd.org wrote: I experience a problem where vpnc can not exit cleanly and gets stuck. pstree shows this chain:  |-+= 31375 root vpnc  | \-+- 13412 root /bin/sh /usr/local/sbin/vpnc-script-custom  |   \--- 13446 root ifconfig tun0 destroy $

Re: lagg(4) MAC address selection proposal

2012-04-17 Thread Andrew Thompson
On 18 April 2012 12:39, Ed Maste ema...@freebsd.org wrote: When a new lagg(4) interface is created the link layer address from the first port in the group is assigned to the lagg and to all other lagg port members.  This means the address assigned to the lagg is different if specified as, for

Re: getifaddrs ipv6 scope

2012-04-15 Thread Andrew Thompson
On 14 April 2012 06:03, Hajimu UMEMOTO u...@freebsd.org wrote: Hi, On Fri, 13 Apr 2012 20:01:39 +1200 Andrew Thompson thom...@freebsd.org said: thompsa On 13 April 2012 18:41, Rainer Bredehorn bredeh...@gmx.de wrote: Hi! I have noticed that getifaddrs() does not have sin6_scope_id set

Re: getifaddrs ipv6 scope

2012-04-13 Thread Andrew Thompson
On 13 April 2012 18:41, Rainer Bredehorn bredeh...@gmx.de wrote: Hi! I have noticed that getifaddrs() does not have sin6_scope_id set to the interface id for link local addresses on AF_INET6 types. Running the following program gives different results on Linux ifconfig shows the scopeid

getifaddrs ipv6 scope

2012-04-12 Thread Andrew Thompson
Hi, I have noticed that getifaddrs() does not have sin6_scope_id set to the interface id for link local addresses on AF_INET6 types. Running the following program gives different results on Linux FreeBSD: dev: bge0 address: fe80:2::a6ba:dbff:fe03:d69 scope 0 dev: xl0 address:

Re: LACP kernel panics: /* unlocking is safe here */

2012-04-07 Thread Andrew Thompson
On 3 April 2012 00:35, John Baldwin j...@freebsd.org wrote: On Friday, March 30, 2012 6:04:24 pm Andrew Boyer wrote: While investigating a LACP issue, I turned on LACP_DEBUG on a debug kernel. In this configuration it's easy to panic the kernel - just run 'ifconfig lagg0 laggproto lacp' on a

Re: STP on netgraph bridge node

2012-03-13 Thread Andrew Thompson
On 14 March 2012 09:40, Julian Elischer jul...@freebsd.org wrote: On 3/11/12 1:06 AM, h bagade wrote: Hi all, Is there any way to add STP and RSTP protocols to bridge node on netgraph? Should I implement it on the node or it has done before? ___

Re: Fwd: bridge interface type

2012-03-04 Thread Andrew Thompson
On 5 March 2012 18:46, Julian Elischer jul...@freebsd.org wrote: On 3/4/12 1:36 PM, hiren panchasara wrote: Is this the correct mailer for such questions? probably n...@freebsd.org would be better. I do not understand why a bridge needs an interface type at all it seems a very odd way to

Re: bridge interface type

2012-03-04 Thread Andrew Thompson
From: hiren panchasara hiren.panchas...@gmail.com I created bridge1 this way: $ sudo ifconfig bridge create Password: bridge1 $ ifconfig bridge1 bridge1: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500    ether 02:32:c8:92:b6:01    nd6

Re: netisr+lagg+fragments=80% packet loss

2012-02-24 Thread Andrew Thompson
2012/2/25 Eugene Grosbein egrosb...@rdtc.ru: 25.02.2012 00:14, Eugene Grosbein пишет: This problem occurs only when net.isr.direct=0/net.isr.direct_force=0. And only when lagg1 has both ports up and running. And when I use oversized pings. At the same time, transit oversized pings go through

Re: 8.2-PRERELEASE: if_bridge ARP and broadcasts issues

2011-01-25 Thread Andrew Thompson
On 26 January 2011 02:32, Alexander Zagrebin a...@zagrebin.ru wrote: Hi! I've found some issues with the if_bridge on 8.2-PRERELEASE. 1. An ARP issue Suppose we have a box with the 4 interfaces: nic0, nic1, nic2, nic3. The interfaces are linked pairwise using 2 bridge(4) interfaces:

Re: ndis: fix ugly code

2010-10-05 Thread Andrew Thompson
On 6 October 2010 09:19, Paul B Mahol one...@gmail.com wrote: Hi, If clang did not complain, I would probbaly never spot it. Patch attached. Committed. ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net

Link state changes

2010-06-01 Thread Andrew Thompson
Revision 205024 - (annotate) Thu Mar 11 17:56:46 2010 UTC (2 months, 3 weeks ago) by qingli The if_tap interface is of IFT_ETHERNET type, but it does not set or update the if_link_state variable. As such RT_LINK_IS_UP() fails for the if_tap interface. Also, the RT_LINK_IS_UP() needs to

Re: Bringing VLANs created with rc.conf vlans_interface 'up' on boot?

2010-05-17 Thread Andrew Thompson
On Mon, May 17, 2010 at 10:08:36AM -0700, Peter Kieser wrote: Hello, I am experimenting with FreeBSD vlan's using the vlansinterface option in rc.conf, my configuration is as follows: ifconfig_em1=up vlans_em1=100 101 102 103 104 105 106 107 108 109 110 autobridge_interfaces=bridge0

Re: Running rtadvd or DHCPv6 server via if_bridge interface

2010-03-18 Thread Andrew Thompson
On Thu, Mar 18, 2010 at 11:27:43PM +0100, Stefan Bethke wrote: Am 11.12.2009 um 07:51 schrieb Chris Cowart: Bruce Cran wrote: I have a router configured using if_bridge with a 4-port NIC that's serving addresses over DHCP. I'd like to add in either rtadvd or DHCPv6, but neither work

Re: Why lagg(4) wants ~IFF_DRV_OACTIVE?

2010-03-08 Thread Andrew Thompson
On Mon, Mar 08, 2010 at 11:12:25AM -0800, Xin LI wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Maybe this is a stupid question but I really don't understand why a interface with IFF_DRV_OACTIVE can't be added to a lagg(4) interface. Looking at OpenBSD code, they do this since

Re: uath under FreeBSD 8.0-STABLE

2009-12-22 Thread Andrew Thompson
On Tue, Dec 22, 2009 at 05:54:25PM -0500, Steven Friedrich wrote: On Tuesday 22 December 2009 02:31:04 pm Weongyo Jeong wrote: On Tue, Dec 15, 2009 at 04:03:31PM -0500, Steven Friedrich wrote: Ok, I am able to load firmware with: uathload -d /dev/ugen4.3 but it also appears to do so

Re: uath under FreeBSD 8.0-STABLE

2009-12-22 Thread Andrew Thompson
On Wed, Dec 23, 2009 at 12:01:22PM +1300, Andrew Thompson wrote: On Tue, Dec 22, 2009 at 05:54:25PM -0500, Steven Friedrich wrote: On Tuesday 22 December 2009 02:31:04 pm Weongyo Jeong wrote: On Tue, Dec 15, 2009 at 04:03:31PM -0500, Steven Friedrich wrote: Ok, I am able to load firmware

Re: Can we turn off WPI_DEBUG

2009-10-27 Thread Andrew Thompson
On Tue, Oct 27, 2009 at 03:29:11PM -0700, Doug Barton wrote: I cc'ed those who seem to have put the most/recent effort into sys/dev/wpi. Is there any objection to turning off WPI_DEBUG by default? it creates a lot of spam that the average user doesn't need. I use my 3945abg every day and

Re: MAC locking and filtering in FreeBSD

2009-05-13 Thread Andrew Thompson
On Wed, May 13, 2009 at 10:48:02AM -0600, Brett Glass wrote: I need to find a way to do MAC address locking in FreeBSD -- that is, to ensure that only a machine with a particular MAC address can use a particular IP address. Unfortunately, it appears that rules in FreeBSD's IPFW are stuck on

Re: New INTEL firmware v3.1 for device iwi (IPW 2200BG)

2009-05-03 Thread Andrew Thompson
On Sun, May 03, 2009 at 02:48:13PM +0200, Dieter Brozio wrote: Hi there, To whom it may concern: INTEL released in March 2009 a new version 3.1 of its firmware version for the WLAN iwi device (Pro/Wireless 2200BG). http://ipw2200.sourceforge.net/firmware.php

Re: lagg LACP between two hosts

2009-04-30 Thread Andrew Thompson
On Thu, Apr 30, 2009 at 09:14:04PM +0200, and...@brancatelli.it wrote: Hello everybody, I have a strange curiosity maybe you can clarify me :-) Is it possible to do a LACP lagg connection directly between two hosts using two gigalan and two crossed cables? Or maybe three... ;-) Yes,

Re: lagg failover mode and vlans

2009-01-31 Thread Andrew Thompson
On Tue, Jan 27, 2009 at 12:39:26PM -0500, Mike Tancsa wrote: ... but if I create some vlan interfaces off lagg0 lagg0.100: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=3RXCSUM,TXCSUM ether 00:30:48:90:4c:fe inet 192.168.100.1 netmask

Re: Surf outside Internet through VPN

2008-12-19 Thread Andrew Thompson
On Fri, Dec 19, 2008 at 03:23:57AM -0800, Noah Silverman wrote: Hello, I want to find a way to pass ALL traffic from my laptop THROUGH my office VPN and then out to the Internet. This is a road warrior setup. This gives me a few benefits: 1) I can check my email securely through VPN. 2)

Re: bsnmpd 64bits counters problem

2008-12-16 Thread Andrew Thompson
On Tue, Dec 16, 2008 at 07:12:24PM +0100, Harti Brandt wrote: On Tue, 16 Dec 2008, Sergey Matveychuk wrote: SM SM The highspeed counters are only there if this is a high-speed interface. SM High speed means that the baudrate in the interface MIB (the one in the SM kernel) must be larger than

Re: bsnmpd 64bits counters problem

2008-12-16 Thread Andrew Thompson
On Tue, Dec 16, 2008 at 08:08:00PM +0100, Max Laier wrote: On Tuesday 16 December 2008 19:27:49 Andrew Thompson wrote: On Tue, Dec 16, 2008 at 07:12:24PM +0100, Harti Brandt wrote: On Tue, 16 Dec 2008, Sergey Matveychuk wrote: SM SM The highspeed counters are only

Re: bridged tap interfaces with stp

2008-09-22 Thread Andrew Thompson
On Mon, Sep 22, 2008 at 05:00:59PM +0300, Sergey Listopad wrote: Hi! I am playing with bridge(4) stp feature. there are 2 boxes with 7.0-RELEASE-p4. rt1rt2 ___ ___ ||

Re: if_gif/if_bridge problem

2008-09-04 Thread Andrew Thompson
On Fri, Sep 05, 2008 at 12:49:49AM +0800, Eugene Grosbein wrote: On Thu, Sep 04, 2008 at 11:49:06AM -0400, Boris Kochergin wrote: Ahoy. I've been using the patch for a while, and, recently, when the load on the wireless network I needed it for has increased, I've started getting kernel

Re: Small patch to multicast code...

2008-08-29 Thread Andrew Thompson
On Fri, Aug 29, 2008 at 06:41:45PM +0200, Luigi Rizzo wrote: On Fri, Aug 29, 2008 at 09:32:10AM -0700, Sam Leffler wrote: Luigi Rizzo wrote: ... and to be more explicit - the result of m_pullup is that the number of bytes specified as m_pullup argument are in a private piece of memory --

Re: lagg failover not automatic

2008-08-08 Thread Andrew Thompson
On Fri, Aug 08, 2008 at 11:49:27PM -0500, Jacob Owens wrote: Hello. I've got a old sun V100 which features two gigabit ports (using dc driver). I've been trying to get lagg failover working. on SPARC64 7.0 RELEASE On the box I put the following in /etc/rc.conf: ifconfig_dc0=UP

Re: bridging wireless station

2008-08-04 Thread Andrew Thompson
On Mon, Aug 04, 2008 at 12:13:09PM -1000, David Cornejo wrote: hi, i would like to bridge a wireless client to ethernet (in 8-CURRENT) - the last bug in the if_bridge man page says this is a no-no. The bridge man page needs to be updated as its possible to do this now. the question is

Re: kern/125181: [ndis] [patch] with wep enters kdb.enter.unknown, panics

2008-07-17 Thread Andrew Thompson
The following reply was made to PR kern/125181; it has been noted by GNATS. From: Andrew Thompson [EMAIL PROTECTED] To: Coleman Kane [EMAIL PROTECTED] Cc: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: kern/125181: [ndis] [patch] with wep enters kdb.enter.unknown, panics Date: Thu, 17

Re: if_bridge turns off checksum offload of members?

2008-07-01 Thread Andrew Thompson
should not work with two interfaces one of which support TX and the other does not? At least if I turn on checksum offload only on one of the interfaces the bridge is still working ... Andrew Thompson wrote: - cut - This patch should do that, are you able to test it Stefan? cheers

Re: if_bridge turns off checksum offload of members?

2008-06-30 Thread Andrew Thompson
On Mon, Jun 30, 2008 at 07:16:29PM +0900, Pyun YongHyeon wrote: On Mon, Jun 30, 2008 at 12:11:40PM +0300, Stefan Lambrev wrote: Greetings, I just noticed, that when I add em network card to bridge the checksum offload is turned off. I even put in my rc.conf:

Re: if_bridge turns off checksum offload of members?

2008-06-30 Thread Andrew Thompson
On Mon, Jun 30, 2008 at 07:16:29PM +0900, Pyun YongHyeon wrote: On Mon, Jun 30, 2008 at 12:11:40PM +0300, Stefan Lambrev wrote: Greetings, I just noticed, that when I add em network card to bridge the checksum offload is turned off. I even put in my rc.conf:

Re: kern/125003: incorrect EtherIP header format.

2008-06-26 Thread Andrew Thompson
The following reply was made to PR kern/125003; it has been noted by GNATS. From: Andrew Thompson [EMAIL PROTECTED] To: Shunsuke SHINOMIYA [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: kern/125003: incorrect EtherIP header format. Date: Thu, 26 Jun 2008 07:34:24 -0700 Hi

Re: Use lagg(4) or Use Layer-4 Load Balancing?

2008-06-18 Thread Andrew Thompson
On Tue, Jun 17, 2008 at 04:32:03AM -0400, Martes G Wigglesworth wrote: Greetings all. I have been attempting to research what I have been informed is actually accomplished with layer-4 load balancing. I have seen many articles and reviews that indicate that lagg(4) will accomplish the

Re: Use lagg(4) multiple switches

2008-06-18 Thread Andrew Thompson
On Wed, Jun 18, 2008 at 04:20:48PM -0300, Alexandre Biancalana wrote: Hi list, We have one machine with 3 nics configured with lagg(4). Each nic is connected to a different switch, but only one is in active mode. $ ifconfig -v lagg0 lagg0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST

Re: Testing lagg

2008-05-28 Thread Andrew Thompson
On Wed, May 28, 2008 at 05:28:34PM +0200, Andrea Venturoli wrote: Hello. I've got a new box which features two gigabit ports and I though I'd try lagg with LACP. On the box I put the following in /etc/rc.conf: ifconfig_em0=up ifconfig_em1=up ifconfig_lagg0=laggproto lacp laggport em0

Re: VLAN Trunking with Freebsd

2008-04-27 Thread Andrew Thompson
On Sun, Apr 27, 2008 at 11:42:39AM -0400, Martes G Wigglesworth wrote: I am sure this topic has been discussed before, however, I have been coming across unanswered inquiries within the last two months about possibly using the trunking aspect of 802.1q standard network routing, with only

Re: VLAN trunking and fragmentation

2008-03-12 Thread Andrew Thompson
On Wed, Mar 12, 2008 at 12:38:06PM -0700, Sean Chittenden wrote: interface ethernet 1/g1 switchport mode trunk switchport trunk allowed vlan add 10 exit I think this is an issue with default VLAN membership. I have this config running on *hundreds* of servers without issue. Since Dell

Re: if_gif/if_bridge problem

2008-02-26 Thread Andrew Thompson
On Tue, Feb 26, 2008 at 11:51:38AM -0500, Boris Kochergin wrote: Eugene Grosbein wrote: On Tue, Feb 26, 2008 at 09:57:48AM -0500, Boris Kochergin wrote: bridge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 ether 3e:7f:e8:ef:f6:a4 inet 192.168.0.1

Re: Multiple if_bridge devices

2008-01-29 Thread Andrew Thompson
On Tue, Jan 29, 2008 at 11:58:53AM -0800, Chris wrote: (I am reposting this. I posted to FreeBSD-Questions but it appears OT for that list. I didn't come here first because I felt it was too non-technical, but I'd appreciate any insights) I have 3 transparent firewalls on 3 T1s with a LAN

Re: if_bridge forwarding incorrectly forwarding ethernet link local addressed packets (e.g. lldp)

2008-01-16 Thread Andrew Thompson
On Thu, Jan 17, 2008 at 02:22:53AM +, Tom Judge wrote: Hi, As brought up in the thread Programming interface MAC filter without enabling PROMISC on an interface from user space. it would seem that if_bridge does not conform to IEEE 802.1D-2004. Which states: quote 7.12.6 Reserved

Re: Programming interface MAC filter without enabling PROMISC on an interface from user space.

2008-01-15 Thread Andrew Thompson
On Tue, Jan 15, 2008 at 09:59:22AM +, Tom Judge wrote: Bruce M. Simpson wrote: Tom Judge wrote: SNIP Personally I can't see why this approach would be a problem, but I am not a expert. The address is defined in IEEE Std 802.1D-2004 as to not be forwarded by bridges (which I interpret

Re: Aggregating many ports into one for tcpdump server. (also sampling before libpcap)

2007-12-08 Thread Andrew Thompson
On Sat, Dec 08, 2007 at 10:35:11AM +, Peter Wood wrote: Morning, Looking thru the archives, it seems ng_one2many (in this case 'many2one') is what I am looking for. Am I barking the right tree here? Strangely enough this is the exact situation I was looking into on Friday for two

Re: Aggregating many ports into one for tcpdump server.

2007-12-04 Thread Andrew Thompson
On Tue, Dec 04, 2007 at 04:25:01PM -0800, Peter Losher wrote: I am currently working on a tcpdump collector where we have multiple feeds coming in (via bge{0-8}). Since tcpdump can only poll one interface per process, I was hoping to aggregate the traffic onto one pseudo-interface for tcpdump

Re: net-mgmt/bsd-airtools broken not because of gcc4

2007-11-08 Thread Andrew Thompson
On Thu, Nov 08, 2007 at 12:22:41PM +0300, Denis Barov wrote: On Thu Nov 08, 2007 at 18:50:10 +1300, Andrew Thompson wrote: On Thu, Nov 08, 2007 at 08:00:00AM +0300, Sergey Matveychuk wrote: Denis Barov wrote: Hi all! I found, that port net-mgmt/bsd-airtools marked as broken: BROKEN

Re: net-mgmt/bsd-airtools broken not because of gcc4

2007-11-07 Thread Andrew Thompson
On Thu, Nov 08, 2007 at 08:00:00AM +0300, Sergey Matveychuk wrote: Denis Barov wrote: Hi all! I found, that port net-mgmt/bsd-airtools marked as broken: BROKEN= Does not compile with GCC 4.2 but, it's not really so. It's broken after Wed Jul 11 21:25:48 2007 UTC commit by [EMAIL

Re: Maximum number of vlans on a freebsd box ???

2007-11-03 Thread Andrew Thompson
On Sat, Nov 03, 2007 at 08:23:20PM +0200, Ivo Vachkov wrote: Hello all, I'd like to ask if someone has information how many vlans a freebsd box can 'run' ? There is no limit. You can only add 4096 per interface of course as its a 12bit tag. If you are adding a lot then you should use the

Re: Secure Wireless Router using FreeBSD ...

2007-10-19 Thread Andrew Thompson
On Fri, Oct 19, 2007 at 02:27:02AM -0300, Marc G. Fournier wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Within my Linksys, I can restrict wireless to MAC addresses, as well as using stuff like WPA ... quick search on google, and I found:

bridging vlan problem

2007-10-16 Thread Andrew Thompson
Hi, This problem has always existed but now in RELENG_7+ since the vlan tag is always stripped on the incoming packet its a little more obvious. The bridging output function puts the mbuf directly on the interfaces send queue so only network cards with VLAN_HWTAGGING will properly re-tag any

Re: if_bridge on a vlan-trunk

2007-10-12 Thread Andrew Thompson
On Fri, Oct 12, 2007 at 02:59:44PM -0500, Erik Osterholm wrote: On Fri, Oct 12, 2007 at 08:46:53AM +1300, Andrew Thompson wrote: On Thu, Oct 11, 2007 at 09:42:15PM +0200, Jon Otterholm wrote: Hi. Does anyone know if it is possible to put a transparent bridge on a vlan-trunk

Re: if_bridge on a vlan-trunk

2007-10-11 Thread Andrew Thompson
On Thu, Oct 11, 2007 at 09:42:15PM +0200, Jon Otterholm wrote: Hi. Does anyone know if it is possible to put a transparent bridge on a vlan-trunk? As from rev1.100 of if_bridge back in June it will correctly use the vlan number if the forwarding table so it is now possible to bridge a vlan

Re: bridging ath

2007-09-29 Thread Andrew Thompson
On Fri, Sep 28, 2007 at 10:01:04PM -1000, Randy Bush wrote: I don't know what you're trying to do no surprise. i rarely do. :) When you attach your wired nic to a bridge and and turn the bridge on the nic gets set in promiscuous mode. This is likely why you can ping the other

Re: bridging ath

2007-09-27 Thread Andrew Thompson
On Wed, Sep 26, 2007 at 04:07:00PM -1000, Randy Bush wrote: current i386 thinkpad t41 ifconfig_lo0=inet 127.0.0.1/8 cloned_interfaces=bridge0 ifconfig_bridge0=inet 192.168.0.3/24 addm em0 addm ath0 up ifconfig_em0=up ifconfig_ath0=ssid rgnet up defaultrouter=192.168.0.1 with ether

Re: bridging ath

2007-09-27 Thread Andrew Thompson
On Thu, Sep 27, 2007 at 01:19:42PM -1000, Randy Bush wrote: Just to be sure... good questions, thanks for asking net.inet.ip.forwarding=1 # sysctl net.inet.ip.forwarding net.inet.ip.forwarding: 1 net.link.ether.bridge.enable=1 net.link.ether.bridge.config=em0,ath0 # sysctl

ifconfig patch

2007-09-20 Thread Andrew Thompson
Hi, I have been digging into why the edsc module wasnt being loaded by ifconfig and now have a patch. A few printfs showed the problem. # ifconfig edsc0 create ifmaybeload(edsc0) trying to find if_edsc or edsc0 found @ ed Its comparing using the string length of the module name so any partial

Re: ifconfig patch

2007-09-20 Thread Andrew Thompson
On Fri, Sep 21, 2007 at 11:54:27AM +1200, Andrew Thompson wrote: Hi, I have been digging into why the edsc module wasnt being loaded by ifconfig and now have a patch. A few printfs showed the problem. # ifconfig edsc0 create ifmaybeload(edsc0) trying to find if_edsc or edsc0 found

Re: ifconfig patch

2007-09-20 Thread Andrew Thompson
On Thu, Sep 20, 2007 at 07:39:27PM -0500, Brooks Davis wrote: On Fri, Sep 21, 2007 at 11:54:27AM +1200, Andrew Thompson wrote: Hi, I have been digging into why the edsc module wasnt being loaded by ifconfig and now have a patch. A few printfs showed the problem. # ifconfig

Re: If_bridge and MST

2007-09-03 Thread Andrew Thompson
On Mon, Sep 03, 2007 at 02:11:59PM +0100, Tom Judge wrote: Hi, I was wondering if if_bridge had been taught how to speak multiple instance spanning tree? Not yet. I havnt started it yet and I do not know of anyone else working on it. Andrew ___

Re: Ethernet Bonding

2007-09-03 Thread Andrew Thompson
On Mon, Sep 03, 2007 at 02:16:20PM +0200, Christian Brueffer wrote: On Mon, Sep 03, 2007 at 01:59:47PM +0200, mer mite wrote: Hi All, I'm looking for a way to provide ethernet interface bonding in FreeBSD similar to ipmp in Solaris or just ethernet bonding in Linux. Don't want to do

Re: If_bridge and MST

2007-09-03 Thread Andrew Thompson
On Mon, Sep 03, 2007 at 10:21:20PM +0100, Tom Judge wrote: Andrew Thompson wrote: On Mon, Sep 03, 2007 at 02:11:59PM +0100, Tom Judge wrote: Hi, I was wondering if if_bridge had been taught how to speak multiple instance spanning tree? Not yet. I havnt started it yet and I do not know

Re: iwi(4)-related LOR

2007-08-30 Thread Andrew Thompson
On Thu, Aug 30, 2007 at 11:08:38AM +0300, Shteryana Shopova wrote: Hi, I am getting the following LOR on my notebook - iwi0: Intel(R) PRO/Wireless 2200BG mem 0xc840-0xc8400fff irq 21 at device 4.0 on pci2 iwi0: Ethernet address: 00:15:00:28:5c:dc iwi0: [ITHREAD] iwi0: link state

LAGG handbook entry

2007-08-19 Thread Andrew Thompson
Hi, I have been putting together a chapter on 'Link Aggregation and Failover', any feedback/corrections/additions would be appreciated. http://nzfug.nz.freebsd.org/nzfug/HandbookUpdates/NetworkAggregation cheers, Andrew ___ freebsd-net@freebsd.org

Re: Creating a non-bridge

2007-07-31 Thread Andrew Thompson
On Tue, Jul 31, 2007 at 08:19:34PM -0600, Brett Glass wrote: I'd like to create what might be called a non-bridge on a FreeBSD machine. I'd like to put two Ethernet interfaces on the machine which have the same IP address and subnet, and use those interfaces to communicate with clients.

bridge handbook section

2007-07-25 Thread Andrew Thompson
Hi, I have started updating the bridge section of the Handbook here, http://nzfug.nz.freebsd.org/nzfug/HandbookUpdates/NetworkBridging Any additions or corrections would be appreciated, just drop me an email. cheers, Andrew ___

Re: driver packet coalesce

2007-05-30 Thread Andrew Thompson
On Wed, May 30, 2007 at 04:45:05PM -0700, Jack Vogel wrote: Does any driver do this now? And if a driver were to coalesce packets and send something up the stack that violates mss will it barf? It would barf for things like bridging where the packet gets spit out a different interface. The

Re: cvs commit: src/sbin/ifconfig Makefile ifconfig.8 iflagg.c iftrunk.c src/share/man/man4 Makefile lagg.4 trunk.4 src/sys/modules Makefile src/sys/modules/if_lagg Makefile src/sys/modules/if_trunk M

2007-04-18 Thread Andrew Thompson
Please note the following change. trunk was only in HEAD for a week so the few people who tried it out already need to be aware of the name change. Andrew On Tue, Apr 17, 2007 at 12:35:11AM +, Andrew Thompson wrote: thompsa 2007-04-17 00:35:11 UTC FreeBSD src repository

Re: ipv6 multicast refcnt panic

2007-04-12 Thread Andrew Thompson
On Thu, Apr 12, 2007 at 09:43:44AM +0100, Bruce M. Simpson wrote: Andrew Thompson wrote: I have come across this panic which appears to be from incorrect refcounting on the inet6 multicast code. I'm assuming this is in -CURRENT, as the refcount code has not yet been MFCed. Yes sorry

ipv6 multicast refcnt panic

2007-04-11 Thread Andrew Thompson
Hi, I have come across this panic which appears to be from incorrect refcounting on the inet6 multicast code. [EMAIL PROTECTED] ifconfig edsc0 create [EMAIL PROTECTED] ifconfig edsc0 inet6 f00f::01 [EMAIL PROTECTED] ifconfig edsc0 destroy Everything is ok... [EMAIL PROTECTED] ifconfig edsc0

Re: CFT: new trunk(4)

2007-04-09 Thread Andrew Thompson
On Tue, Apr 03, 2007 at 09:37:57AM +0300, Niki Denev wrote: Andrew Thompson wrote: Here is a patch to add OpenBSD's trunk(4) interface, and also includes LACP support which came from agr(4) on NetBSD. Im interested in anyone who wants to test this and in particular lacp mode if you have

Re: pf + scrub fragment reassemble + if_bridge = bad?

2007-04-07 Thread Andrew Thompson
On Sat, Apr 07, 2007 at 03:01:09PM -0500, David Duchscher wrote: Ran into a problem the other day and wanted to drop a note and see if I should followup with a PR. Running a box as a bridging firewall and ran into problem with giant packets being reported by the router on one end and OSPF

Re: CFT: new trunk(4)

2007-04-03 Thread Andrew Thompson
On Tue, Apr 03, 2007 at 09:37:57AM +0300, Niki Denev wrote: I have fixed this up, a couple of spaces slipped into the Makefile. I tried today to do the wireless/wired roaming, almost as given in the man page, with the exception that my wireless interface (ath), uses WPA, and i'm

Re: CFT: new trunk(4)

2007-04-01 Thread Andrew Thompson
On Sat, Mar 31, 2007 at 04:42:14PM +0300, Niki Denev wrote: Andrew Thompson wrote: Hi, Here is a patch to add OpenBSD's trunk(4) interface, and also includes LACP support which came from agr(4) on NetBSD. Im interested in anyone who wants to test this and in particular lacp mode

CFT: new trunk(4)

2007-03-29 Thread Andrew Thompson
Hi, Here is a patch to add OpenBSD's trunk(4) interface, and also includes LACP support which came from agr(4) on NetBSD. Im interested in anyone who wants to test this and in particular lacp mode if you have a switch that supports it.

Re: if_bridge pf

2007-03-16 Thread Andrew Thompson
On Fri, Mar 16, 2007 at 12:01:01PM +0200, Stefan Lambrev wrote: Hello, I have 2 firewalls, and every of them have 2 bridged interfaces + STP , running FreeBSD 6.1-STABLE Unfortunately one of them is totally dead (hw problems) and I have to make new one, but I plan to use

Re: 802.1q bridged trunk with STP

2007-03-07 Thread Andrew Thompson
On Wed, Mar 07, 2007 at 03:06:10PM -0500, Corey Smith wrote: Please CC: me as I am off list. I want to be able to create an 802.1q bridged trunk. This is nice if you want layer 1 and 2 redundancy on an arbitrary number of logical networks with only two physical network interfaces.

Re: kern/109815: wrong interface identifier at pfil_hooks for vlans + if_bridge

2007-03-07 Thread Andrew Thompson
On Tue, Mar 06, 2007 at 08:22:16PM +0300, Roman Kurakin wrote: Ok, since no one want to provide an explanation I'll to do it myself. ... I suggest to fix this problem in the other way, by checking if the physical interface is the dst interface by MAC. Eq if we got packet from Ci, it will be

Re: ifconfig bridge0 without module not work ?

2007-03-07 Thread Andrew Thompson
On Wed, Mar 07, 2007 at 10:42:42PM +0100, rmkml wrote: Hi, I have disabled/removed module on kernel, anyone ok, but when I create bridge0 : ifconfig bridge0 create ifconfig: SIOCIFCREATE: Invalid argument I just added options BRIDGE on my kernel conf. uname -a : 6.2-RELEASE ok if I add

Re: conf/107035: bridge interface given in rc.conf not taking an (static) IP address

2007-02-27 Thread Andrew Thompson
Synopsis: bridge interface given in rc.conf not taking an (static) IP address Responsible-Changed-From-To: freebsd-rc-freebsd-net Responsible-Changed-By: thompsa Responsible-Changed-When: Tue Feb 27 08:58:47 UTC 2007 Responsible-Changed-Why: This is a limitation of ifconfig rather than rc. The

Re: [PATCH] Updated 802.1p/q patch

2007-02-15 Thread Andrew Thompson
On Wed, Feb 14, 2007 at 10:18:49PM +, Bruce M Simpson wrote: Hi, I have tested my 802.1p input patch with vlans configured. So far so good. It is now available from: http://people.FreeBSD.org/~bms/dump/latest-8021p.diff /* * If the device did not perform decapsulation of

Re: [PATCH] Part 2 of low level 802.1p priority support

2007-02-10 Thread Andrew Thompson
On Sat, Feb 10, 2007 at 06:28:41PM +, Bruce M. Simpson wrote: This updated patch moves VLAN tag decapsulation into if_ethersubr.c and always uses M_VLANTAG, which is also passed to the upper layer. Tests with ping: fxp (no VLAN_HWTAGGING support) OK msk (VLAN_HWTAGGING enabled)

Re: Wireless NIC recommendation

2007-01-15 Thread Andrew Thompson
On Mon, Jan 15, 2007 at 08:44:54PM +0100, Lars Stokholm wrote: John Nielsen wrote: On Monday 15 January 2007 13:44, John Nielsen wrote: On Monday 15 January 2007 12:54, Lars Stokholm wrote: Hi, I hope someone can help me with this, before I go mad (no pun intended.) :) I was

Re: Virtual Network Interfaces

2006-11-02 Thread Andrew Thompson
haven't heard of problems like this so far. I've Cc'ed Andrew Thompson which has imported if_bridge(4) from OpenBSD into FreeBSD. He will likely be able to answer your question and tell whether it is possible to bridge two VLAN interfaces (attached to a physical interface) with another

Re: pfil on bridge interface, looking for ether_header

2006-11-02 Thread Andrew Thompson
On Thu, Nov 02, 2006 at 05:45:50PM -0800, Kevin Sanders wrote: I've written a kernel module that has pfil_add_hook'ed into the pfil framework. When my input packet filter function is called, I can mtod(*m, struct IP *) to the IP header, but haven't found a way to find the original ethernet

Re: If_bridge behaving as HUB

2006-10-17 Thread Andrew Thompson
On Tue, Oct 17, 2006 at 09:06:26AM +0200, Jon Otterholm wrote: Andrew Thompson wrote: On Mon, Oct 16, 2006 at 12:15:13PM +0200, Jon Otterholm wrote: Hi. I have a bridge setup with a number of vlan IF's as members. After a while traffic destined for one member IF are sent to all member

Re: If_bridge behaving as HUB

2006-10-16 Thread Andrew Thompson
On Mon, Oct 16, 2006 at 12:15:13PM +0200, Jon Otterholm wrote: Hi. I have a bridge setup with a number of vlan IF's as members. After a while traffic destined for one member IF are sent to all member IF's. From man if_bridge: A bridge works like a hub, forwarding traffic from one

Re: RSTP code for test/review

2006-10-15 Thread Andrew Thompson
On Fri, Oct 13, 2006 at 12:11:06AM +1300, Andrew Thompson wrote: Hi, Attached is a patch that brings in rapid spanning tree (802.1w) support. I would appreciate any testing or code review. The states will be printed out at the moment as packets are transfered and the topo is calculated

Re: kern/102607: [if_bridge] don't generate random L2 address

2006-10-08 Thread Andrew Thompson
Synopsis: [if_bridge] don't generate random L2 address State-Changed-From-To: open-patched State-Changed-By: thompsa State-Changed-When: Sun Oct 8 19:42:02 UTC 2006 State-Changed-Why: Committed. I decided not to include the link address in the example as it shouldnt need to be set in the default

Re: Layer2 VPN

2006-10-03 Thread Andrew Thompson
On Tue, Oct 03, 2006 at 11:41:07AM +0100, Dunc wrote: Hi folks, I've been trying to create a layer2 VPN using FreeBSD boxes as the gateways. The 2 methods I thought of are:- a) Create a tunnel between the 2 gateways using gif interfaces, and bridge the gifs onto a real NIC. Both

Re: Layer2 VPN

2006-10-03 Thread Andrew Thompson
On Wed, Oct 04, 2006 at 12:32:15AM +0100, Dunc wrote: Andrew Thompson wrote: On Tue, Oct 03, 2006 at 11:41:07AM +0100, Dunc wrote: Hi folks, I've been trying to create a layer2 VPN using FreeBSD boxes as the gateways. This should work fine with vlan headers, do you have any

Re: Limit arp on bridge

2006-09-13 Thread Andrew Thompson
On Tue, Sep 12, 2006 at 05:04:12PM +0200, Jon Otterholm wrote: Hello. I am trying to limit arp-broadcast between member-IF on a bridge (if_bridge) with no luck. I have the following sysctls set: net.link.bridge.pfil_member: 1 net.link.bridge.pfil_bridge: 1

Re: Bridge

2006-09-13 Thread Andrew Thompson
On Wed, Sep 13, 2006 at 08:19:41PM +0200, Jon Otterholm wrote: Hi. According to man if_bridge one could filter L2-traffic with ipfw: From man if_bridge: ARP and REVARP packets are forwarded without being filtered and others that are not IP nor IPv6 packets are not forwarded when

Re: Bridge

2006-09-13 Thread Andrew Thompson
On Thu, Sep 14, 2006 at 08:38:02AM +0400, Eygene Ryabinkin wrote: Andrew, good day! The check for ARP happens before the ipfw layer2 code so it isnt currently possible to filter them. switch (ether_type) { case ETHERTYPE_ARP: case ETHERTYPE_REVARP:

  1   2   >