[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] acl number 2000

[SwitchC-acl-basic-2000] rule permit source 1.0.0.0 0.255.255.255

[SwitchC-acl-basic-2000] quit [SwitchC] acl number 2001

[SwitchC-acl-basic-2000] rule permit source 3.0.0.0 0.255.255.255

[SwitchC-acl-basic-2000] quit

#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 ACL 2000.

[SwitchC] route-policy in permit node 10 [SwitchC-route-policy] if-match interface Vlan-interface2

[SwitchC-route-policy] if-match acl 2000

[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 ACL 2001.

[SwitchC] route-policy in permit node 20 [SwitchC-route-policy] if-match interface Vlan-interface2

[SwitchC-route-policy] if-match acl 2001

[SwitchC-route-policy] apply cost 6

[SwitchC-route-policy] quit

#Create node 30 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 6 and ACL 2000.

[SwitchC] route-policy in permit node 30 [SwitchC-route-policy] if-match interface Vlan-interface6

[SwitchC-route-policy] if-match acl 2000

[SwitchC-route-policy] apply cost 6

[SwitchC-route-policy] quit

4-6

Page 706
Image 706
3Com WX3000 operation manual SwitchC-acl-basic-2000 quit SwitchC acl number