R3102-R3103-HP 6600/HSR6600 Routers Layer 2 - LAN Switching Command Reference

118
IP subnet-based VLAN configuration commands
display ip-subnet-vlan interface
Use display ip-subnet-vlan interface to display IP subnet-based VLANs and IP subnet indexes on the
specified ports.
Syntax
display ip-subnet-vlan interface { interface-type interface-number1 [ to interface-type interface-number2 ]
| all } [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
2: System level
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 IP subnet information about all ports with IP subnet-based VLAN configured.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display IP subnet-based VLANs and IP subnet indexes on GigabitEthernet 4/0/1.
<Sysname> system-view
[Sysname] display ip-subnet-vlan interface GigabitEthernet 4/0/1
Interface: GigabitEthernet4/0/1
VLAN ID Subnet-Index IP ADDRESS NET MASK
=======================================================
3 0 192.168.1.0 255.255.255.0
Table 27 Command output
Field Descri
p
tion
Subnet-Index Index of the IP subnet.
IP ADDRESS IP address of the subnet (either it can be an IP address or a network address.)
NET MASK Mask of the IP subnet.