Hi,
First add a vlan to the switch if that has not been done already
>set vlan vlan-name vlan-id id
Create the vlan on the switch
set vlan test vlan-id 20
set the vlan to the interface
set interfaces ge-0/0/0 unit 0 family ethernet-switching vlan members test
you can replace the ge-0/0/0 by any interface you want to add the vlan to
To check if the vlan is on the trunk
show interfaces ge-0/0/0
description test;
unit 0 {
family ethernet-switching {
port-mode trunk;
vlan {
members [ TEST-1 test];
}
}
}
now you need to apply the config to the switch with the commit command
commit.
and you are done 🙂