# MBIM auto-connect in EM9191

**URL:** <https://forum.sierrawireless.com/t/mbim-auto-connect-in-em9191/27035>\
**Category:** MC/EM Series\
**Created:** [May 16, 2022, 4:17pm UTC](https://forum.sierrawireless.com/t/mbim-auto-connect-in-em9191/27035 "2022-05-16T16:17:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinblue839](https://avatars.discourse-cdn.com/v4/letter/k/439d5e/32.png) [@kevinblue839](https://forum.sierrawireless.com/u/kevinblue839)\
**Post date:** [May 16, 2022, 4:17pm UTC](https://forum.sierrawireless.com/t/mbim-auto-connect-in-em9191/27035/1 "2022-05-16T16:17:40Z")

</div>

Hi Community,

I was looking for ways to auto-connect EM9191 without the need of MM and NM. I came across the following link,  
[How to auto connect to network by MC7304 in Linux - #10 by shawn.hsiao](https://forum.sierrawireless.com/t/how-to-auto-connect-to-network-by-mc7304-in-linux/21733/10). Where an interesting point was shared, if DHCP client is used, the modem would auto-connect. I had used the mbim-network to connect and udhcpc to assign IP to the wwan0 interface. The interface was up and traffic was flowing fine for the past few days. Later, I could see that IP lease was failing and the mbim-network status was showing as deactivated. Upon triggering the connect again, IP address was assigned and traffic flow had resumed.

**Logs**

Periodic IP renewal for every hour  
udhcpc[3752]: wwan0: renew: IP=10.133.156.170/255.255.255.252 router=10.133.156.169 domain="" dns=“49.45.0.1” lease=7200

lease fail  
udhcpc[3752]: message repeated 102 times: [wwan0: configuration failed: leasefail:]  
udhcpc[3752]: wwan0: configuration failed: leasefail:

Post-reconnection  
udhcpc[3752]: wwan0: bound: IP=10.133.156.170/255.255.255.252 router=10.133.156.169 domain="" dns=“49.45.0.1” lease=7200

I am not sure of what i am missing, can some help ? I had tried checking MBIM functionality with DHCP on MC7430, DHCP server is not supported on MC7430. I there any mbimcli or AT command to check if modem supporters dhcp server ?

Thanks,  
kk
