194
Related commands
display ip-subnet-vlan interface
ip-subnet-vlan
port hybrid ip-subnet-vlan
ip-subnet-vlan
Use ip-subnet-vlan to associate a VLAN with the specified IP subnet or IP address.
Use
undo ip-subnet-vlan to disassociate a VLAN from the specified IP subnet or IP address.
Syntax
ip-subnet-vlan [ ip-subnet-index ] ip ip-address [ mask ]
undo ip-subnet-vlan { ip-subnet-index [ to ip-subnet-end ] | all }
Default
A VLAN is not associated with an IP subnet or IP address.
Views
VLAN view
Predefined user roles
network-admin
Parameters
ip-subnet-index: Specifies a beginning IP subnet index in the range of 0 to 65535. The value
can be configured by users. It can also be automatically numbered by the system based on the order
in which the IP subnets or IP addresses are associated with the VLAN.
ip ip-address [ mask ]: Specifies the source IP address or network address that is associated
with the VLAN. The
ip-address argument specifies the source IP address or network address in
dotted decimal notation. The
mask argument is the subnet mask of the source IP address or network
address, in dotted decimal notation with a default value of 255.255.255.0.
to ip-subnet-end: Specifies an end IP subnet index of an IP subnet index range, in the range of
0 to 65535. The value for the
ip-subnet-end argument must be greater than or equal to the
beginning IP subnet index.
all: Specifies all IP subnets or IP addresses that are associated with the VLAN.
Usage guidelines
The IP subnet or IP address cannot be a multicast network segment or a multicast address.
Examples
# Configure VLAN 3 as an IP subnet-based VLAN and associate it with the subnet 192.168.1.0/24.
<Sysname> system-view
[Sysname] vlan 3
[Sysname-vlan3] ip-subnet-vlan ip 192.168.1.0 255.255.255.0
Related commands
display protocol-vlan interface
display protocol-vlan vlan
port hybrid protocol-vlan