Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Блок кода
titleПример конфигурации ACL-mirroring:
monitor-session 1     <<<<< Создаем monitor-session для зеркалирования, посредством ACL, с указанием порта назначения.
  destination interface tengigabitethernet 0/0/15

access-list 1
  seq-num 10
    monitor-session 1     <<<<< Указываем имя сессии,куда будет зеркалироваться трафик
    protocol tcp     <<<<< Указываем match по протоколу TCP
  exit
  seq-num 20
    monitor-session 1
    tcp-flags +fin     <<<<< Указываем match по TCP флагу    
  exit
  seq-num 30
    dscp 20     <<<<< Указываем match по полю DSCP
    monitor-session 1
  exit
exit

exit

interface tengigabitethernet 0/0/16
  access-group ingress 1
  description server
  ipv4 address 172.20.20.1/24
  load-interval 30
exit

...

Блок кода
titleВывод команды show access-lists detailed
0/ME5200:R4# show  access-lists  detailed 
Thu Apr 25 0911:3405:2504 2024
  HW resources: 13/100 acl entries
  
  Access-list: 1
  Configured on interfaces:
    te0/0/16, L2: 0, IPv4: 7840, IPv6: 0 hits
   seq-num 10
    action:  permit, monitor-session 1
    match:   proto tcp, tos any, no fragments, flow-label any
             tcp-flags any
             vid any, pcp any, dei any, ether-type any
             source: ipv4 any, ipv6 any, port any, mac any
             destination: ipv4 any, ipv6 any, port any, mac any
    set:     none
    total:   L2: 0, IPv4: 784739, IPv6: 0 hits
   seq-num 20
    action:  permit, monitor-session 1
    match:   proto tcp, tos any, no fragments, flow-label any
             tcp-flags +fin
             vid any, pcp any, dei any, ether-type any
             source: ipv4 any, ipv6 any, port any, mac any
             destination: ipv4 any, ipv6 any, port any, mac any
    set:     none
    total:   L2: 0, IPv4: 371, IPv6: 0 hits
   seq-num 30
    action:  permit, monitor-session 1
    match:   proto any, tos any, dscp 20, no fragments, flow-label any
             tcp-flags any
             vid any, pcp any, dei any, ether-type any
             source: ipv4 any, ipv6 any, port any, mac any
             destination: ipv4 any, ipv6 any, port any, mac any
    set:     none
    total:   L2: 0, IPv4: 153, IPv6: 0 hits