【正文】
match precedence 5 class AF1 match ip dscp 26 classmap matchany prec7 match precedence 7 class EF match ip dscp 46 classmap matchall prec0 match precedence 0 class AF2 match ip dscp 18 ! ! Policymap SETDSCP class EF set ip dscp 46 class AF1 set ip dscp 26 class AF2 set ip dscp 18 ! policymap shapingdefault class prec7 shape peak 120000 bandwidth percent 50 class prec5 shape peak 80000 bandwidth percent 35 class classdefault bandwidth percent 15 ! interface Serial0/0 ip address no fairqueue servicepolicy output shapingdefault servicepolicy input SETDSCP ! interface Serial0/1 ip address servicepolicy output shapingdefault servicepolicy input SETDSCP ! router ospf 1 logadjacencychanges network area 0 ! ip server ! controlplane ! line con 0 exectimeout 0 0 password cisco login line aux 0 line vty 0 4 password cisco login ! scheduler allocate 20000 1000 ! end M4show run Building configuration... Current configuration : 1529 bytes ! version service timestamps debug datetime msecservice timestamps log datetime msec no service passwordencryption ! hostname M4 ! bootstartmarker bootendmarker ! enable password cisco ! no aaa newmodel memorysize iomem 10 ! ip cef ! ip host PAGENTSECURITYV3 ! multilink bundlename authenticated no MPLS ip ! no dspfarm ! classmap matchall prec5 match precedence 5 class AF1 match ip dscp 26 classmap matchany prec7 match precedence 7 class EF match ip dscp 46 classmap matchall prec0 match precedence 0 class AF2 match ip dscp 18 ! ! Policymap SETDSCP class EF set ip dscp 46 class AF1 set ip dscp 26 class AF2 set ip dscp 18 ! policymap shapingdefault class prec7 shape peak 120000 bandwidth percent 50 class prec5 shape peak 80000 bandwidth percent 35 class classdefault bandwidth percent 15 ! interface FastEthernet1/0 ip address duplex auto speed auto servicepolicy input SETDSCP servicepolicy output shapingdefault ! interface Serial0/0 no ip address shutdown clock rate 2000000 ! interface Serial0/1 ip address servicepolicy input SETDSCP servicepolicy output shapingdefault ! router ospf 1 logadjacencychanges network area 0 ! ip server ! controlplane ! line con 0 exectimeout 0 0 password cisco login line aux 0 line vty 0 4 password cisco login ! scheduler allocate 20000 1000 ! end M5show run Building configuration... Current configuration : 1545 bytes ! version service timestamps debug datetime msec service timestamps log datetime msec no service passwordencryption ! hostname M5 ! bootstartmarker bootendmarker ! enable password cisco ! no aaa newmodel memorysize iomem 10 ! ip cef ! ip host PAGENTSECURITYV3 ! multilink bundlename authenticated no MPLS ip ! no dspfarm ! classmap matchall prec5 match precedence 5 class AF1 match ip dscp 26 classmap matchany prec7 match precedence 7 class EF match ip dscp 46 classmap matchall prec0 match precedence 0 class AF2 match ip dscp 18 ! ! Policymap SETDSCP class EF set ip dscp 46 class AF1 set ip dscp 26class AF2 set ip dscp 18 ! policymap shapingdefault class prec7 shape peak 120000 bandwidth percent 50 class prec5 shape peak 80000 bandwidth percent 35 class classdefault bandwidth percent 15 ! interface FastEthernet1/0 ip address duplex auto speed auto servicepolicy output shapingdefault servicepolicy input SETDSCP default ! interface Serial0/0 ip address no fairqueue servicepolicy output shapingdefault servicepolicy input SETDSCP ! router ospf 1 logadjacencychanges network area 0 ! ip server ! controlplane ! line con 0 exectimeout 0 0 password cisco loginline aux 0 line vty 0 4 password cisco login ! scheduler allocate 20000 1000 ! end P2show run Building configuration... Current configuration : 1740 bytes ! version service timestamps debug datetime msec service timestamps log datetime msec no service passwordencryption ! hostname P2 ! bootstartmarker bootendmarker ! enable password cisco ! no aaa newmodel memorysize iomem 10 ! ip cef ! ip host PAGENTSECURITYV3 ! multilink bundlename authenticated ! no dspfarm ! classmap matchany Critical match protocol rtp classmap matchany EF match protocol rtp classmap matchany Interactive match protocol eigrp match protocol ospf match protocol icmp classmap matchany AF1 match protocol eigrp match protocol ospf match protocol icmp classmap matchany Web match protocol match protocol smtp classmap matchany AF2 match protocol match protocol smtp ! policymap SETDSCP class EF set ip dscp 46 class AF1 set ip dscp 26 class AF2 set ip dscp 18 ! policymap markingpolicy class Critical set precedence 7 bandwidth percent 50 class interactive set precedence 5 bandwidth percent 35 class web set precedence 3 class classdefault set precedence 0 bandwidth percent 15 ! interface FastEthernet1/0 ip address duplex auto speed auto servicepolicy input SETDSCP ! interface Serial0/0 ip address no fairqueue clock rate 64000 servicepolicy output markingpolicy ! interface Serial0/1 ip address clock rate 64000 servicep