configuring bridge to route L2 packets from one interface to the other

Sinha, Prokash psinha at panasas.com
Thu Feb 5 19:33:10 UTC 2015


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 interface.

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=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=49b<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=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=49b<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=8049<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=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=49b<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=5<MASTER,ACTIVE>
lagg1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:09:03:01:87:81
media: Ethernet autoselect
status: no carrier
laggproto failover

Thanks in Advance,
-prokash



More information about the freebsd-net mailing list