< Home

display ip-subnet-vlan vlan

Function

The display ip-subnet-vlan vlan command displays information about IP subnets associated with VLANs.

Format

display ip-subnet-vlan vlan { all | vlan-id1 [ to vlan-id2 ] }

Parameters

Parameter

Description

Value

all

Displays IP subnets associated with all VLANs.

-

vlan-id1 [ to vlan-id2 ]

Displays IP subnets associated with specified VLANs.
  • vlan-id1 specifies the start VLAN ID.
  • to vlan-id2 specifies the end VLAN ID. The value of vlan-id2 must be greater than or equal to the value of vlan-id1. If to vlan-id2 is not specified, only the IP subnet associated with vlan-id1 is displayed.
  • The value of vlan-id1 is an integer that ranges from 1 to 4094.
  • The value of vlan-id2 is an integer that ranges from 1 to 4094.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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:

  • If all is specified, IP subnets associated with all VLANs are displayed.
  • If vlan vlan-id is specified, the IP subnet associated with the specified VLAN is displayed.
  • If vlan-id1 to vlan-id2 is specified, IP subnets associated with the specified VLANs are displayed.

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.

Example

# 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
Table 1 Description of the display ip-subnet-vlan vlan command output

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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >