Date: Thu, 5 Feb 2015 19:33:00 +0000 From: "Sinha, Prokash" <psinha@panasas.com> To: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org> Subject: configuring bridge to route L2 packets from one interface to the other Message-ID: <D0F9056A.4F5C%psinha@panasas.com>
next in thread | raw e-mail | index | archive | help
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?D0F9056A.4F5C%psinha>