The display ip-subnet-vlan vlan command displays information about IP subnets associated with VLANs.
Parameter |
Description |
Value |
---|---|---|
all |
Displays IP subnets associated with all VLANs. |
- |
vlan-id1 [ to vlan-id2 ] |
Displays IP subnets associated with specified VLANs.
|
|
Usage Scenario
After configuring IP subnet-based VLAN assignment, you can run the display ip-subnet-vlan vlan command to verify the configuration.
This command displays the VLAN ID, IP subnet index, IP subnet address, IP subnet mask, and 802.1p priority of the VLAN mapping an IP subnet.
When using the display ip-subnet-vlan vlan command, pay attention to the following points:
Precautions
If no VLAN is associated with any IP subnet by using the ip-subnet-vlan command, the display ip-subnet-vlan vlan command does not display any information.
# Display information about IP subnets associated with all VLANs.
<HUAWEI> display ip-subnet-vlan vlan all
----------------------------------------------------------------
Vlan Index IpAddress SubnetMask Priority
----------------------------------------------------------------
2 12 192.168.1.1 255.255.255.0 3
----------------------------------------------------------------
ip-subnet-vlan count: 1 total count: 1
Item |
Description |
---|---|
Vlan |
ID of an IP subnet-based VLAN. To specify the parameter, run the ip-subnet-vlan command. |
Index |
Index of an IP subnet. To specify the parameter, run the ip-subnet-vlan command. |
IpAddress |
IP subnet address. To specify the parameter, run the ip-subnet-vlan command. |
SubnetMask |
IP subnet mask. To specify the parameter, run the ip-subnet-vlan command. |
Priority |
802.1p priority of the VLAN associated with an IP address or subnet. To specify the parameter, run the ip-subnet-vlan command. |