Thank you all very much for your efforts.
Trying to consolidate and reconsile what everyone has written so far. I’m sure it doesn’t look like it to some, but the descriptions and explanations are not easy to make consistent with each other and complete.
The use of some terms (port, etherport, interface, anchor, physical port) is very confusing. I get a sense that some might have multiple meanings, and some have meaning for those of us “in the know” but the inconsistent use makes it very hard to learn this stuff.
Trying to bridge (oh no!!!) between the theoretical and practical (and not between the physical and the logical and the abstract, as the word “bridge” is used hereinafter):
\
- Create a bridge (this is a layer 2 and operates on ethernet, also known as MAC address level; this bridge can be conceptualized as a switch within a device such as a router) – let’s name it bridge=TESTBRIDGE
\
- Add ports to TESTBRIDGE
/interface/bridge/port defines the ingress behavior of frames to the specified port, specifically (1) which physical ports (that is, etherports) will be a member of TESTBRIDGE, (2) the “default” VLAN-ID of each port in the form of pvid, (3) type VLAN tagging for that will be admitted by that port.
For example:
/interface bridge port
add bridge=bridge frame-types=
admit-only-vlan-tagged interface=ether2 internal-path-cost=10 path-cost=10
** This config line instructs the router to allow frames to ingress on ether2 only if they have vlan tags. This makes ether2 a trunk port.
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged interface=ether4 internal-path-cost=10 path-cost=10 pvid=22
** This config line instructs the router to allow frames to ingress on ether4 only if those frames are untagged (or have priority tagging) and to then insert a vlad tag with vlan-id=22. This makes ether4 an access port.
3) Add vlans to TESTBRIDGE
/interface/bridge/vlan defines the egress behavior of frames (that is, for frames moving from inside the MT device, out the physical jack (RJ45) to the twisted pair and destined for the next network device; OR frames internal to the MT device and moving to a virtual device such as a bridge) according to the following rules: When port is set as untagged the frames leaving that port will not have the VLAN tag. When port is set as tagged, the frame will have the VLAN tag inserted.
That means that the following config line:
add bridge=TESTBRIDGE tagged=ether2,ether3 vlan-ids=2,12,32
allows frames with vlan-ids of 2, 12, and 32 to egress on ether2 and ether3
4) Add /interface/vlan.
This connects layer 2 (the first 3 steps above) to layer 3 (IP).
/interface/vlan creates VLAN interfaces and defines (1) the VLAN-ID of that interface, (2) the bridge to which it belongs.
This is still an extremely confusing, and I am certain that I do not understand it, despite massive amounts of effort and help. I am really growing to dislike this endeavor.