Skip to content

Commit

Permalink
Update misc.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecmd authored Feb 23, 2024
1 parent c671684 commit 48faf77
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions misc.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,28 @@ sudo config mirror_session erspan add test-erspan 172.18.0.250 172.18.0.251 10 1
See `sudo config mirror_session erspan add --help` for details what the options are.
Also see the [ACL](acl.md) page for some details about ERSPAN.

**Note:** The current CLI does not support v6 addresses as the source/destination, but from looking at the code it seems like SAI and SWSS does not have that limitation. This means that you should be able to manually insert a mirror session with IPv6 and it might work.

This is an example of a mirror session:

```json
{
"MIRROR_SESSION": {
"blackbox.sonix.int": {
"direction": "RX",
"dscp": "10",
"dst_ip": "100.100.99.1",
"gre_type": "35006",
"queue": "0",
"src_ip": "100.100.99.4",
"src_port": "Ethernet192",
"ttl": "10",
"type": "ERSPAN"
}
}
}
```

## LACP / PortChannel

You can find a example in [SONiC Command Line Interface Guide](https://github.com/sonic-net/sonic-utilities/blob/master/doc/Command-Reference.md#portchannels). If you're using this to connect to other switches and routers, make sure to set fallback to false (so that you don't make a L2 loop).
Expand Down

0 comments on commit 48faf77

Please sign in to comment.