# \[WP760x\]\[ECM\] How to change default IP of CDC-ECM

**URL:** <https://forum.legato.io/t/wp760x-ecm-how-to-change-default-ip-of-cdc-ecm/4841>\
**Category:** Legato Linux distribution (Yocto project)\
**Created:** [November 18, 2019, 12:32am UTC](https://forum.legato.io/t/wp760x-ecm-how-to-change-default-ip-of-cdc-ecm/4841 "2019-11-18T00:32:46Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![HIROKI11976](https://avatars.discourse-cdn.com/v4/letter/h/a9adbd/32.png) [@HIROKI11976](https://forum.legato.io/u/HIROKI11976)\
**Post date:** [November 18, 2019, 12:32am UTC](https://forum.legato.io/t/wp760x-ecm-how-to-change-default-ip-of-cdc-ecm/4841/1 "2019-11-18T00:32:46Z")

</div>

Question;  
Could you tell me the way how to change default IP address of CDC-ECM?

Back Ground:  
In order to avoid to access from third party, they would like to change default IP of CDC-ECM from 192.168.2.2.

---

<div class="post-metadata">

**Author:** ![JordanZhao](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jordanzhao/32/789_2.png) [@JordanZhao](https://forum.legato.io/u/JordanZhao)\
**Post date:** [November 18, 2019, 2:07am UTC](https://forum.legato.io/t/wp760x-ecm-how-to-change-default-ip-of-cdc-ecm/4841/2 "2019-11-18T02:07:38Z")

</div>

You can use below command to change the default IP of CEC-ECM.  
configEcm on [target \<ipV4\_addr\>] host \<ipV4\_addr\> netmask \<ipV4\_netmask\>]

Make sure you change the corresponding IP rules first.

---

<div class="post-metadata">

**Author:** ![HIROKI11976](https://avatars.discourse-cdn.com/v4/letter/h/a9adbd/32.png) [@HIROKI11976](https://forum.legato.io/u/HIROKI11976)\
**Post date:** [November 21, 2019, 4:41am UTC](https://forum.legato.io/t/wp760x-ecm-how-to-change-default-ip-of-cdc-ecm/4841/3 "2019-11-21T04:41:32Z")

</div>

Hi, Jordan

Regarding to “configEcm”, does it changed only “/etc/legato/ecm.conf” ?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [November 21, 2019, 6:43am UTC](https://forum.legato.io/t/wp760x-ecm-how-to-change-default-ip-of-cdc-ecm/4841/4 "2019-11-21T06:43:11Z")

</div>

you can have a look on the script on the target module

/legato/systems/current/bin/configEcm

---

<div class="post-metadata">

**Author:** ![MVAJGER](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@MVAJGER](https://forum.legato.io/u/MVAJGER)\
**Post date:** [July 31, 2023, 2:35pm UTC](https://forum.legato.io/t/wp760x-ecm-how-to-change-default-ip-of-cdc-ecm/4841/5 "2023-07-31T14:35:12Z")

</div>

What if I used configEcm on but not changed the corresponding IP rules, and I cannot ssh into the device? 😕

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [July 31, 2023, 2:47pm UTC](https://forum.legato.io/t/wp760x-ecm-how-to-change-default-ip-of-cdc-ecm/4841/6 "2023-07-31T14:47:46Z")

</div>

then you might need to use “configEcm show” in UART2 debug console.

---

<div class="post-metadata">

**Author:** ![MVAJGER](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@MVAJGER](https://forum.legato.io/u/MVAJGER)\
**Post date:** [July 31, 2023, 2:51pm UTC](https://forum.legato.io/t/wp760x-ecm-how-to-change-default-ip-of-cdc-ecm/4841/7 "2023-07-31T14:51:00Z")

</div>

any related guide how to use debug console?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [July 31, 2023, 3:13pm UTC](https://forum.legato.io/t/wp760x-ecm-how-to-change-default-ip-of-cdc-ecm/4841/8 "2023-07-31T15:13:07Z")

</div>

are you using mangoh red board?  
just plug the usb cable to uart2 port in mangoh red board

---

<div class="post-metadata">

**Author:** ![MVAJGER](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@MVAJGER](https://forum.legato.io/u/MVAJGER)\
**Post date:** [August 1, 2023, 7:12am UTC](https://forum.legato.io/t/wp760x-ecm-how-to-change-default-ip-of-cdc-ecm/4841/9 "2023-08-01T07:12:18Z")

</div>

Hey @jyijyi I connected via uart2 but I only access the at console, how can I enter configEcm in this case?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [August 1, 2023, 7:17am UTC](https://forum.legato.io/t/wp760x-ecm-how-to-change-default-ip-of-cdc-ecm/4841/10 "2023-08-01T07:17:51Z")

</div>

what is the return of AT!MAPUART?

you need to set the UART2 as “16”  
i.e.

```auto
AT!ENTERCND="A710"
AT!MAPUART=16,2
AT!RESET

```

---

<div class="post-metadata">

**Author:** ![MVAJGER](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@MVAJGER](https://forum.legato.io/u/MVAJGER)\
**Post date:** [August 1, 2023, 7:23am UTC](https://forum.legato.io/t/wp760x-ecm-how-to-change-default-ip-of-cdc-ecm/4841/11 "2023-08-01T07:23:43Z")

</div>

!mapuart:1, 16

So this is not what we need, right?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [August 1, 2023, 7:27am UTC](https://forum.legato.io/t/wp760x-ecm-how-to-change-default-ip-of-cdc-ecm/4841/12 "2023-08-01T07:27:12Z")

</div>

then UART2 is already in linux console mode, what do you see in UART2 when boot up?

---

<div class="post-metadata">

**Author:** ![MVAJGER](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@MVAJGER](https://forum.legato.io/u/MVAJGER)\
**Post date:** [August 1, 2023, 7:34am UTC](https://forum.legato.io/t/wp760x-ecm-how-to-change-default-ip-of-cdc-ecm/4841/13 "2023-08-01T07:34:52Z")

</div>

Nothing, i think im in at mode. I mean no bootup information.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [August 1, 2023, 7:41am UTC](https://forum.legato.io/t/wp760x-ecm-how-to-change-default-ip-of-cdc-ecm/4841/14 "2023-08-01T07:41:12Z")

</div>

I guess you are communicating with UART1 instead of UART2:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/e/e6677c757d788a5f827a8e7a3b01bac9d87a4061.png)

---

<div class="post-metadata">

**Author:** ![MVAJGER](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@MVAJGER](https://forum.legato.io/u/MVAJGER)\
**Post date:** [August 1, 2023, 7:56am UTC](https://forum.legato.io/t/wp760x-ecm-how-to-change-default-ip-of-cdc-ecm/4841/15 "2023-08-01T07:56:00Z")

</div>

If I understand correctly, it should be connected to a different PIN, because the one I’m on now is UART1?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [August 1, 2023, 8:00am UTC](https://forum.legato.io/t/wp760x-ecm-how-to-change-default-ip-of-cdc-ecm/4841/16 "2023-08-01T08:00:45Z")

</div>

i guess so, which board are you using ?  
mangoh green/red/yellow board?

---

<div class="post-metadata">

**Author:** ![MVAJGER](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@MVAJGER](https://forum.legato.io/u/MVAJGER)\
**Post date:** [August 1, 2023, 8:06am UTC](https://forum.legato.io/t/wp760x-ecm-how-to-change-default-ip-of-cdc-ecm/4841/17 "2023-08-01T08:06:09Z")

</div>

custom electronics, but the chip is the same as red… it is poured out and i can’t access uart2

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [August 1, 2023, 8:10am UTC](https://forum.legato.io/t/wp760x-ecm-how-to-change-default-ip-of-cdc-ecm/4841/18 "2023-08-01T08:10:56Z")

</div>

you have the USB AT port, right?  
If yes, you can type

```auto
AT!ENTERCNd="A710"
at!mapuart=17,2
AT!mapuart=16,1
AT!reset

```

this will switch the debug console to UART1.  
but there will be no more AT port in UART.  
You need to make sure you have the USB AT port now.

---

<div class="post-metadata">

**Author:** ![MVAJGER](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@MVAJGER](https://forum.legato.io/u/MVAJGER)\
**Post date:** [August 1, 2023, 8:18am UTC](https://forum.legato.io/t/wp760x-ecm-how-to-change-default-ip-of-cdc-ecm/4841/19 "2023-08-01T08:18:53Z")

</div>

Thank you so much @jyijyi , it works!! :') I have linux console and AT aswell from different ttyUSB
