Forgot password?
 Register now

Welcome to use this form to feedback your problems with Ruijie Community

The category of your feedback

Your Feedback

Your Email address (optional):

How to configure VLAN Mapping on Ruijie Switch? Reply

GTAC-Sophia

Level 5

Ruijie Staff

How to configure VLAN Mapping on Ruijie Switch?
50 0 2024-11-15 11:20:02
Original
Introduction:

VLAN Mapping Replaces the private network VLAN Tagin user packets with the public network VLAN Tag so that user packets can be transmitted according to the network plan of the public network. After packets are sent back to the user's private network, the VLAN Tag is restored to the original VLAN Tag based on the mapping relationship, so that the packets canreach the destination correctly.
VLAN mapping supports the following mapping relationships:
One-to-one VLAN mapping: Changes the VID of apacket Tag to the VID of another specified Tag.
Multi-to-one VLAN mapping: Changes the VID of theTag of packets from multiple vlans to the VID of the same Tag.
Topology:

Example for One-to-one VLAN mapping





Configuration steps:

Confgure on home gateway
1. Create original vlans for different services in the home gateway.

Ruijie#configure terminal

Enter configuration commands, one per line. Endwith CNTL/Z.

Ruijie(config)#vlan range 10-12

Ruijie(config-vlan-range)#exit


2. Configure the port attributes for connecting PC, IPTV, and VOIP phones. Assume that the ports are Gi 0/0/2, Gi 0/0/3, and Gi 0/0/4 respectively.

Ruijie(config)#interface gigabitEthernet 0/2

Ruijie(config-if-GigabitEthernet 0/2)#switchportaccess vlan 10

Ruijie(config-if-GigabitEthernet 0/2)#exit

Ruijie(config)#interface gigabitEthernet 0/3

Ruijie(config-if-GigabitEthernet 0/3)#switchportaccess vlan 11

Ruijie(config-if-GigabitEthernet 0/3)#exit

Ruijie(config)#interface gigabitEthernet 0/4

Ruijie(config-if-GigabitEthernet 0/4)#switchportaccess vlan 12

Ruijie(config-if-GigabitEthernet 0/4)#exit


3. Configure the Uplink port as the uplink port

Ruijie(config)# interface gigabitEthernet 0/1

Ruijie(config-if-GigabitEthernet 0/1)#switchportmode uplink


Configure the switch to perform 1:1VLAN mapping of packets on the switch 1:
1. create original vlans and mapped vlans for different services in the home gateway.
Ruijie#configure terminal Enter configuration commands, one per line. End with CNTL/Z.

Ruijie(config)#vlan range 10-12

Ruijie(config-vlan-range)#exit

Ruijie(config)#vlan range 100-102

Ruijie(config-vlan-range)#exit

Ruijie(config)#vlan range 200-202

Ruijie(config-vlan-range)#exit


2. configure a VLAN mapping policy in the 1:1 input/output direction on the downlink port ofthe home gateway.

Ruijie(config)#interface gigabitEthernet 0/20/2

Ruijie(config-if-GigabitEthernet 0/2)#switchportmode uplink

Ruijie(config-if-GigabitEthernet0/2)#vlan-mapping-in vlan 10 remark 100

Ruijie(config-if-GigabitEthernet0/2)#vlan-mapping-in vlan 11 remark 101

Ruijie(config-if-GigabitEthernet0/2)#vlan-mapping-in vlan 12 remark 102

Ruijie(config-if-GigabitEthernet 0/2)#vlan-mapping-outvlan 100 remark 10

Ruijie(config-if-GigabitEthernet0/2)#vlan-mapping-out vlan 101 remark 11

Ruijie(config-if-GigabitEthernet0/2)#vlan-mapping-out vlan 102 remark 12


3. Configure a 1:1 VLAN mapping policy for the downlink port on home gateway 1.

Ruijie(config)#interface gigabitEthernet 0/3

Ruijie(config-if-GigabitEthernet 0/3)#switchportmode uplink

Ruijie(config-if-GigabitEthernet0/3)#vlan-mapping-in vlan 10 remark 200

Ruijie(config-if-GigabitEthernet0/3)#vlan-mapping-in vlan 11 remark 201

Ruijie(config-if-GigabitEthernet0/3)#vlan-mapping-in vlan 12 remark 202

Ruijie(config-if-GigabitEthernet0/3)#vlan-mapping-out vlan 200 remark 10

Ruijie(config-if-GigabitEthernet0/3)#vlan-mapping-out vlan 201 remark 11

Ruijie(config-if-GigabitEthernet0/3)#vlan-mapping-out vlan 202 remark 12


4. Configure the Uplink port as the uplink port

Ruijie(config)# interface gigabitEthernet 0/1

Ruijie(config-if-GigabitEthernet 0/1)#switchportmode uplink


verification:

Command check on switch 1:
Ruijie#show interfaces vlan-mapping



RG-CS83 Series

Configuration Data Center Switch
There are no replies.
Related Posts
Product Model

Share this topic to

Cancel

This site contains user submitted content, comments and opinions and is for informational purposes only. Ruijie may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic forum and Ruijie can therefore provide no guarantee as to the efficacy of any proposed solutions on the community forums. Ruijie disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Ruijie Community Terms of Use.

More ways to get help: Visit Support Videos, call us via Service Hotline, Facebook or Live Chat.

©2000-2023 Ruijie Networks Co,Ltd