640CHAPTER 40: PORT-BASED VLAN CONFIGURATION COMMANDS

Description Use the port access vlan command to add the current Access port to a specified VLAN.

Use the undo port access vlan command to add the current Access port to the default VLAN.

Configured in Ethernet interface view, the setting is effective on the current port only; configured in port group view, the setting is effective on all ports in the port group. Make sure that the VLAN identified by the vlan-idargument exists before issuing the port access vlan command.

Refer to “Link Aggregation Configuration Commands” on page 473 for information about port groups.

Example # Add Ethernet 1/1 to VLAN 3.

<Sysname> system-view [Sysname] vlan 3 [Sysname-vlan3] quit [Sysname] interface ethernet 1/0

[Sysname-Ethernet1/0] port access vlan 3

port hybrid pvid vlan

Syntax port hybrid pvid vlan vlan-id

undo port hybrid pvid

View Ethernet interface view, port group view

Parameter vlan-id : VLAN ID, in the range 1 to 4094.

Description Use the port hybrid pvid vlan command to configure the default VLAN ID of the Hybrid port.

Use the undo port hybrid pvid command to restore the default, VLAN 1.

Execution of the undo vlan command on a Hybrid port to remove the default VLAN does not affect the default VLAN configuration. That is to say, the non-existent VLAN can still be the default VLAN.

Configured in Ethernet interface view, the setting is effective on the current port only; configured in port group view, the setting is effective on all ports in the port group.

Refer to “Link Aggregation Configuration Commands” on page 473 for information about port groups.

The default VLAN ID of local Hybrid port must be consistent with that of the peer; otherwise, packets cannot be forwarded properly.

Related command: port link-type.

Page 640
Image 640
3Com MSR 30, MSR 50 manual Port hybrid pvid vlan, Syntax port hybrid pvid vlan vlan-id Undo port hybrid pvid