Configuration Guide
Interface Configuration
Configuring Switch Ports
Configuring Access/Trunk Port
This section is devoted to the setting of working modes (access/trunk port) of switch port and
the setting in each mode.
To set the related attributes of a switch port, use the
switchport
command or other commands
in the interface configuration mode:
Command
Function
Ruijie(config-if)#
switchport mode
{
access
|
trunk
}
Set the operation mode.
The following example shows how to set the operation mode of Gigabitethernet 1/2 to access
port.
Ruijie#
configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Ruijie(config)#
interface gigabitethernet
1/2
Ruijie(config-if)#
switchport mode
access
Ruijie(config-if)#
end
Command
Function
Ruijie(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 be 100
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)#
end
Set the native VLAN of the trunk port.
Command
Function
Ruijie(config-if)#
switchport trunk native vlan
vlan-id
Set the Native VLAN of the trunk
port.
The following example shows how to set the native VLAN of the trunk port Gigabitethernet 2/1
to be 10.
Ruijie#
configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Ruijie(config)#
interface gigabitethernet
2/1
Ruijie(config-if)#
switchport trunk native vlan
10
Ruijie(config-if)#
end
Set port security. For more information about port security, refer to
Port-based Flow Control
:
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 ...