HP A5830 Configuration Manual page 194

Layer 2 lan switching
Hide thumbs Also See for A5830:
Table of Contents

Advertisement

# Configure customer-side port GigabitEthernet 1/0/1 as a hybrid port, and assign it to VLAN 100 as
an untagged member, so the port forwards VLAN 100 traffic with the VLAN tag removed. On the port,
enable basic QinQ, and apply uplink policy test to the incoming traffic.
[PE1] interface gigabitethernet 1/0/1
[PE1-GigabitEthernet1/0/1] port link-type hybrid
[PE1-GigabitEthernet1/0/1] port hybrid vlan 100 untagged
[PE1-GigabitEthernet1/0/1] qinq enable
[PE1-GigabitEthernet1/0/1] qos apply policy test inbound
[PE1-GigabitEthernet1/0/1] quit
# Configure network-side port GigabitEthernet 1/0/2 as a trunk port, and assign it to VLAN 100.
[PE1] interface gigabitethernet 1/0/2
[PE1-GigabitEthernet1/0/2] port link-type trunk
[PE1-GigabitEthernet1/0/2] port trunk permit vlan 100
Configuring PE 2.
2.
# Configure port GigabitEthernet 1/0/1 as a trunk port, and assign it to VLAN 100.
<PE2> system-view
[PE2] interface gigabitethernet 1/0/1
[PE2-GigabitEthernet1/0/1] port link-type trunk
[PE2-GigabitEthernet1/0/1] port trunk permit vlan 100
[PE2-GigabitEthernet1/0/1] quit
# Configure port GigabitEthernet 1/0/2 as a trunk port, and assign it to VLAN 100.
[PE2] interface gigabitethernet 1/0/2
[PE2-GigabitEthernet1/0/2] port link-type trunk
[PE2-GigabitEthernet1/0/2] port trunk permit vlan 100
Configuring PE 3.
3.
# Configure an uplink policy down_uplink for customer-side port GigabitEthernet 1/0/1 to substitute
SVLAN ID 200 for the SVLAN ID in the incoming traffic tagged with CVLAN 10 and SVLAN 100.
<PE3> system-view
[PE3] traffic classifier down_uplink
[PE3-classifier-down_uplink] if-match customer-vlan-id 10
[PE3-classifier-down_uplink] if-match service-vlan-id 100
[PE3-classifier-down_uplink] quit
[PE3] traffic behavior down_uplink
[PE3-behavior-down_uplink] remark service-vlan-id 200
[PE3-behavior-down_uplink] quit
[PE3] qos policy down_uplink
[PE3-qospolicy-down_uplink] classifier down_uplink behavior down_uplink
[PE3-qospolicy-down_uplink] quit
# Configure a downlink policy down_downlink for customer-side port GigabitEthernet 1/0/1 to substitute
CVLAN 10 and SVLAN 100 for traffic tagged with CVLAN 30 and SVLAN 200.
[PE3] traffic classifier down_downlink
[PE3-classifier-down_downlink] if-match customer-vlan-id 30
[PE3-classifier-down_downlink] if-match service-vlan-id 200
[PE3-classifier-down_downlink] quit
[PE3] traffic behavior down_downlink
[PE3-behavior-down_downlink] remark customer-vlan-id 10
187

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents