Yes, it's possible. I did it with a raspberry pi for a short time. As others have stated, bonding and bridging are 2 separate things... Hopefully you know which one you want. Bridge is like creating a switch out of some ports (like the LAN ports of a home router), bonding (agr) is for attaching multiple interfaces to a switch (aggregation of links between devices). And the switch needs to be configured for it as well.
Follow the instructions to set up the kernel to forward packets: http://www.netbsd.org/docs/guide/en/chap-net-practice.html#chap-net-practice-ipnat This is a bit old, you're expected to use npf these days. I tried it a few times but I haven't given it the proper time/attention to learn the syntax. I set up a few simple looking statements that had unpredictable results so I gave up basically. Probably should try it again. My real interest in this is IPv6... One of these days... Andy On Fri, Jul 14, 2017 at 9:53 AM, Derrick Lobo <[email protected]> wrote: > I have a device with 8 network interface,so wondering if I can set this up > as my router/switch > > I would like to create eth0 as the WAN interface and the remaining eth1-6 as > the LAN interface so that I can connect multiple switches and devices > directly on the 7 remaining ports.. is vlan, bridging the way to go .. linux > uses bonding and im not sure if freebsds lagg is the same thing.. Anyone can > provide information or link on how I can achieve this. > > So eth0 would have a public Ip while the rest ports would have one LAN IP > whichis basically a 192.168.0.1 ip and Irun DHCP namedb etc on these > interface to support my LAN. > > Thanks > > Derrick Lobo
