beautypg.com

H3C Technologies H3C SR8800 User Manual

Page 420

background image

404

OSPF Process 1 with Router ID 192.168.1.1

Routing Tables

Routing for Network

Destination Cost Type NextHop AdvRouter Area

192.168.1.0/24 1 Transit 192.168.1.1 192.168.1.1 0.0.0.0

Routing for ASEs

Destination Cost Type Tag NextHop AdvRouter

172.17.1.0/24 1 Type2 1 192.168.1.2 192.168.2.2

172.17.2.0/24 1 Type2 1 192.168.1.2 192.168.2.2

172.17.3.0/24 1 Type2 1 192.168.1.2 192.168.2.2

192.168.2.0/24 1 Type2 1 192.168.1.2 192.168.2.2

Total Nets: 5

Intra Area: 1 Inter Area: 0 ASE: 4 NSSA: 0

4.

Configure filtering lists on Router B:
# Configure ACL 2002 to allow route 172.17.2.0/24 to pass.

[RouterB] acl number 2002

[RouterB-acl-basic-2002] rule permit source 172.17.2.0 0.0.0.255

[RouterB-acl-basic-2002] quit

# Configure IP prefix list prefix-a to allow route 172.17.1.0/24 to pass.

[RouterB] ip ip-prefix prefix-a index 10 permit 172.17.1.0 24

5.

Configure a routing policy on Router B:

[RouterB] route-policy isis2ospf permit node 10

[RouterB-route-policy] if-match ip-prefix prefix-a

[RouterB-route-policy] apply cost 100

[RouterB-route-policy] quit

[RouterB] route-policy isis2ospf permit node 20

[RouterB-route-policy] if-match acl 2002

[RouterB-route-policy] apply tag 20

[RouterB-route-policy] quit

[RouterB] route-policy isis2ospf permit node 30

[RouterB-route-policy] quit

6.

Apply the routing policy to route redistribution on Router B:
# On Router B, enable route redistribution from IS-IS and apply the routing policy.

[RouterB] ospf

[RouterB-ospf-1] import-route isis 1 route-policy isis2ospf

[RouterB-ospf-1] quit

# Display OSPF routing table information on Router A. The cost of route 172.17.1.0/24 is 100,

and the tag of route 172.17.2.0/24 is 20.

[RouterA] display ospf routing

OSPF Process 1 with Router ID 192.168.1.1

Routing Tables

Routing for Network