admin@sonic:~$ sudo config mirror_session add Mirror_Everflow 192.168.10.250 10.0.0.2 63 255
admin@sonic:~$ sudo nano /tmp/everflow_sample.json
{
"ACL_RULE": {
"MIRROR_ACL|Mirror_Rule": {
"DST_IP": "192.168.11.10/24",
"IP_PROTOCOL": "61",
"MIRROR_ACTION": "Mirror_Everflow",
"PRIORITY": "999",
"SRC_IP": "192.168.10.10/24"
}
},
"ACL_TABLE": {
"MIRROR_ACL": {
"policy_desc": "Mirror_ACLV4_CREATION",
"ports": [
"Ethernet0",
"Ethernet4"
],
"stage": "INGRESS",
"type": "mirror"
}
},
"MIRROR_SESSION": {
"Mirror_Everflow": {
"dscp": "63",
"dst_ip": "10.0.0.2",
"gre_type": "0x88be",
"queue": "0",
"src_ip": "192.168.10.250",
"ttl": "255"
}
}
}
admin@sonic:~$ sudo config load /tmp/everflow_sample.json -y
Running command: /usr/local/bin/sonic-cfggen -j /tmp/everflow_sample.json --write-to-db
admin@sonic:~$ sudo config save -y
Running command: /usr/local/bin/sonic-cfggen -d --print-data > /etc/sonic/config_db.json