R3303-HP HSR6800 Routers Layer 2 - LAN Switching Command Reference

121
Examples
# Display the IP subnet-based VLAN information and IP subnet indexes for all VLANs.
<Sysname> display ip-subnet-vlan vlan all
VLAN ID: 3
Subnet Index IP Address Subnet Mask
====================================================
0 192.168.1.0 255.255.255.0
Table 28 Command output
Field Descri
p
tion
Subnet Index IP subnet index.
IP Address IP address of the subnet (either an IP address or a network address).
Subnet Mask Mask of the IP subnet.
Related commands
display vlan
ip-subnet-vlan
Use ip-subnet-vlan to associate the VLAN with a specified IP subnet or IP address.
Use undo ip-subnet-vlan to remove the association.
Syntax
ip-subnet-vlan [ ip-subnet-index ] ip ip-address [ mask ]
undo ip-subnet-vlan { ip-subnet-index [ to ip-subnet-end ] | all }
Views
VLAN view
Default command level
2: System level
Parameters
ip-subnet-index: Specifies a beginning IP subnet index in the range of 0 to 11. The value can be
configured by users, or 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 based on which the
subnet-based VLANs are classified 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: Specifies an IP subnet index range.
ip-subnet-end: Specifies an end IP subnet index in the range of 0 to 11. The value must be greater than
or equal to the beginning IP subnet index.
all: Removes all associations between VLANs and IP subnets or IP addresses.