Routing policy configuration examples, Network requirements, Configuration procedure – H3C Technologies H3C S5560 Series Switches User Manual

Page 456

Advertising
background image

440

Routing policy configuration examples

Applying a routing policy to IPv4 route redistribution

Network requirements

As shown in

Figure 101

, Switch B exchanges routing information with Switch A by using OSPF and with

Switch C by using IS-IS.
On Switch B, enable route redistribution from IS-IS to OSPF, and use a routing policy to set the cost of

route 172.17.1.0/24 to 100 and the tag of route 172.17.2.0/24 to 20.

Figure 101 Network diagram

Configuration procedure

1.

Specify IP addresses for interfaces. (Details not shown.)

2.

Configure IS-IS:
# Configure Switch C.

<SwitchC> system-view

[SwitchC] isis

[SwitchC-isis-1] is-level level-2

[SwitchC-isis-1] network-entity 10.0000.0000.0001.00

[SwitchC-isis-1] quit

[SwitchC] interface vlan-interface 200

[SwitchC-Vlan-interface200] isis enable

[SwitchC-Vlan-interface200] quit

[SwitchC] interface vlan-interface 201

[SwitchC-Vlan-interface201] isis enable

[SwitchC-Vlan-interface201] quit

[SwitchC] interface vlan-interface 202

[SwitchC-Vlan-interface202] isis enable

[SwitchC-Vlan-interface202] quit

[SwitchC] interface vlan-interface 203

[SwitchC-Vlan-interface203] isis enable

[SwitchC-Vlan-interface203] quit

Vlan-int100
192.168.1.1/24

Vlan-int100

192.168.1.2/24

Vlan-int200
192.168.2.2/24

Vlan-int200

192.168.2.1/24

Vlan-int201
172.17.1.1/24

Vlan-int202
172.17.2.1/24

Vlan-int203
172.17.3.1/24

Switch A

Switch B

Switch C

OSPF

IS-IS

Advertising
This manual is related to the following products: