Inter-as vpn – H3C Technologies H3C S12500-X Series Switches User Manual

Page 151

Advertising
background image

140

[PE2-Vlan-interface12] quit

[PE2] ospf

[PE2-ospf-1] area 0

[PE2-ospf-1-area-0.0.0.0] network 172.2.1.0 0.0.0.255

[PE2-ospf-1-area-0.0.0.0] network 3.3.3.9 0.0.0.0

[PE2-ospf-1-area-0.0.0.0] quit

[PE2-ospf-1] quit

After the configurations, OSPF adjacencies are established between PE 1, P, and PE 2. Execute the

display ospf peer command. The output shows that the adjacency status is Full. Execute the display

ip routing-table command. The output shows that the PEs have learned the routes to the loopback
interfaces of each other. Take PE 1 as an example:

[PE1] display ip routing-table protocol ospf

Summary Count : 5

OSPF Routing table Status : <Active>

Summary Count : 3

Destination/Mask Proto Pre Cost NextHop Interface

2.2.2.9/32 OSPF 10 1 172.1.1.2 Vlan13

3.3.3.9/32 OSPF 10 2 172.1.1.2 Vlan13

172.2.1.0/24 OSPF 10 2 172.1.1.2 Vlan13

OSPF Routing table Status : <Inactive>

Summary Count : 2

Destination/Mask Proto Pre Cost NextHop Interface

1.1.1.9/32 OSPF 10 0 1.1.1.9 Loop0

172.1.1.0/24 OSPF 10 1 172.1.1.1 Vlan13

[PE1] display ospf peer verbose

OSPF Process 1 with Router ID 1.1.1.9

Neighbors

Area 0.0.0.0 interface 172.1.1.1(Vlan-interface13)'s neighbors

Router ID: 2.2.2.9 Address: 172.1.1.2 GR State: Normal

State: Full Mode: Nbr is Master Priority: 1

DR: 172.1.1.2 BDR: 172.1.1.1 MTU: 0

Options is 0x02 (-|-|-|-|-|-|E|-)

Dead timer due in 39 sec

Neighbor is up for 00:00:29

Authentication Sequence: [ 0 ]

Neighbor state change count: 6

2.

Configure basic MPLS and MPLS LDP on the MPLS backbone to establish LDP LSPs:
# Configure PE 1.

[PE1] mpls lsr-id 1.1.1.9

[PE1] mpls ldp

[PE1-ldp] quit

Advertising