Command Reference Protocol VLAN Commands
6 Protocol VLAN Commands
6.1 protocol-vlan ipv4 (in interface configuration mode)
Use this command to enable subnet VLAN. Use the no form of this command to restore the default
setting.
This function is disabled by default.
Interface configuration mode.
An interface must work in Trunk/Hybrid mode.
The following example enables the subnet VLAN.
Ruijie(config)# interface GigabitEthernet 0/1
Ruijie(config-if-GigabitEthernet 0/1)# switchport
Ruijie(config-if-GigabitEthernet 0/1)# switchport mode hybrid
Ruijie(config-if-GigabitEthernet 0/1)# protocol-vlan ipv4
6.2 protocol-vlan ipv4 (in global configuration mode)
Use this command to configure VLAN for the specified subnet.
protocol-vlan ipv4 addr mask addr vlan id
Use this command to remove VLAN configuration for the specified subnet.
no protocol-vlan ipv4 addr mask addr
Use this command to remove VLAN configuration for all subnets.