Solved bridge problems

I just found out my old workstation has a second network interface ;-) so whats better than running jails or vms on that!
However, my issues:
I created epair[0-9] for the vnet jails and bridge0, confirming bridge0 does not hold any interfaces "ifconfig bridge0":
Code:
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    ether 02:dc:92:eb:89:00
    id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
    maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
    root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
    groups: bridge
    nd6 options=9<PERFORMNUD,IFDISABLED>

trying to add all the epair interfaces with "ifconfig bridge0 inet 10.0.1.66 netmask 255.255.255.0 addm em0 addm epair0a addm epair1a addm addm epair2a addm epair3a addm epair4a addm epair5a addm epair6a addm epair7a addm epair8a addm epair9a up" results in a "ifconfig: BRDGADD addm: No such file or directory"

If I always add 3 interfaces to the bridge it works. Any ideas? it also does not work with the appropriate entries in rc.conf
 
had some more weird issues that when first deleting all interfaces with deletem from bridge0, then destroying the bridge0 and finally creating bridge0 again some random epair interfaces appeared in bridge0 ... after a reboot everything seems ok
 
Back
Top