4-7
z
For the OA server, the main link is between Switch A and Switch C, while the backup link is
between Switch B and Switch C.
z
For the service server, the main link is between Switch B and Switch C, while the backup link is
between Switch A and Switch C.
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.
<SwitchA> 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.
<SwitchB> 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.
<SwitchC> 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