Displaying and maintaining vlan mapping, Vlan mapping configuration examples, One-to-one vlan mapping configuration example – H3C Technologies H3C S12500-X Series Switches User Manual

Page 157: Network requirements, Configuring the global loop protection action

Advertising
background image

146

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter Layer 2 Ethernet

interface view or Layer 2
aggregate interface view.

Enter Layer 2 Ethernet interface

view:
interface interface-type

interface-number

Enter Layer 2 aggregate interface

view:

interface bridge-aggregation

interface-number

N/A

3.

Set the link type of the port.

Configure the port as a trunk port:
port link-type trunk

Configure the port as a hybrid

port:
port link-type hybrid

By default, the link type of a
port is access.

4.

Assign the port to the original

VLANs and the translated
VLANs.

port trunk permit vlan vlan-id-list

port hybrid vlan vlan-id-list tagged

By default, a trunk port is
assigned to only VLAN 1, and

a hybrid port is only an

untagged member of VLAN 1.

5.

Configure two-to-two VLAN
mapping.

vlan mapping tunnel outer-vlan-id
inner-vlan-id
translated-vlan

outer-vlan-id inner-vlan-id

By default, VLAN mapping is
not configured on an interface.

Displaying and maintaining VLAN mapping

Execute the display commands in user view.

Task Command

Display VLAN mapping
information.

display vlan mapping [ interface interface-type interface-number ]

VLAN mapping configuration examples

One-to-one VLAN mapping configuration example

Network requirements

As shown in

Figure 46

:

Each home is offered PC, VoD, and VoIP services, connects to a wiring-closet switch through the
home gateway, and obtains the IP address through DHCP.

VLAN 1 is assigned to PC traffic, VLAN 2 is assigned to VoD traffic, and VLAN 3 is assigned to VoIP
service traffic on the home gateways.

To isolate traffic of the same service type from different homes, assign one VLAN to each type of traffic

from each home on the wiring-closet switches.

Advertising
This manual is related to the following products: