diff --git a/resources/templates/provision/grandstream/grp261x/{$mac}.xml b/resources/templates/provision/grandstream/grp261x/{$mac}.xml
index 68dbecda4f..17fc90c8de 100644
--- a/resources/templates/provision/grandstream/grp261x/{$mac}.xml
+++ b/resources/templates/provision/grandstream/grp261x/{$mac}.xml
@@ -737,7 +737,17 @@
- - IPv4Only
+ {if $grandstream_ipv_mode=='0'}
+ - BothAndPreferIPv4
+ {elseif $grandstream_ipv_mode=='1'}
+ - BothAndPreferIPv6
+ {elseif $grandstream_ipv_mode=='2'}
+ - IPv4Only
+ {elseif $grandstream_ipv_mode=='3'}
+ - IPv6Only
+ {else}
+ - BothAndPreferIPv4
+ {/if}