diff --git a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml
index c611b205a1..94ca66995c 100644
--- a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml
@@ -5927,15 +5927,18 @@
- 0
+{if isset($grandstream_lan_port_vlan) }
+ 1
-{if isset($grandstream_lan_port_vlan) }
+
{$grandstream_lan_port_vlan}
+
{else}
0
+ 0
{/if}