set vlans reserved-vlan
The set vlans reserved-vlan command configures reserved VLANs for the use of routed interfaces.
Command Syntax
set vlans reserved-vlan <reserved-vlan>
Parameter
Parameter | Description |
reserved-vlan <reserved-vlan> | Specifies the reserved VLANs. The valid VLAN numbers range is 2-4094. User can specify a range of VLAN numbers, e.g. 2,3,50-100. The system supports up to 128 reserved VLANs. |
Usage Guidelines
Whenever a routed interface is configured, the system will automatically assign a VLAN internally to the routed interface from the reserved VLANs in order of smallest to largest.
The system supports up to 128 reserved VLANs.
VLAN 1 cannot be used as a reserved VLAN.
A reserved VLANs are VLANs dedicated to the routed interfaces (sub-interfaces are not included) and cannot be used for other interfaces, or other VLAN functions, such as PVLAN.
Reserved VLAN is mutually exclusive with the following settings, before configuring, please delete all these commands that uses the reserved VLAN, otherwise the reserved VLAN command will fail to commit.
set protocols dhcp snooping vlan <vlan-id> |
Note that: If you want to modify the value of the reserved VLANs, all the routed interfaces need to be disabled first.
You can use the commands run show vlans and run show vlans routed-vlan to check the VLAN information of all routed interfaces. For example,
admin@Xorplus# set interface gigabit-ethernet te-1/1/2 routed-interface name rif-te2 admin@Xorplus# set interface gigabit-ethernet te-1/1/2 routed-interface enable true admin@Xorplus# set interface gigabit-ethernet te-1/1/4 routed-interface name rif-te4 admin@Xorplus# set interface gigabit-ethernet te-1/1/4 routed-interface enable true admin@Xorplus# set vlans reserved-vlan 80-85 admin@Xorplus# commit admin@Xorplus# run show vlans VlanID Vlan Name Tag Interfaces ------ ------------------ -------- ------------------------------------------------------ 1 default untagged te-1/1/1, xe-1/1/1, xe-1/1/2, xe-1/1/3, te-1/1/3 xe-1/1/4, xe-1/1/5, te-1/1/5, xe-1/1/6, te-1/1/6 te-1/1/7, te-1/1/8, te-1/1/9, te-1/1/10, te-1/1/11 te-1/1/12, te-1/1/13, te-1/1/14, te-1/1/15, te-1/1/16 te-1/1/17, te-1/1/18, te-1/1/19, te-1/1/20, te-1/1/21 te-1/1/22, te-1/1/23, te-1/1/24, te-1/1/25, te-1/1/26 te-1/1/27, te-1/1/28, te-1/1/29, te-1/1/30, te-1/1/31 te-1/1/32, te-1/1/33, te-1/1/34, te-1/1/35, te-1/1/36 te-1/1/37, te-1/1/38, te-1/1/39, te-1/1/40, te-1/1/41 te-1/1/42, te-1/1/43, te-1/1/44, te-1/1/45, te-1/1/46 te-1/1/47, te-1/1/48 tagged 80 untagged te-1/1/2 tagged 81 untagged te-1/1/4 tagged 82 untagged tagged 83 untagged tagged 84 untagged tagged 85 untagged tagged admin@Xorplus# run show vlans routed-vlan VlanID Vlan Name Tag Interfaces Routed-interfaces ------ ------------------ -------- ------------ -------------------- 80 untagged te-1/1/2 rif-te2 81 untagged te-1/1/4 rif-te4
Example
- Configure reserved VLANs for the use of routed interfaces.
admin@Xorplus# set vlans reserved-vlan 800-900 admin@Xorplus# commit
Copyright © 2024 Pica8 Inc. All Rights Reserved.