
Version 2.0
Command Line Interface (CLI) Management
194
Mellanox Technologies
Syntax:
rules show
Example:
10G(config-tfm)# rules show
--- Total number of entries 3---
entry Source Source-mask Dest Dest-mask Interface Service Routing Status Log
|--|----------|-------------|--------|-----------|---------|----------|--------|-------|
1 200.20.0.0 255.255.0.0 200.10.0.0 255.255.0.0 if0 UDP discard active 8
2 182.24.56.0 255.255.255.0 195.23.12.0 255.255.255.0 if0 TCP discard active 2
3 any any any any if0 any tunneling active 1
4 5.34.1.49 255.0.0.0 any any if0 any discard active 15
5 4.1.1.49 255.0.0.0 any any if0 any discard active 8
6 3.1.1.49 255.0.0.0 any any if0 any discard active 1
7 5.34.1.48 255.0.0.0 any any if0 any discard active 15
8 4.1.1.48 255.0.0.0 any any if0 any discard active 8
9 3.1.1.48 255.0.0.0 any any if0 any discard active 1
10 5.34.1.47 255.0.0.0 any any if0 any discard active 15
11 4.1.1.47 255.0.0.0 any any if0 any discard active 8
12 3.1.1.47 255.0.0.0 any any if0 any discard active 1
rules update destination
Description:
Updates the TFM destination rules.
Syntax:
rules update destination [row
[1..1000]][Dest-ip,any][Dest-ip-mask,any]
Example:
sRB-20210G-61f0(config-tfm)# rules update destination 2 any any
Expected results:
sRB-20210G-61f0(config-tfm)# rules show
entry Source Source-mask Dest Dest-mask Interface Service Routing Status Log
|------|--------|------------|-----|----------|-----------|----------|---------|-------|--
1 any any any any if0 any tunneling active 1
2 any any any any if0 MyUDP discard active 2
rules update interface
Description:
Updates the interface of the matching rule.
Syntax:
rules update interface [row [1..1000]][interface]
Example:
sRB-20210G-61f0_73(config-tfm)# rules update interface 2 if1
rules update log
Description:
Updates the matching rule log counter.
Syntax:
rules update log [row [1..1000]] [no,1-15]
Example:
sRB-20210G-61f0(config-tfm)# rules update log 2 2