Protocol VLAN Command List. D-Link DGS-3000-24TC, DGS-3000 series
Advertentie
Advertentie
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
Chapter 60 Protocol VLAN Command
List
create dot1v_protocol_group group_id <id> {group_name <name 32>}
config dot1v_protocol_group [group_id <id> | group_name <name 32>] [add protocol
[ethernet_2 | ieee802.3_snap | ieee802.3_llc] <protocol_value> | delete protocol [ethernet_2 | ieee802.3_snap | ieee802.3_llc] <protocol_value>]
delete dot1v_protocol_group [group_id <id> | group_name <name 32> | all]
show dot1v_protocol_group {[group_id <id> | group_name <name 32>]}
config port dot1v ports [<portlist> | all] [add protocol_group [group_id <id> | group_name <name
32>] [vlan <vlan_name 32> | vlanid <id>] {priority <value 0-7>} | delete protocol_group
[group_id <id> | all]]
show port dot1v {ports <portlist>}
60-1 create dot1v_protocol_group
Description
This command is used to create a protocol group for protocol VLAN function.
Format create dot1v_protocol_group group_id < id> {group_name <name 32>}
Parameters
group_id - The ID of protocol group which is used to identify a set of protocols
<id> - Enter the group ID used here.
group_name - (Optional) The name of the protocol group. The maximum length is 32 chars.
<name 32> - Enter the group name here. This name can be up to 32 characters long.
Restrictions
Only Administrators, Operators and Power-Users can issue this command.
Example
To create a protocol group:
DGS-3000-26TC:admin#create dot1v_protocol_group group_id 10 group_name
General_Group
Command: create dot1v_protocol_group group_id 10 group_name General_Group
Success.
DGS-3000-26TC:admin#
537
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
60-2 config dot1v_protocol_group add protocol
Description
This command is used to add a protocol to a protocol group. The selection of a protocol can be a pre-defined protocol type or a user defined protocol.
Format config dot1v_protocol_group [group_id <id> | group_name <name 32>] [add protocol
[ethernet_2 | ieee802.3_snap | ieee802.3_llc] <protocol_value> | delete protocol [ethernet_2 | ieee802.3_snap | ieee802.3_llc] <protocol_value>]
Parameters
group_id - The ID of the protocol group which is used to identify a set of protocols.
<id> - Enter the group ID used here.
group_name - The name of the protocol group.
<name 32> - Enter the group name here. This name can be up to 32 characters long.
add - Specifies that the protocol will be added to the specified group.
delete - Specifies that the protocol will be removed from the specified group.
protocol - The protocol value is used to identify a protocol of the frame type specified.
ethernet_2 - Specifies that the Ethernet 2 protocol will be used.
ieee802.3_snap - Specifies that the IEEE 802.3 Snap protocol will be used.
ieee802.3_llc - Specifies that the IEEE 802.3 LLC protocol will be used.
<protocol_value> - Enter the protocol value here.
Restrictions
Only Administrators, Operators and Power-Users can issue this command.
Example
To add a protocol ipv6 to protocol group 10:
DGS-3000-26TC:admin#config dot1v_protocol_group group_id 10 add protocol ethernet_2 86dd
Command: config dot1v_protocol_group group_id 10 add protocol ethernet_2 86DD
Success.
DGS-3000-26TC:admin#
60-3 delete dot1v_protocol_group
Description
This command is used to delete a protocol group
Format delete dot1v_protocol_group [group_id <id> | group_name <name 32> | all]
538
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
Parameters
group_id - Specifies the group ID to be deleted.
<id> - Enter the group ID used here.
group_name - Specifies the name of the group to be deleted.
<name 32> - Enter the group name here. This name can be up to 32 characters long.
all - Specifies that all the protocol group will be deleted.
Restrictions
Only Administrators, Operators and Power-Users can issue this command.
Example
To delete protocol group 100:
DGS-3000-26TC:admin#delete dot1v_protocol_group group_id 100
Command: delete dot1v_protocol_group group_id 100
Success.
DGS-3000-26TC:admin#
60-4 show dot1v_protocol_group
Description
This command is used to display the protocols defined in a protocol group.
Format show dot1v_protocol_group {[group_id <id> | group_name <name 32>]}
Parameters
group_id - (Optional) Specifies the ID of the group to be displayed.
<id> - Enter the group ID used here.
group_name - (Optional) Specifies the name of the protocol group to be displayed.
<name 32> - Enter the group name here. This name can be up to 32 characters long.
If no group ID is specified, all the configured protocol groups will be displayed.
Restrictions
None.
Example
To display the protocol group ID 10:
539
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
DGS-3000-26TC:admin#show dot1v_protocol_group group_id 10
Command: show dot1v_protocol_group group_id 10
Protocol Group ID Protocol Group Name Frame Type Protocol Value
----------------- -------------------------------- -------------- --------------
10 General_Group EthernetII 86DD
Total Entries: 1
DGS-3000-26TC:admin#
60-5 config port dot1v
Description
This command is used to assign the VLAN for untagged packets ingress from the port list based on the protocol group configured. This assignment can be removed by using the delete protocol_group option.
When priority is not specified in the command, the port default prority will be the priority for those untagged packets classified by the protocol vlan.
Format config port dot1v ports [<portlist> | all] [add protocol_group [group_id <id> | group_name
<name 32>] [vlan <vlan_name 32> | vlanid <id>] {priority <value 0-7>} | delete protocol_group [group_id <id> | all]]
Parameters
<portlist> - Enter a list of ports used for the configuration here.
all - Specifies that all the ports will be used for this configuration.
add - Specifies that the group specified will be added.
protocol_group - Specifies that parameters for the group will follow.
group_id - Specifies the group ID of the protocol group.
<id> - Enter the group ID used here.
group_name - Specifies the name of the protocol group.
<name 32> - Enter the name of the group used here. This name can be up to 32 characters long.
vlan - The VLAN that is to be associated with this protocol group on this port.
<vlan_name 32> - Enter the name of the VLAN here. This name can be up to 32 characters long.
vlanid - Specifies the VLAN ID.
<id> - Enter the VLAN ID used here.
priority - (Optional) Specifies the priority to be associated with the packet which has been classified to the specified VLAN by the protocol.
<value 0-7> - Enter the priority value here. This value must be between 0 and 7.
delete - Specifies that the group specified will be deleted.
protocol_group - Specifies that parameters for the group will follow.
group_id - Specifies the group ID of the protocol group.
<id> - Enter the group ID used here.
all - Specifies that all the groups will be deleted.
540
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
Restrictions
Only Administrators, Operators and Power-Users can issue this command.
Example
The example is to assign VLAN marketing-1 for untaged ipv6 packet ingress from port 3.
To configure the group ID 10 on port 3 to be associated with VLAN marketing-1:
DGS-3000-26TC:admin#config port dot1v ports 3 add protocol_group group_id 10 vlan marketing-1
Command: config port dot1v ports 3 add protocol_group group_id 10 vlan marketing-1
Success.
DGS-3000-26TC:admin#
60-6 show port dot1v
Description
This command is used to display the VLAN to be associated with untagged packet ingressed from a port based on the protocol group.
Format show port dot1v {ports <portlist>}
Parameters
ports - (Optional) Specifies a range of ports to be displayed.
<portlist> - Enter a list of ports used for the configuration here.
If no port is specified, information for all ports will be displayed.
Restrictions
None.
Example
The example display the protocol VLAN information for ports 1:
541
DGS-3000 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
DGS-3000-26TC:admin#show port dot1v ports 1
Command: show port dot1v ports 1
Port: 1
Protocol Group ID VLAN Name Protocol Priority
------------------- --------------------------------- -----------------
1 default -
2 VLAN2 -
3 VLAN3 -
4 VLAN4 -
Total Entries: 4
DGS-3000-26TC:admin#
542
Downloaden
Advertentie