beautypg.com

Configuration procedure – H3C Technologies H3C S3600 Series Switches User Manual

Page 366

background image

5-9

z

Apply a route policy to control the cost of routes received by Switch C to provide main and backup

links for the services of the OA server and service server.

Configuration procedure

1) Configure Switch A.

# Create VLANs and configure IP addresses for the VLAN interfaces. The configuration procedure is

omitted.

# Configure RIP.

system-view

[SwitchA] rip

[SwitchA-rip] network 1.0.0.0

[SwitchA-rip] network 2.0.0.0

[SwitchA-rip] network 3.0.0.0

2) Configure Switch B.

# Create VLANs and configure IP addresses for the VLAN interfaces. The configuration procedure is

omitted.

# Configure RIP.

system-view

[SwitchB] rip

[SwitchB-rip] network 1.0.0.0

[SwitchB-rip] network 3.0.0.0

[SwitchB-rip] network 6.0.0.0

3) Configure Switch C.

# Create VLANs and configure IP addresses for the VLAN interfaces. The configuration procedure is

omitted.

# Define IP-prefix 1 containing the IP address prefix 1.0.0.0/8, and IP-prefix 2 containing the IP address

prefix 3.0.0.0/8.

system-view

[SwitchC] ip ip-prefix 1 index 10 permit 1.0.0.0 8

[SwitchC] ip ip-prefix 2 index 10 permit 3.0.0.0 8

# Create a route policy named in and node 10 with the matching mode being permit. Define if-match

clauses. Apply the cost 5 to routes matching the outgoing interface VLAN-interface 2 and prefix list 1.

[SwitchC] route-policy in permit node 10

[SwitchC-route-policy] if-match interface Vlan-interface2

[SwitchC-route-policy] if-match ip-prefix 1

[SwitchC-route-policy] apply cost 5

[SwitchC-route-policy] quit

# Create node 20 with the matching mode being permit in the route policy. Define if-match clauses.

Apply the cost 6 to routes matching the outgoing interface VLAN-interface 2 and prefix list 2.

[SwitchC] route-policy in permit node 20

[SwitchC-route-policy] if-match interface Vlan-interface2

[SwitchC-route-policy] if-match ip-prefix 2

[SwitchC-route-policy] apply cost 6

[SwitchC-route-policy] quit

This manual is related to the following products: