Configuration Guide VLAN Configuration
Ruijie(config-if)# switchport mode
access
Define the member type of the port in a VLAN
(L2 ACCESS port).
Ruijie(config-if)# switchport
access vlan vlan-id
Assign the port to the VLAN.
The following example adds Ethernet 1/10 to VLAN20 as an access port:
Ruijie# configure terminal
Ruijie(config)# interface fastethernet 1/10
Ruijie(config-if)# switchport mode access
Ruijie(config-if)# switchport access vlan 20
Ruijie(config-if)# end
The following example shows how to verify the configuration:
Ruijie(config)#show interfaces gigabitEthernet 3/1
switchport
Switchport is enabled
Mode is access port
Acsess vlan is 1,Native vlan is 1
Protected is disabled
Vlan lists is ALL
In the R2700 switching card, althought the access vlan can also
be configured on the trunk port, the access port configuration
does not take effect and the port remains in the trunk port. Only
the configuration of native vlan and allowed vlan list takes effect.
Configuring Access Permission of the MIB node dot1qVlanIndex in the
Dot1qVlanCurrentEntry Table
In global configuration mode, you can change the maximum access permission
of the MIB node dot1qVlanIndex in the Dot1qVlanCurrentEntry table.
Ruijie(config)#
dot1q-vlan-current-entry mib
dot1q-vlan-index max-access
mode read-only
Change the maximum access permission of the
MIB node dot1qVlanIndex in the
Dot1qVlanCurrentEntry table to read-only
mode. After this command is configured, the
MIB node dot1qVlanIndex supports read
operation through SNMP software.
To restore the maximum access permission of the MIB node dot1qVlanIndex to
the default ―no access‖ mode, simply enter the no dot1q-vlan-current-entry
mib dot1q-vlan-index max-access mode command.