1.R1定义ACL
[R1]acl 3000
[R1-acl-adv-3000]rule permit tcp source 3.3.3.3 0 destination 2.2.2.2 0 destination-port eq 23
2.R1配置流分类
[R1]traffic classifier c2
[R1-classifier-R2]if-match acl 3000
3.R1配置流行为,重新标记
[R1]traffic behavior b2
[R1-behavior-b2]remark dscp af11
4.R1配置流策略,绑定流分类和流动作
[R1]traffic policy p2
[R1-trafficpolicy-p2]classifier c2 behavior b2
5.R1在入接口绑定流策略
[R1]interface GigabitEthernet 0/0/1
[R1-GigabitEthernet0/0/1]traffic-policy p2 inbound
6.R2开启telnet
[R2]user-interface vty 0 4
[R2-ui-vty0-4]authentication-mode password
Please configure the login password (maximum length 16):16
[R2-ui-vty0-4]set authentication password cipher dsrw
[R2-ui-vty0-4]protocol inbound telnet
7.R1的G0/0/1抓包,DSCP重新标记为AF11
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
请登录后查看评论内容