beautypg.com

Configuring match criteria for a node, Configuring actions for a node – H3C Technologies H3C S12500-X Series Switches User Manual

Page 392

background image

378

[SwitchB-route-policy-isis2ospf-30] quit

6.

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

[SwitchB] ospf

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

[SwitchB-ospf-1] quit

# Display the OSPF routing table on Switch A.

[SwitchA] display ospf routing

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 100 Type2 1 192.168.1.2 192.168.2.2

172.17.2.0/24 1 Type2 20 192.168.1.2 192.168.2.2

172.17.3.0/24 1 Type2 1 192.168.1.2 192.168.2.2

Total Nets: 4

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

The output shows that the cost of route 172.17.1.0/24 is 100 and the tag of route

172.17.2.0/24 is 20.

444B

Applying a routing policy to IPv6 route redistribution

704B

Network requirements

As shown in

1253H

Figure 89

, run RIPng on Switch A and Switch B.

On Switch A, configure three static routes, and apply a routing policy to static route redistribution
to permit routes 20::0/32 and 40::0/32 and deny route 30::0/32.

Figure 89 Network diagram

705B

Configuration procedure

1.

Configure Switch A:
# Configure IPv6 addresses for VLAN-interface 100 and VLAN-interface 200.

system-view

This manual is related to the following products: