# sys db snat.hosttraffic

**URL:** <https://community.f5.com/t/sys-db-snat-hosttraffic/60014>\
**Category:** Technical Forums\
**Tags:** tmsh, big-ip, application-delivery\
**Created:** [June 20, 2021, 6:34pm UTC](https://community.f5.com/t/sys-db-snat-hosttraffic/60014 "2021-06-20T18:34:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mostafa\_Elsayed](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/mostafa_elsayed/32/18702_2.png) [@Mostafa\_Elsayed](https://community.f5.com/u/Mostafa_Elsayed)\
**Post date:** [June 20, 2021, 6:34pm UTC](https://community.f5.com/t/sys-db-snat-hosttraffic/60014/1 "2021-06-20T18:34:52Z")

</div>

anyone can explain the below command

tmsh modify sys db snat.hosttraffic value enable

---

<div class="post-metadata">

**Author:** ![Simon\_Blakely](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@Simon\_Blakely](https://community.f5.com/u/Simon_Blakely)\
**Post date:** [June 20, 2021, 10:38pm UTC](https://community.f5.com/t/sys-db-snat-hosttraffic/60014/2 "2021-06-20T22:38:34Z")

</div>

When the host (including **bigd** ) generates traffic, it uses the host (linux) route table to pick the appropriate src IP address for the destination IP. If that src IP address is a tmm self-IP, then the packet is passed into tmm.

If _tmm_ has a different view of the route to the destination IP (due to dynamic routing information, or different routing metrics when there are multiple possible routes), then the selected src IP may not be optimal, or may even fail to reach the destination.

When **snat.hosttraffic** is enabled, _tmm_ can look at the host-sourced traffic, and then SNAT the src IP to the best src IP (which can change the egress vlan) based on the _tmm_ routing table, and ignore the original host src IP as determined by the host routing table.
