Hi folks!
Some switches allow tagging/untagging of packets as they are sent from/to a physical interface. With FreeBSD I'd to this like so:
While this should work (using lan0b as the iface to work with), it's very clumsy. Is there a better way to achieve this, maybe even with conditional tagging/untagging?
Greetings,
/dev
Some switches allow tagging/untagging of packets as they are sent from/to a physical interface. With FreeBSD I'd to this like so:
Code:
ifconfig em0 name physical
ifconfig bridge0 create name tagbridge
ifconfig epair0 create name cable0a
ifconfig epair0b name cable0b
ifconfig vlan0 create name lan0a
ifconfig vlan1 create name lan0b
ifconfig lan0a vlan 42 vlandev cable0a
ifconfig lan0b vlan 42 vlandev cable0b
ifconfig tagbridge addm physical addm lan0a
ifconfig physical up
ifconfig tagbridge up
ifconfig cable0a up
ifconfig cable0b up
ifconfig lan0a up
ifconfig lan0b up
Greetings,
/dev
Last edited by a moderator: