# Provision for Fritz!Box WAN Interface

**URL:** <https://forum.genieacs.com/t/provision-for-fritz-box-wan-interface/7062>\
**Category:** Uncategorized\
**Created:** [July 28, 2025, 2:54pm UTC](https://forum.genieacs.com/t/provision-for-fritz-box-wan-interface/7062 "2025-07-28T14:54:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [July 28, 2025, 5:14pm UTC](https://forum.genieacs.com/t/provision-for-fritz-box-wan-interface/7062/2 "2025-07-28T17:14:35Z")

</div>

Your code for creating the WAN IP instance is not correct. [See this post](https://forum.genieacs.com/t/working-with-objects-using-the-api/3415/2) for the proper syntax.

Here is some p-code to help you understand the syntax/flow:

```auto
let basePath = 'InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection';
// Clear everything out
declare(basePath + '.[]', null, {path: 0});

// Create the first interface, or it *WILL* be removed. Fill in with the appropriate values
declare(basePath + '.[Enable:true,Name:MANAGEMENT,AddressingType:DHCP, ConnectionType:IP_ROUTED]', {path: 1}, {path: 1});

// Create the second interface
declare(basePath + '.[Enable:true,Name:INTERNET_DHCP,AddressingType:DHCP, ConnectionType:IP_ROUTED]', {path: 1}, {path: 1});

```

---

_[View the full topic](https://forum.genieacs.com/t/provision-for-fritz-box-wan-interface/7062)._
