Configuration Guide
Interface Configuration
Command
Function
Ruijie(config-if)#
switchport port-security
Set port security.
The following example shows how to enable port security on Gigabitethernet 2/1.
Ruijie#
configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Ruijie(config)#
interface
gigabitethernet
2/1
Ruijie(config-if)#
switchport port-security
Ruijie(config-if)#
end
For more information on configuring the speed, duplexing, and flow control of an interface, see
the section of
Setting Speed, Duplexing, and Flow Control foran Interface.
The following example shows how to set Gigabitethernet 2/1 to access port, its VLAN to 100,
its speed, duplexing, and flow control to self-negotiation and enable port security.
Ruijie#
configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Ruijie (config)#
interface
gigabitethernet
2/1
Ruijie (config-if)#
switchport access vlan
100
Ruijie (config-if)#
speed auto
Ruijie (config-if)#
duplex auto
Ruijie (config-if)#
flowcontrol auto
Ruijie (config-if)#
switchport
port-security
Ruijie (config-if)#
end
Configuring Hybrid Port
You can configure the hybrid port by performing the following steps:
Command
Description
configure terminal
Enter configuration mode
interface <
interface
>
Enter the interface configuration
mode.
Megabit, Gigabit, 10 Gigabit
switchport mode hybrid
Configure the port as a hybrid
port.
no switchport mode
Delete the port mode.
switchport hybrid native
vlan
id
Set the default VLAN for the
hybrid port.
switchport hybrid allowed vlan
[[
add
] [
tagged | untaged
]]
|remove
]
vlist
Set the output rule for the port.
Ruijie#
configure terminal
Ruijie(config)#
interface g
0/1
Ruijie(config-if)#
switchport mode hybrid
Ruijie(config-if)#
switchport hybrid native vlan
3
Ruijie(config-if)#
switchport hybrid allowed vlan untagged
20-30
Ruijie(config-if)#
end
Ruijie#
show running interface g
0/1
Summary of Contents for RG-S2900G-E Series
Page 1: ...RG S2900G E Series Switch RGOS Configuration Guide Release 10 4 2b12 p1 ...
Page 91: ...Configuration Guide Configuring PoE Configuration ...
Page 133: ...Configuration Guide EEE Configuration ...
Page 319: ...Configuration Guide QinQ Configuration ...
Page 408: ......
Page 409: ...IP Routing Configuration 1 Static Route Configuration ...
Page 412: ......
Page 413: ...Multicast Configuration 1 IGMP Snooping Configuration 2 MLD Snooping Configuration ...
Page 757: ......
Page 758: ...ACL QoS Configuration 1 Access Control List Configuration 2 QoS Configuration ...
Page 801: ...Reliability Configuration 1 RLDP Configuration 2 TPP Configuration 3 SEM Configuration ...
Page 901: ...Configuration Guide ERSPAN Configuration ...
Page 902: ...Web based Configuration 1 Web based Configuration ...