R3303-HP HSR6800 Routers MPLS Configuration Guide

142
Figure 34 Network diagram
Configuration procedure
1. Configure OSPF, making sure that PE 1 and PE 2 can learn routes from each other:
# Configure PE 1.
<PE1> system-view
[PE1] interface loopback 0
[PE1-LoopBack0] ip address 2.2.2.2 255.255.255.255
[PE1-LoopBack0] quit
[PE1] interface pos 5/1/1
[PE1-POS5/1/1] ip address 10.0.0.1 255.255.255.0
[PE1-POS5/1/1] quit
[PE1] ospf
[PE1-ospf-1] area 0
[PE1-ospf-1-area-0.0.0.0] network 10.0.0.0 0.0.0.255
[PE1-ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0
[PE1-ospf-1-area-0.0.0.0] quit
[PE1-ospf-1] quit
# Configure PE 2.
<PE2> system-view
[PE2] interface loopback 0
[PE2-LoopBack0] ip address 3.3.3.3 255.255.255.255
[PE2-LoopBack0] quit
[PE2] interface pos 5/1/1
[PE2-POS5/1/1] ip address 10.0.0.2 255.255.255.0
[PE2-POS5/1/1] quit
[PE2] ospf
[PE2-ospf-1] area 0
[PE2-ospf-1-area-0.0.0.0] network 10.0.0.0 0.0.0.255
[PE2-ospf-1-area-0.0.0.0] network 3.3.3.3 0.0.0.0
[PE2-ospf-1-area-0.0.0.0] quit
[PE2-ospf-1] quit
After you complete the configuration, the PEs establish an OSPF neighbor relationship. Execute the
display ospf peer verbose command. You can see that the neighborship state is FULL. Execute the