Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Feb 2015 21:27:33 +0000
From:      "Sinha, Prokash" <psinha@panasas.com>
To:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: configuring bridge to route L2 packets from one interface to the other
Message-ID:  <D0F92003.4F73%psinha@panasas.com>
In-Reply-To: <D0F91B84.4F69%psinha@panasas.com>
References:  <D0F9056A.4F5C%psinha@panasas.com> <D0F91B84.4F69%psinha@panasas.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Finally able to coax it to get laggs bound to the bridge. Let me see thru k=
gdb ...


From: <Sinha>, Prokash Sinha <psinha@panasas.com<mailto:psinha@panasas.com>=
>
Date: Thursday, February 5, 2015 1:09 PM
To: "freebsd-net@freebsd.org<mailto:freebsd-net@freebsd.org>" <freebsd-net@=
freebsd.org<mailto:freebsd-net@freebsd.org>>
Subject: Re: configuring bridge to route L2 packets from one interface to t=
he other

I got the bridge device created ( kernel config needed to be changed ).

But don't know how the add works -

Is it because of the lagg ???

018780222f020d# ifconfig bridge0 addm bge0 addm bge1
ifconfig: BRDGADD bge0: Invalid argument

Thanks,
-p

From: <Sinha>, Prokash Sinha <psinha@panasas.com<mailto:psinha@panasas.com>=
>
Date: Thursday, February 5, 2015 11:32 AM
To: "freebsd-net@freebsd.org<mailto:freebsd-net@freebsd.org>" <freebsd-net@=
freebsd.org<mailto:freebsd-net@freebsd.org>>
Subject: configuring bridge to route L2 packets from one interface to the o=
ther

Hi All,

I'm trying to come up with a L2 forwarding from one interface to the other.=
 Is creating a bridge a good idea ?

The context:

I will have ether_frame coming from client to one NIC port BCM ( the driver=
 is bge), it will come to an interface, and want to forward to the other in=
terface.

So what is and how should I get this, so it work like a small scale bridge/=
switch ?  If I get all traffic coming in ifp 0, and forward to ifp 1 then I=
 can put a custom filter for the packets of interest to be forwarded.


So if I can configure using -
018780222f020b# ifconfig bridge create
ifconfig: SIOCIFCREATE2: Invalid argument

Not sure what the problem could be in my other configuration. It some have =
static lagg -
018780222f020b# ifconfig -a
bge0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 150=
0
options=3D49b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LRO>
ether 00:09:03:01:87:80
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
lagg: laggdev lagg0
bge1: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 150=
0
options=3D49b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LRO>
ether 00:09:03:01:87:81
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
lagg0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15=
00
options=3D49b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LRO>
ether 00:09:03:01:87:80
inet 10.17.26.11 netmask 0xffffff00 broadcast 10.17.26.255
media: Ethernet autoselect
status: active
laggproto failover
laggport: bge0 flags=3D5<MASTER,ACTIVE>
lagg1: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15=
00
ether 00:09:03:01:87:81
media: Ethernet autoselect
status: no carrier
laggproto failover

Thanks in Advance,
-prokash




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D0F92003.4F73%psinha>