The following example shows how to set the native vlan of the trunk port Gigabitethernet 2/1
to 10.
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 trunk native vlan 10
DGS-3610(config-if)# end
Set the port-security. For more detailed information about port-security, please refer to Flow
c Control Based on Ports:
The following example shows how to enable port security of Gigabitethernet 2/1.
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 port-security
DGS-3610(config-if)# end
For configuring the speed rate, duplexe, and flow control of an interface, see the section of
Setting Speed, Duplexe, and Flow Control for Interfaces.
The following example shows how to set Gigabitethernet 2/1 to access port, its VLAN to 100,
its speed, duplexe, and flow control to auto-negotiation and enable port security.
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)# speed auto
DGS-3610(config-if)# duplex auto
DGS-3610(config-if)# flowcontrol auto
DGS-3610(config-if)# switchport port-security
DGS-3610(config-if)# end
6.2.8.1.2 Configuring Hybrid Port
You can configure the hybrid port by performing the following steps: