Ethernet Port Configuration Commands
65
Example
To add the trunk port Ethernet1/0/1 to VLAN 2, VLAN 4 and all VLANs in the range
50-100, enter the following:
<SW5500>system-view
System View: return to User View with Ctrl+Z.
[SW5500]interface Gigabitethernet 1/0/1
[SW5500-GigabitEthernet1/0/1]port trunk permit vlan 2 4 50 to 100
port trunk pvid vlan
Syntax
port trunk pvid vlan
vlan_id
undo port trunk pvid
View
Ethernet Port View
Parameter
Enter a VLAN ID in the range 2 to 4094, as defined in IEEE802.1Q. This
vlan_id:
is the VLAN that you want to be the default VLAN for a trunk port.
The default is 1.
Description
Use the
command to configure the default VLAN ID for a
port trunk pvid vlan
trunk port. Use the
command to restore the default VLAN
undo port trunk pvid
ID for a trunk port.
The default VLAN ID of local trunk port should be consistent with that of the peer
one, otherwise packets cannot be properly transmitted.
Related command:
.
port link-type
Example
To configure the trunk port Ethernet1/0/1 to the default VLAN of 100, enter the
following:
<SW5500>system-view
System View: return to User View with Ctrl+Z.
[SW5500]interface Gigabitethernet 1/0/1
[SW5500-GigabitEthernet1/0/1]port trunk pvid vlan 100
reset counters interface
Syntax
reset counters interface [
interface_type
|
interface_type
interface_num
|
interface_name
]
View
User view