R3303-HP HSR6800 Routers MPLS Configuration Guide

204
[PE2] ospf
[PE2-ospf-1] area 0
[PE2-ospf-1-area-0.0.0.0] network 192.3.3.3 0.0.0.0
[PE2-ospf-1-area-0.0.0.0] network 26.2.2.0 0.0.0.255
[PE2-ospf-1-area-0.0.0.0] quit
[PE2-ospf-1] quit
# On the interface connected to CE 2, create a service instance and create a VC.
[PE2] interface Ten-GigabitEthernet1/0/1
[PE1-Ten-GigabitEthernet1/0/1] port link-mode bridge
[PE1-Ten-GigabitEthernet1/0/1] service-instance 1
[PE1-Ten-GigabitEthernet1/0/1-srv1] encapsulation untagged
[PE2-Ten-GigabitEthernet1/0/1-srv1] xconnect peer 192.2.2.2 pw-id 1000 access-mode
ethernet
[PE2-Ten-GigabitEthernet1/0/1-srv1] quit
[PE2-Ten-GigabitEthernet1/0/1] quit
5. Configure CE 2:
# Configure an IP address for interface Ten-GigabitEthernet1/0/1, the interface connected to PE
2.
<Sysname> system-view
[Sysname] sysname CE2
[CE2] interface ten-GigabitEthernet1/0/1
[CE2-Ten-GigabitEthernet1/0/1] ip address 100.1.1.2 24
Verifying the configuration:
# Display VC information on PE 1. The output shows that a VC has been established.
[PE1] display mpls l2vc
Total ldp vc : 1 1 up 0 down 0 blocked
Transport Client Service VC Local Remote
VC ID Intf ID State VC Label VC Label
1000 XGE1/0/1 1000 up 8193 8192
# Display VC information on PE 2. The output shows that a VC has been established.
[PE2] display mpls l2vc
Total ldp vc : 1 1 up 0 down 0 blocked
Transport Client Service VC Local Remote
VC ID Intf ID State VC Label VC Label
1000 XGE1/0/1 1000 up 8192 8193
# Ping CE 2 from CE 1. The output shows that CE 1 and CE 2 can ping each other.
[CE1] ping 100.1.1.2
PING 100.1.1.2: 56 data bytes, press CTRL_C to break
Reply from 100.1.1.2: bytes=56 Sequence=1 ttl=255 time=90 ms
Reply from 100.1.1.2: bytes=56 Sequence=2 ttl=255 time=77 ms
Reply from 100.1.1.2: bytes=56 Sequence=3 ttl=255 time=34 ms
Reply from 100.1.1.2: bytes=56 Sequence=4 ttl=255 time=46 ms
Reply from 100.1.1.2: bytes=56 Sequence=5 ttl=255 time=94 ms
--- 100.1.1.2 ping statistics ---
5 packet(s) transmitted