星期二, 三月 13, 2007

3550限速(IP和端口)

拓扑:pc1-------default vlan 1--3550-24-emi--f0/24-------pc2配置:pc1:192.168.1.7 255.255.255.0 192.168.1.222vlan 1:192.168.1.222 255.255.255.0 f0/24:192.168.2.1 255.255.255.0pc2:192.168.2.20 255.255.255.0 192.168.2.1
class-map match-all 64kmatch access-group 110!!policy-map yikaiclass 64kpolice 512000 32000 exceed-action drop!!spanning-tree extend system-id
interface FastEthernet0/24no switchportip address 192.168.2.1 255.255.255.0service-policy input yikai
interface Vlan1ip address 192.168.1.222 255.255.255.0
access-list 110 permit ip host 192.168.2.20 anyaccess-list 110 permit ip any any
Switch#sh mls qos interface f 0/1 sta
端口上限速:
mls qos aggregate-policer pol_1mbps 1000000 16000 exceed-action dropmls qos!class-map match-all cl_udp111match access-group 123class-map match-all cl_tcp20match access-group 145!policy-map po_testclass cl_udp111police aggregate pol_1mbpsclass cl_tcp20police aggregate pol_1mbps
interface FastEthernet0/1switchport access vlan 2no ip addressservice-policy input po_test!interface FastEthernet0/2switchport access vlan 2no ip addressservice-policy input po_test
interface Vlan1ip address 192.168.50.150 255.255.255.0!access-list 123 permit udp any any eq sunrpcaccess-list 145 permit tcp any eq ftp-data any!

没有评论: