ASR9010做镜像的方法,现在全局定义出向端口
ASR9K-2(config)#monitor-session 1 destination interface gigabitEthernet 0/3/0/10
然后在需要做镜像的端口启用镜像功能
interface GigabitEthernet0/3/0/1
monitor-session 1 direction tx-only
如果需要只镜像某些类型流量,定义ACL,针对需要镜像的流量类型加上capture
ipv4 access-list SPAN
10 permit tcp any any eq www capture
20 permit tcp any any eq 8080 capture
30 permit ip any any
然后在接口调用此ACL
interface GigabitEthernet0/3/0/1
monitor-session 1 direction tx-only
acl
!