HP 12500 Series Configuration Manual page 274

Mpls, routing switch series
Table of Contents

Advertisement

[Spoke-PE2-LoopBack0] ip address 3.3.3.9 32
[Spoke-PE2-LoopBack0] quit
[Spoke-PE2] interface vlan-interface 5
[Spoke-PE2-Vlan-interface5] ip address 172.2.1.1 24
[Spoke-PE2-Vlan-interface5] quit
[Spoke-PE2] ospf
[Spoke-PE2-ospf-1] area 0
[Spoke-PE2-ospf-1-area-0.0.0.0] network 172.2.1.0 0.0.0.255
[Spoke-PE2-ospf-1-area-0.0.0.0] network 3.3.3.9 0.0.0.0
[Spoke-PE2-ospf-1-area-0.0.0.0] quit
[Spoke-PE2-ospf-1] quit
# Configure the Hub-PE.
<Hub-PE> system-view
[Hub-PE] interface loopback 0
[Hub-PE-LoopBack0] ip address 2.2.2.9 32
[Hub-PE-LoopBack0] quit
[Hub-PE] interface vlan-interface 4
[Hub-PE-Vlan-interface4] ip address 172.1.1.2 24
[Hub-PE-Vlan-interface4] quit
[Hub-PE] interface vlan-interface 5
[Hub-PE-Vlan-interface5] ip address 172.2.1.2 24
[Hub-PE-Vlan-interface5] quit
[Hub-PE] ospf
[Hub-PE-ospf-1] area 0
[Hub-PE-ospf-1-area-0.0.0.0] network 172.1.1.0 0.0.0.255
[Hub-PE-ospf-1-area-0.0.0.0] network 172.2.1.0 0.0.0.255
[Hub-PE-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0
[Hub-PE-ospf-1-area-0.0.0.0] quit
[Hub-PE-ospf-1] quit
After the configuration, OSPF adjacencies are established between Spoke-PE 1 and Hub-PE, and
between Spoke-PE 2 and Hub-PE. Issue the display ospf peer command. The output shows that the
adjacency status is Full. Issue the display ip routing-table command. The output shows that the PEs
have learned the routes to the loopback interfaces of each other.
Take Spoke-PE 1 as an example:
[Spoke-PE1] display ip routing-table
Routing Tables: Public
Destinations : 10
Destination/Mask
1.1.1.9/32
2.2.2.9/32
3.3.3.9/32
10.1.1.0/24
10.1.1.2/32
127.0.0.0/8
127.0.0.1/32
172.1.1.0/24
Routes : 10
Proto
Pre
Cost
Direct 0
0
OSPF
10
1
OSPF
10
2
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
266
NextHop
Interface
127.0.0.1
InLoop0
172.1.1.2
Vlan4
172.1.1.2
Vlan4
10.1.1.2
Vlan2
127.0.0.1
InLoop0
127.0.0.1
InLoop0
127.0.0.1
InLoop0
172.1.1.1
Vlan4

Advertisement

Table of Contents
loading

Table of Contents