router rip

version 2

network

10.0.0.0

network

192.168.98.0

!

line vty 0 4 login

password 7 k2CZPVdrqEggyC

!

route-map richard match ip address 1set interface serial 0/0 set ip next-hop 10.0.0.1

!

access-list 1 permit 192.168.98.62 0.0.0.255

!

end

router#

6.3 Class-map and policy-map

Class-map command is a global command which is for specify a traffic class containing match criteria. This command is used to create traffic class only the traffic policy must use the other command that is policy-map to specify.

The traffic class is associated with traffic policy when the class command is used. After entering the class command, you are automatically in policy-map class configuration mode, which is where the QoS policies for the traffic policy are defined. The following example is shows how to configure Class-map.

class-map[match-all match-any]class-map name – specify the traffic class.

-match-all– when all of the match criteria in class-map must met for traffic entering that specify in class-map.

-match-any– when one of the match criteria in class-map must met for traffic entering that specify in class-map

match access-groupaccess-list no – specify the access-list index

78