HP 12500 Series Configuration Manual page 259

Mpls, routing switch series
Table of Contents

Advertisement

[P-LoopBack0] ip address 2.2.2.9 32
[P-LoopBack0] quit
[P] interface vlan-interface 3
[P-Vlan-interface3] ip address 172.1.1.2 24
[P- Vlan-interface3] quit
[P] interface vlan-interface 1
[P-Vlan-interface1] ip address 172.2.1.1 24
[P-Vlan-interface1] quit
[P] ospf
[P-ospf-1] area 0
[P-ospf-1-area-0.0.0.0] network 172.1.1.0 0.0.0.255
[P-ospf-1-area-0.0.0.0] network 172.2.1.0 0.0.0.255
[P-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0
[P-ospf-1-area-0.0.0.0] quit
[P-ospf-1] quit
# Configure PE 2.
<PE2> system-view
[PE2] interface loopback 0
[PE2-LoopBack0] ip address 3.3.3.9 32
[PE2-LoopBack0] quit
[PE2] interface vlan-interface 1
[PE2-Vlan-interface1] ip address 172.2.1.2 24
[PE2-Vlan-interface1] 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 you complete the configuration, OSPF adjacencies are established between PE 1, P, and PE
2. Issue the display ospf peer command. You can see that the adjacency status is Full. Issue the
display ip routing-table command. You can see that the PEs have learned the loopback route of
each other. The following takes PE 1 as an example:
[PE1] display ip routing-table
Routing Tables: Public
Destinations : 8
Destination/Mask
Proto
1.1.1.9/32
Direct 0
2.2.2.9/32
OSPF
3.3.3.9/32
OSPF
127.0.0.0/8
Direct 0
127.0.0.1/32
Direct 0
172.1.1.0/24
Direct 0
172.1.1.1/32
Direct 0
172.2.1.0/24
OSPF
[PE1] display ospf peer verbose
OSPF Process 1 with Router ID 1.1.1.9
Neighbors
Routes : 8
Pre
Cost
NextHop
0
127.0.0.1
10
1
172.1.1.2
10
2
172.1.1.2
0
127.0.0.1
0
127.0.0.1
0
172.1.1.1
0
127.0.0.1
10
1
172.1.1.2
251
Interface
InLoop0
Vlan3
Vlan3
InLoop0
InLoop0
Vlan3
InLoop0
Vlan3

Advertisement

Table of Contents
loading

Table of Contents