display ip-subnet-vlan interface

Use display ip-subnet-vlan interface to display IP subnet-based VLANs that are associated with the specified ports.

Syntax

display ip-subnet-vlan interface { interface-type interface-number1 [ to interface-type interface-number2 ] | all }

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

interface-type interface-number1: Specifies an interface by its type and number.

interface-type interface-number1 to interface-type interface-number2: Specifies an interface range.

all: Displays information about IP subnet-based VLANs that are associated with all ports.

Examples

# Display IP subnet-based VLANs on Ten-GigabitEthernet 1/0/1.

<Sysname> display ip-subnet-vlan interface ten-gigabitethernet1/0/1
 Interface: Ten-GigabitEthernet1/0/1
  VLAN ID   Subnet index    IP address       Subnet mask       Status
  3         0               192.168.1.0      255.255.255.0     Active
  4         N/A             N/A              N/A               Inactive
  4094      65535           172.16.1.1       255.255.0.0       Inactive

Table 44: Command output

Field

Description

VLAN ID

ID of the IP subnet-based VLAN.

Subnet index

Index of the IP subnet.

If no IP subnet-based VLAN is configured, this field displays N/A.

IP address

IP address of the subnet. It can be an IP address or a subnet address.

If no IP subnet address is configured for the VLAN, this field displays N/A.

Subnet mask

Mask of the IP subnet.

If no subnet mask is configured for the VLAN, this field displays N/A.

Status

Whether the IP subnet-based VLAN has taken effect on the port:

  • Active—The IP subnet-based VLAN has taken effect.

  • Inactive—The IP subnet-based VLAN has not taken effect. For example, this field displays Inactive in one of the following conditions:

    • The configuration of the IP subnet-based VLAN is not complete.

    • The port does not allow the IP subnet-based VLAN.

Related commands

display ip-subnet-vlan vlan

ip-subnet-vlan

port hybrid ip-subnet-vlan