Log in to the Avi Load Balancer CLI and use the configure networkprofile <profile name> command to enter into TCP fast-path profile mode.

For layer 3 DSR, enter the value for the DSR type as dsr_type_l3 and encapsulation type as encap_ipinip or encap_gre.

Run the following command for IPnIP encapsulation:

[admin:10-X-X-X]: > configure networkprofile <profile name>
[admin:10-X-X-X]: networkprofile> profile
[admin:10-X-X-X]: networkprofile profile> tcp_fast_path_profile
[admin:10-X-X-X]: networkprofile profile:tcp_fast_path_profile>dsr_profile dsr_type dsr_type_l3 dsr_encap_type encap_ipinip
[admin:10-X-X-X]: networkprofile profile:dsr_profile> save
[admin:10-X-X-X]: networkprofile> save

This creates the DSR profile over TCP (default L3, IPinIP encapsulation).

Run the following command for GRE encapsulation:

[admin:10-X-X-X]: > configure networkprofile <profile name>
[admin:10-X-X-X]: networkprofile> profile
[admin:10-X-X-X]: networkprofile profile> tcp_fast_path_profile
[admin:10-X-X-X]: networkprofile profile:tcp_fast_path_profile>dsr_profile dsr_type dsr_type_l3 dsr_encap_type encap_gre
[admin:10-X-X-X]: networkprofile profile:dsr_profile> save
[admin:10-X-X-X]: networkprofile> save

This creates the DSR profile over TCP (default L3, GRE encapsulation).