Jump to content

Troubleshooting SNATs


Cowboy Denny

Recommended Posts

Its pretty difficult to troubleshoot a scenario where the Virtual Server pulls a SNAT address from a SNATPool.

SNATs_F5.png.c57462ceb24708f222d71a6fd740d7c1.png

Here are some commands that may help troubleshoot but no promises

Show SNAT Pools and the statistics associated by running: tmsh show /ltm snatpool

tmsh show /ltm snatpool

-----------------------------------
Ltm::SNAT Pool: SINGLE_IP_SNAT_POOL
-----------------------------------
Traffic                ServerSide
  Bits In                  436.1M
  Bits Out                   1.2G
  Packets In               340.5K
  Packets Out              268.3K
  Current Connections           0
  Maximum Connections          14
  Total Connections         33.0K

---------------------------------
Ltm::SNAT Pool: SNATS_DEV1
---------------------------------
Traffic                ServerSide
  Bits In                  122.3G
  Bits Out                   1.9T
  Packets In                75.4M
  Packets Out              539.6M
  Current Connections           0
  Maximum Connections         496
  Total Connections          2.9M

You may want to see what IP addresses are associated with the SNAT Pool and for that you have to run a list command like this: tmsh list /ltm snatpool

tmsh list /ltm snatpool
ltm snatpool SINGLE_IP_SNAT_POOL {
    members {
        10.47.66.97
    }
}
ltm snatpool SNATS_DEV1 {
    members {
        10.47.66.98
        10.47.66.99
        10.47.66.125
        10.47.66.126
    }
}

If you are wanting more details on a specific SNAT IP you can run the following command: tmsh show /sys connection ss-client-addr <SNAT IP address>

tmsh show sys connection ss-client-addr 10.47.66.98
Sys::Connections
Total records returned: 0

You can see how many connections are using that specific SNAT IP by running this command: tmsh show /ltm snat-translation <SNAT IP address>

Also you can see the number of concurrent connections going through the SNAT by running: tmsh show /ltm snat

Link to comment
Share on other sites



×
×
  • Create New...