HP 12500 Series Configuration Manual page 124

Mpls, routing switch series
Table of Contents

Advertisement

[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.
<PE2> 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 will be able to establish the OSPF neighbor
relationship. Perform the display ospf peer verbose command; you will see that the neighbor
relationship state is FULL. Perform the display ip routing-table command; you will see that the PEs
have learned the routes to the loopback interfaces of each other. Take PE 1 for example:
[PE1] display ospf peer verbose
OSPF Process 1 with Router ID 2.2.2.2
Neighbors
Area 0.0.0.0 interface 10.0.0.1(Vlan-interface2)'s neighbors
Router ID: 3.3.3.3
State: Full
Mode:Nbr is
DR: None
BDR: None
Dead timer due in 30
Neighbor is up for 00:01:00
Authentication Sequence: [ 0 ]
[PE1] display ip routing-table
Routing Tables: Public
Destinations : 7
Destination/Mask
Proto
2.2.2.2/32
Direct 0
3.3.3.3/32
OSPF
10.0.0.0/24
Direct 0
10.0.0.1/32
Direct 0
10.0.0.2/32
Direct 0
127.0.0.0/8
Direct 0
Address: 10.0.0.2
Master
Priority: 1
sec
Routes : 7
Pre
Cost
NextHop
0
127.0.0.1
10
1563
10.0.0.2
0
10.0.0.1
0
127.0.0.1
0
10.0.0.2
0
127.0.0.1
116
GR State: Normal
Interface
InLoop0
Vlan2
Vlan2
InLoop0
Vlan2
InLoop0

Advertisement

Table of Contents
loading

Table of Contents