Skip to main content

Port VLAN Gotcha

(2013-11-15)

Problem

I have a VLAN with ports defined as so:

set vlans MyLAN interface ge-0/0/16.0

And then I come along and want to add other VLANs as trunked VLANs, as so:

set interfaces ge-0/0/16 description "System LAN trunk"
set interfaces ge-0/0/16 unit 0 family ethernet-switching port-mode trunk
set interfaces ge-0/0/16 unit 0 family ethernet-switching vlan members MyVLAN164
set interfaces ge-0/0/16 unit 0 family ethernet-switching native-vlan-id MyLAN

...and nothing works, not even untagged traffic on MyLAN.

Solution

The two VLAN definition methods are incompatible. Get rid of the original definition:

delete vlans MyLAN interface ge-0/0/16.0

...and things will work again.