EasyManua.ls Logo

Ruijie RG-S2900G-E Series - Configuring Vlan Mapping

Ruijie RG-S2900G-E Series
943 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Configuration Guide QinQ Configuration
Configuring VLAN Mapping
Configuring One-to-one VLAN Mapping
On Access, Trunk, Hybrid or Uplink ports, execute the following commands to
configure one-to-one VLAN mapping. For detailed commands, please see the
Command Reference.
Follow these steps:
Command
Description
configure terminal
Enter configuration mode.
interface intf-id
Enter interface configuration mode.
switchport mode port-type
Configure the port as an Access, Trunk,
Uplink or Hybrid port.
vlan-mapping-in vlan cvlan
remark svlan
Configure one-to-one VLAN mapping in the
ingress direction. This command changes
the Customer VLAN ID of the ingress
packet to the specified Server VLAN ID.
no vlan-mapping-in vlan cvlan
remark svlan
Cancel one-to-one VLAN mapping in the
ingress direction.
vlan-mapping-out vlan svlan
remark
c
vlan
Configure one-to-one VLAN mapping in the
egress direction. This command changes
the Server VLAN ID of the egress packet
back to the specified Customer VLAN ID.
no vlan-mapping-out vlan svlan
remark
c
vlan
Cancel one-to-one VLAN mapping in the
egress direction.
end
Exit interface configuration mode.
show interface[ intf-id ]
vlan-mapping
View the configuration.
The following example demonstrates how to change the VID in the tag of the
ingress packet back to 4 before forwarding it.
Ruijie(config)# interface gigabitEthernet 0/1
Ruijie(config-if)# switchport mode trunk
Ruijie(config-if)# vlan-mapping-in vlan 3 remark 4
Ruijie(config-if)# vlan-mapping-out vlan 4 remark 3
Ruijie(config-if)# end
Configuring Many-to-one VLAN Mapping
On Access, Trunk, Hybrid or Uplink ports, execute the following commands to
configure many-to-one VLAN mapping. For detailed commands, please see the
Command Reference.

Table of Contents

Related product manuals