208
192.168.1.165 255.255.255.0
2
202.200.121.21 255.255.0.0
2
10.0.0.1 255.248.0.0
5
6.5.2.2.10 show subnet-vlan interface
Command: show subnet-vlan interface
Function:
Display the port at IP-subnet-based VLAN
Parameter:
None
Command Mode:
Admin Mode
Usage Guide:
Display the port at IP-subnet-based VLAN
Example:
Display the port currently at IP-subnet-based VLAN
Switch#show subnet-vlan interface
Ethernet1/1 Ethernet1/2
Ethernet1/3 Ethernet1/4
6.5.2.2.11 subnet-vlan
Command:subnet-vlan ip-address <ipv4-addrss> mask <subnet-mask> vlan
<vlan-id> priority <priority-id>
no subnet-vlan {ip-address <ipv4-addrss> mask <subnet-mask>|all}
Function:
Add a correspondence between the IP subnet and the VLAN, namely add
specified IP subnet into specified VLAN; the “no" form of this command deletes all/the
correspondence.
Parameter:
ipv4-address is the IPv4 address shown in dotted decimal notation; the valid
range of each section is 0~255;subnet-mask is the subnet mask code shown in dotted
decimal notation; the valid range of each section is 0~255;priority-id is the priority applied
in the VLAN tag with a valid range of 0~7;vlan-id is the VLAN ID with a valid range of
1~4094;all indicates all the subnets.
Command Mode:
Global Mode
Default:
No IP subnet joined the VLAN by default
Usage Guide:
This command is used for adding specified IP subnet to specified VLAN.
When packet without VLAN label and from the specified IP subnet enters through the
switch port, it will be matched with specified VLAN id and enters specified VLAN. These
packets will always come to the same VLAN no matter through which port did they enter.
This command will not interfere with VLAN labeled data packets.
Example:
Add the network equipment with IP subnet of 192.168.1.0/24 to VLAN 300.
Switch#config
Switch(config)#subnet-vlan ip-address 192.168.1.1 mask 255.255.255.0 vlan 300 priority
0