D-Link DGS-3600 Switch User Manual


 
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
652
87
SUBNET VLAN COMMANDS
The Subnet VLAN commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in
the following table.
Command Parameters
create subnet_vlan [network <network_address> | ipv6network <ipv6networkaddr>] [vlan
<vlan_name 32> | vlanid <vlanid 1-4094> ] {priority <value 0-7>}
delete subnet_vlan [network <network_address> | ipv6network <ipv6networkaddr>] | vlan
<vlan_name 32> | vlanid <vidlist>| all]
show subnet_vlan {[network<network_address> | ipv6network <ipv6networkaddr>] | vlan
<vlan_name 32> | vlanid <vidlist>]}
config vlan_precedence ports <portlist> [mac_based_vlan | subnet_vlan]
show vlan_precedence ports {<portlist>}
Each command is listed, in detail, in the following sections.
create subnet_vlan
Purpose Use this command to create a subnet VLAN entry.
Syntax
create subnet_vlan [network <network_address> | ipv6network <ipv6networkaddr>]
[vlan <vlan_name 32> | vlanid <vlanid 1-4094> ] {priority <value 0-7>}
Description The user can use this command to create a subnet VLAN entry.
A subnet VLAN entry is an IP subnet-based VLAN classification rule. If an untagged or
priority-tagged IP packet is received on a port, its source IP address will be used to match the
subnet VLAN entries. If the source IP is in the subnet of an entry, the packet will be classified
to the VLANdefined for this subnet.
Parameters
network - To specify an IPv4 network address. The format is ipaddress/prefix length.
ipv6network - To specify an IPv6 network address. The format is ipaddress/prefix length.The
prefix length of IPv6 network address shall not be greater than 64.
vlan - The vlan to be associated with the subnet. You can specify a vlan name or vlan ID. The
vlan must be existed static vlan.
priority - The priority to be associated with the subnet. Its range is 0-7.
Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
This example shows how to create a subnet VLAN entry:
DGS-3627:admin# create subnet_vlan network 172.168.1.0/24 vlan v2 priority 2
Command: create subnet_vlan network 172.168.1.0/24 vlan v2 priority 2
Success.
DGS-3627:admin#