# Change WAN connection from PPPoE to DHCP

**URL:** <https://forum.genieacs.com/t/change-wan-connection-from-pppoe-to-dhcp/4741>\
**Category:** Uncategorized\
**Created:** [November 22, 2023, 7:16am UTC](https://forum.genieacs.com/t/change-wan-connection-from-pppoe-to-dhcp/4741 "2023-11-22T07:16:34Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![khufiya](https://avatars.discourse-cdn.com/v4/letter/k/b5ac83/32.png) [@khufiya](https://forum.genieacs.com/u/khufiya)\
**Post date:** [November 22, 2023, 7:16am UTC](https://forum.genieacs.com/t/change-wan-connection-from-pppoe-to-dhcp/4741/1 "2023-11-22T07:16:34Z")

</div>

I want to change the connection type from PPPoE to DHCP through ACS.  
I changed this valuse (Device.IP.Interface.6.X\_TP\_ConnType) to DHCP or Dynamic IP not nothing changed.  
Is there any way where in we can add a new interface for DHCP or on the current PPPoE interface change the connection type to DHCP.

---

<div class="post-metadata">

**Author:** ![collerok](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/collerok/32/1498_2.png) [@collerok](https://forum.genieacs.com/u/collerok)\
**Post date:** [November 27, 2023, 5:24pm UTC](https://forum.genieacs.com/t/change-wan-connection-from-pppoe-to-dhcp/4741/2 "2023-11-27T17:24:03Z")

</div>

not sure for 100% now, but i guess its interface number 6 is tplinks hardbound to connection type of pppoe, thats why you cant change X\_TP\_ConnType no any other value

you better check interface number 1 or number two, 1 is static ip and 2 is hat to be dhcpclient

if you read tplinks [reduced\_data\_model\_decrypted.xml - Pastebin.com](https://pastebin.com/xCFB2L35) file, you can notice that parameter X\_TP\_ConnType is set to read only

---

<div class="post-metadata">

**Author:** ![khufiya](https://avatars.discourse-cdn.com/v4/letter/k/b5ac83/32.png) [@khufiya](https://forum.genieacs.com/u/khufiya)\
**Post date:** [November 29, 2023, 1:56pm UTC](https://forum.genieacs.com/t/change-wan-connection-from-pppoe-to-dhcp/4741/3 "2023-11-29T13:56:53Z")

</div>

Thanks for the reply @collerok . I managed to change the ConnType from PPPoE to DHCP but it does not change the connection type on the router UI. It stays as PPPoE but other parameters such as username, password and VLAN disappers and we lose connection.

---

<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:** [November 29, 2023, 6:59pm UTC](https://forum.genieacs.com/t/change-wan-connection-from-pppoe-to-dhcp/4741/4 "2023-11-29T18:59:27Z")

</div>

The easiest way to sort this out is to setup the CPE with PPPoE, then in GenieACS refresh all the device params. Then use the API to capture all the data for your router.

Then via the UI of your router, switch it over to DHCP, verify everything works correctly and repeat the refresh of params and capturing of all the data for your router. Then use something like [https://jsondiff.com/](https://jsondiff.com/) to diff between the two files and see what actually has to be changed to switch a router to DHCP.

---

<div class="post-metadata">

**Author:** ![khufiya](https://avatars.discourse-cdn.com/v4/letter/k/b5ac83/32.png) [@khufiya](https://forum.genieacs.com/u/khufiya)\
**Post date:** [December 3, 2023, 6:05am UTC](https://forum.genieacs.com/t/change-wan-connection-from-pppoe-to-dhcp/4741/5 "2023-12-03T06:05:45Z")

</div>

We are using declare(“InternetGatewayDevice.WANDevice.1.WANConnectionDevice._.WANIPConnection._”, null, {path: 1});  
To add a new WAN interface but it does not get created. We want to add a new interface and then delete the old one.

---

<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:** [December 4, 2023, 10:45pm UTC](https://forum.genieacs.com/t/change-wan-connection-from-pppoe-to-dhcp/4741/6 "2023-12-04T22:45:39Z")

</div>

Its not getting added because your syntax is invalid. See [this post](https://forum.genieacs.com/t/problems-creating-instances-from-provisions/2771/3) for valid syntax

---

<div class="post-metadata">

**Author:** ![Plume](https://avatars.discourse-cdn.com/v4/letter/p/2acd7d/32.png) [@Plume](https://forum.genieacs.com/u/Plume)\
**Post date:** [December 6, 2023, 3:13pm UTC](https://forum.genieacs.com/t/change-wan-connection-from-pppoe-to-dhcp/4741/7 "2023-12-06T15:13:34Z")

</div>

You should add A DHCP WAN，and del the old one. Make sure your delete PPPoE and Enable DHCP in one session, or you’ll lose connect.

To Add DHCP with no vlan, is like this:  
(1)Add:  
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.  
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.{i}.WANIPConnection.  
(2)Set:  
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.{i}.WANIPConnection.1.X\_TP\_AddressType==DHCP (string)  
(3)then set:  
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.{i}.WANIPConnection.1.X\_TP\_ServiceType==Internet (string)  
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.{i}.WANIPConnection.1.Enable==Truev (boolean)

---

<div class="post-metadata">

**Author:** ![tiger4020](https://avatars.discourse-cdn.com/v4/letter/t/49beb7/32.png) [@tiger4020](https://forum.genieacs.com/u/tiger4020)\
**Post date:** [December 10, 2023, 12:29pm UTC](https://forum.genieacs.com/t/change-wan-connection-from-pppoe-to-dhcp/4741/8 "2023-12-10T12:29:49Z")

</div>

we managed to get things working.

Now the next task is… we are able to ping the router and genie acs also shows the ping response. but when we summon the device says offline. what are we missing.

---

<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:** [December 11, 2023, 5:46pm UTC](https://forum.genieacs.com/t/change-wan-connection-from-pppoe-to-dhcp/4741/9 "2023-12-11T17:46:53Z")

</div>

Could be authentication. Could be request/session timeout. Start by verifying ACS → CPE authentication works.
