beautypg.com

Configuration procedure – H3C Technologies H3C S7500E Series Switches User Manual

Page 153

background image

3-71

Figure 3-12

MPLS TE application in VPN

Configuration procedure

1) Configure OSPF, ensuring that PE 1 and PE 2 can learn LSR-ID routes from each other.

# Configure PE 1.

system-view

[PE1] interface loopback 0

[PE1-LoopBack0] ip address 2.2.2.2 255.255.255.255

[PE1-LoopBack0] quit

[PE1] interface vlan-interface 2

[PE1-Vlan-interface2] ip address 10.0.0.1 255.255.255.0

[PE1-Vlan-interface2] 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.

system-view

[PE2] interface loopback 0

[PE2-LoopBack0] ip address 3.3.3.3 255.255.255.255

[PE2-LoopBack0] quit

[PE2] interface vlan-interface 2

[PE2-Vlan-interface2] ip address 10.0.0.2 255.255.255.0

[PE2-Vlan-interface2] 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 should be able to establish the OSPF neighborship.
Perform the display ospf peer command; you should see that the neighborship state is FULL.
Perform the display ip routing-table command; you should see that the PEs learnt the routes to the
loopback interfaces of each other. Take PE 1 for example: