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 <psi...@panasas.com<mailto:psi...@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 other 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 _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"