diff --git a/resources/templates/provision/grandstream/grp2612w/{$mac}.xml b/resources/templates/provision/grandstream/grp2612w/{$mac}.xml
index cb927e0014..b2c271e71b 100644
--- a/resources/templates/provision/grandstream/grp2612w/{$mac}.xml
+++ b/resources/templates/provision/grandstream/grp2612w/{$mac}.xml
@@ -1919,7 +1919,7 @@
- 2
+ {if isset($grandstream_ipv_mode)}{$grandstream_ipv_mode}{else}0{/if}