Chapter 6 Configuring Interfaces DGS-3610 Series Configuration Guide
6.2.8.1 Configuring Switch Port
6.2.8.1.1 Configuring Access/Trunk Port
This section is described to the operation modes(access/trunk port) of setting the Switchport
of and the related configuration in each mode.
To set the attributes of a Switch Port, use switchport or other commands in interface
configuration mode:
DGS-3610(config-if)# switchport mode {access
| trunk }
Set the operation mode of the interface.
The following example shows how to set the operation mode of Gigabitethernet 1/2 interface
to access port.
DGS-3610# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
DGS-3610(config)# interface gigabitethernet 1/2
DGS-3610(config-if)# switchport mode access
DGS-3610(config-if)# end
DGS-3610(config-if)# switchport access vlan
vlan-id
Set the VLAN to which the access port belongs.
The following example shows how to configure the vlan to which the access port
gigabitethernet 2/1 to 100
DGS-3610# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
DGS-3610(config)# interface gigabitethernet 2/1
DGS-3610(config-if)# switchport access vlan 100
DGS-3610(config-if)# end
Set the native VLAN of the trunk port.
DGS-3610(config-if)# switchport trunk native
vlan vlan-id
Set the NATIVE VLAN of the trunk port.