This command is to add a vlan member to this trunk port with tagged packet, vlan members range from 1 to 4094. The default of this command is that packets are tagged when the packets go out from this interface.
Note: If this interface's native-vlan-id is identical to vlan-member, packets will be encapsulated with vlan tag because tagged packet is the default configuration of vlan-member.
set interface gigabit-ethernet <port> family ethernet-switching vlan members <vlan-id>
delete interface gigabit-ethernet <port> family ethernet-switching vlan members <vlan-id>
• <port> ethernet switching port identifier,the valid ports range 1-52.
• <members> Configure the VLANs for which the interface can carry traffic,eg:2,3...
• This example is adding a trunk port(ge-1/1/3) to a vlan: