beautypg.com

H3C Technologies H3C SR8800 User Manual

Page 383

background image

372

[PE1-LoopBack0] quit

[PE1] interface pos2/1/1

[PE1-POS2/1/1] ip address 172.1.1.1 24

[PE1-POS2/1/1] quit

[PE1] ospf

[PE1-ospf-1] area 0

[PE1-ospf-1-area-0.0.0.0] network 172.1.1.0 0.0.0.255

[PE1-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0

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

[PE1-ospf-1] quit

# Configure the P router.

system-view

[P] interface loopback 0

[P-LoopBack0] ip address 2.2.2.9 32

[P-LoopBack0] quit

[P] interface pos2/1/1

[P-POS2/1/1] ip address 172.1.1.2 24

[P-POS2/1/1] quit

[P] interface POS 2/1/2

[P-POS2/1/2] ip address 172.2.1.1 24

[P-POS2/1/2] 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.

system-view

[PE2] interface loopback 0

[PE2-LoopBack0] ip address 3.3.3.9 32

[PE2-LoopBack0] quit

[PE2] interface pos2/1/1

[PE2-POS2/1/1] ip address 172.2.1.2 24

[PE2-POS2/1/1] 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 configurations, OSPF adjacencies are established between PE 1, P, and PE
2. Issue the display ospf peer command. The output shows that the adjacency is in Full state. Issue

the display ip routing-table command. The output shows that the PEs have learned the routes to the

loopback interfaces of each other. The following takes PE 1 as an example:

[PE1] display ip routing-table

Routing Tables: Public