Просмотр Исходного

h5. Правило для зеркалирования в файрволе "internet-output", который мы потом будем на аплинки вешать:
\\
{code}
user@host# show firewall family inet filter internet-output term mirror-to-carbon
from { protocol tcp; destination-port [ http https]; }
then port-mirror;
{code}
\\
h5. Настройки зеркалирования (куда миррорить будем):
\\
{code}
user@host# show forwarding-options port-mirroring
input { rate 1; }
family inet {
output {
interface xe-2/2/0.4020 { next-hop 172.16.16.2; }
}
}
{code}

\\
h5. Настройки интерфейса для carbon-reductor:
\\
{code}
user@host# show interfaces xe-2/2/0.4020
description "remote mirror for carbon reductor";
vlan-id 4020;
family inet { address 172.16.16.1/30; }
{code}
\\
h5. Навешанный на аплинк файервол:
\\
{code}
user@host# show interfaces | display set | match internet-output
set interfaces xe-2/2/0 unit 1510 family inet filter output internet-output
{code}


\\
h5. На Reductor:
\\
{code}
[root@localhost]# cat /etc/sysconfig/network-scripts/ifcfg-eth2
DEVICE=eth2
BOOTPROTO=static
IPADDR=172.16.16.2
NETMASK=255.255.255.252
DEFROUTE=no
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
ARP=yes
MTU=9200
{code}