set interface gigabit-ethernet family ethernet-switching vlan members


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.


Command Syntax
set interface gigabit-ethernet <port> family ethernet-switching vlan members <vlan-id>
delete interface gigabit-ethernet <port> family ethernet-switching vlan members <vlan-id>


Parameter
• <port> ethernet switching port identifier,the valid ports range 1-52.

• <vlan-id> Configure the VLAN ID or VLAN ID range for which the interface can carry traffic, eg: 2, 3... Range: 1 to 4094.

NOTE:

When configuring VLAN member, use VLAN ID or VLAN range, but NOT other strings.


Example

• This example is adding a trunk port (ge-1/1/3) to a VLAN:

admin@XorPlus# set interface gigabit-ethernet ge-1/1/3 family ethernet-switching port-mode trunk
admin@XorPlus# set interface gigabit-ethernet ge-1/1/3 family ethernet-switching vlan members 5 
admin@XorPlus# commit 

• This example is adding a trunk port (ge-1/1/30) to a VLAN range:

admin@XorPlus# set interface gigabit-ethernet ge-1/1/30 family ethernet-switching port-mode trunk
admin@XorPlus# set interface gigabit-ethernet ge-1/1/30 family ethernet-switching vlan members 50-100 
admin@XorPlus# commit 

• This example is adding a trunk port (te-1/1/30) to VLAN 2 and 3:

admin@XorPlus# set interface gigabit-ethernet te-1/1/30 family ethernet-switching port-mode trunk
admin@XorPlus# set interface gigabit-ethernet te-1/1/30 family ethernet-switching vlan members 2,3
admin@XorPlus# commit 

Copyright © 2024 Pica8 Inc. All Rights Reserved.