[Switch-GigabitEthernet0/0/2] port link-type access
[Switch-GigabitEthernet0/0/2] port default vlan 3000
[Switch] interface gigabitethernet 0/0/3
[Switch-GigabitEthernet0/0/3] port link-type trunk
[Switch-GigabitEthernet0/0/3] port trunk allow-pass vlan 3000
[Switch] interface vlanif 3000
[Switch-Vlanif3000] ip address 106.3.45.1 24
[Switch] acl number 3000
[Switch-acl-number-3000] rule permit source-mac 008c-fa06-be38 ffff-ffff-ffff
[Switch] traffic classifier c1
[Switch-classifier-c1] if-match acl
3000
[Switch] traffic behavior b1
[Switch-behavior-b1] statistic
enable
[Switch] traffic policy p1
[Switch-trafficpolicy-p1] classifier c1
behavior b1
[Switch] interface gigabitethernet
0/0/2
[Switch-GigabitEthernet0/0/2] traffic-policy p1 inbound
郑重声明:本文版权归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们修改或删除,多谢。