diff --git a/resources/templates/provision/grandstream/gxp2100/{$mac}.xml b/resources/templates/provision/grandstream/gxp2100/{$mac}.xml
index 4dea5864c1..33e0d419e3 100644
--- a/resources/templates/provision/grandstream/gxp2100/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2100/{$mac}.xml
@@ -2520,7 +2520,7 @@
- 0
+ {if isset($grandstream_ipv_mode)}{$grandstream_ipv_mode}{else}0{/if}