Network requirements, Configuration procedure – H3C Technologies H3C S10500 Series Switches User Manual

Page 225

Advertising
background image

214

<SwitchD> system-view

[SwitchD] dhcp-snooping

# Assign port GigabitEthernet 1/0/1 to SVLANs 501 to 503.

[SwitchD] interface gigabitethernet 1/0/1

[SwitchD-GigabitEthernet1/0/1] port link-type trunk

[SwitchD-GigabitEthernet1/0/1] port trunk permit vlan 501 502 503

One-to-two and two-to-two VLAN mapping configuration

example

Network requirements

As shown in

Figure 71

:

Two VPN A branches, Site 1 and Site 2, are in VLAN 10 and VLAN 30 respectively. The two site
use different VPN access services of different service providers, SP 1 and SP 2. SP 1 assigns VLAN

100 for Site 1, and SP 2 assigns VLAN 200 for Site 2.

Configure one-to-two and two-to-two VLAN mappings to enable the two branches to communicate
across networks SP 1 and SP 2.

Figure 71 Network diagram for the one-to-two and two-to-two VLAN mapping application

Configuration procedure

1.

Configuring PE 1.

# Configure an uplink policy test to add outer VLAN tag 100 to VLAN 10 tagged traffic.

<PE1> system-view

[PE1] traffic classifier test

[PE1-classifier-test] if-match customer-vlan-id 10

[PE1-classifier-test] quit

[PE1] traffic behavior test

[PE1-behavior-test] nest top-most vlan-id 100

[PE1-behavior-test] quit

[PE1] qos policy test

[PE1-qospolicy-test] classifier test behavior test

[PE1-qospolicy-test] quit

Advertising