212Tasks at a glance RemarksConfiguring many-to-one VLAN mapping:• Configuring many-to-one VLAN mapping in anetwork with dynamic IP address assignment• Configuring many-to-one VLAN mapping in anetwork with static IP address assignmentConfigure many-to-one VLAN mapping on the campusswitch as shown in Figure 55.Complete one of the tasks based on the IP addressassignment method.Configuring one-to-two VLAN mappingConfigure one-to-two VLAN mapping on PE 1 and PE4, through which traffic from customer networks enterthe service provider networks, as shown in Figure 56.Configuring two-to-two VLAN mapping Configure two-to-two VLAN mapping on PE 3, edgedevice of the SP 2 network, as shown in Figure 56.Configuring one-to-one VLAN mappingConfigure one-to-one VLAN mapping on the customer-side ports of wiring-closet switches (see Figure 55)to isolate traffic of the same service type from different homes.Before configuring one-to-one VLAN mapping, create the original VLAN and the translated VLAN.To configure one-to-one VLAN mapping:Step Command Remarks1. Enter system view. system-view N/A2. Enter Layer 2 Ethernetinterface view or Layer 2aggregate interface view.• Enter Layer 2 Ethernet interfaceview:interface interface-typeinterface-number• Enter Layer 2 aggregate interfaceview:interface bridge-aggregationinterface-numberN/A3. Set the link type of the port.• Configure the port as a trunk port:port link-type trunk• Configure the port as a hybridport:port link-type hybridBy default, the link type of aport is access.4. Assign the port to the originalVLANs and the translatedVLANs.• port trunk permit vlan vlan-id-list• port hybrid vlan vlan-id-list taggedBy default:• A trunk port allows onlypackets from VLAN 1 topass through.• A hybrid port is anuntagged member of theVLAN to which the portbelongs when its link type isaccess.5. Configuring a one-to-oneVLAN mapping.vlan mapping vlan-id translated-vlanvlan-idBy default, no VLAN mappingis configured on an interface.