How can I configure reserved VLANs on a CE switch

9

Reserved VLANs are the bearer channels for the internal control plane of switches and user service data of some features. By default, VLANs 4064 to 4094 are reserved.
You can adjust the range of reserved VLANs by running the vlan reserved vlan-id command in the system view. When vlan-id is configured, the VLANs from vlan-id to vlan-id + 30 are set to reserved VLANs.
For example, set the reserved VLAN ID range to 1000 to 1030.
system-view
[~HUAWEI] vlan reserved 1000
[*HUAWEI] commit //After the configuration is committed, restart the switch to validate the configuration.
Description:
VLANs in use cannot be configured as reserved VLANs.
You can only adjust the range of reserved VLANs, but cannot delete them.
If reserved VLANs conflict with common VLANs, the range of reserved VLANs cannot be used to create common VLANs.
The reserved VLANs will not take effect until the switch restarts. The original reserved VLANs are used as common VLANs.

Other related questions:
How can I configure VLAN mirroring on a CE switch
Perform the following operations to configure VLAN mirroring.
  1. Run the system-view command to enter the system view.
  2. Run the observe-port [ observe-port-index ] interface interface-type interface-number command to configure a local observing port.
    To configure multiple observing ports, run the preceding command multiple times.
  3. Run the vlan vlan-id command to enter the VLAN view.
  4. Run the mirroring observe-port observe-port-index inbound command to copy traffic of the VLAN to the specified observing port.
    To copy traffic to multiple observing ports, run this command multiple times.
  5. Run the commit command to commit the configuration.


For example, you can run the following command to copy traffic of VLAN 10 to the observing port 10GE1/0/2.
<HUAWEI> system-view
[~HUAWEI] observe-port 1 interface 10ge 1/0/2
[*HUAWEI] vlan 10
[*HUAWEI-vlan10] mirroring observe-port 1 inbound
[*HUAWEI-vlan10] commit

How can I configure the default VLAN ID of an interface on a CE switch
The default VLAN ID of interfaces is VLAN 1. # Set the default VLAN of an access interface to VLAN 3.
system-view
[~HUAWEI] vlan batch 3
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] port link-type access
[*HUAWEI-10GE1/0/1] port default vlan 3
[*HUAWEI-10GE1/0/1] commit
# Set the default VLAN of a trunk interface to VLAN 4.
system-view
[~HUAWEI] vlan batch 4
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] port link-type trunk
[*HUAWEI-10GE1/0/1] port trunk pvid vlan 4
[*HUAWEI-10GE1/0/1] commit
# Set the default VLAN of a hybrid interface to VLAN 5.
system-view 
[~HUAWEI] vlan batch 5
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] port link-type hybrid
[*HUAWEI-10GE1/0/1] port hybrid pvid vlan 5
[*HUAWEI-10GE1/0/1] commit

How can I enable the traffic statistics function in a VLAN on CE switches
Run the statistics enable command in the VLAN or VLAN-Range view to enable the traffic statistics function in a VLAN. By default, the traffic statistics function in a VLAN is disabled.
# Enable the traffic statistics function in VLAN 10.
system-view
[~HUAWEI] vlan 10
[*HUAWEI-vlan10] statistics enable
[*HUAWEI-vlan10] commit
# Enable the traffic statistics function in VLANs 10 to 20.
system-view
[~HUAWEI] vlan range 10 to 20
[*HUAWEI-vlan-range] statistics enable
[*HUAWEI-vlan-range] commit

How to configure reserved IP addresses on S series switches
For S series switches excluding the S1700, some IP addresses of the network segment of an IP address pool may be occupied by servers or other hosts during network planning. Some clients have special requirements and can only be configured with some IP addresses; or to reserve some IP addresses that are not assigned dynamically. In this scenario, exclude these IP addresses in the IP address pool to prevent IP address conflicts caused by dynamically allocation of a DHCP server. Assume that IP addresses from 10.10.10.11 to 10.10.10.20 cannot be dynamically allocated. The configuration on S series switches excluding the S1700 is as follows: - Interface-based [HUAWEI] dhcp enable [HUAWEI] interface vlanif 100 //Enter the view of the interface connected to the DHCP client. [HUAWEI-Vlanif100] ip address 10.10.10.10 24 [HUAWEI-Vlanif100] dhcp select interface [HUAWEI-Vlanif100] dhcp server excluded-ip-address 10.10.10.11 10.10.10.20 - Global [HUAWEI] dhcp enable [HUAWEI] interface vlanif 100 //Enter the view of the interface connected to the DHCP client. [HUAWEI-Vlanif100] ip address 10.10.10.10 24 [HUAWEI-Vlanif100] dhcp select global [HUAWEI-Vlanif100] quit [HUAWEI] ip pool global1 [HUAWEI-ip-pool-global1] network 10.10.10.0 mask 24 [HUAWEI-ip-pool-global1] excluded-ip-address 10.10.10.11 10.10.10.20

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top