Cfg_gateway script doesn't configure as dhcp server


We are using the wp7608 and we had succesfull ue attach.
We have configured the gateway between cellular network and with the ethernet interface via HSIC ethernet bridge IOT module.

How ever when we run the script

MangOH gateway configuration
Enter WAN (cellular) interface (default: rmnet_data0):
WAN interface rmnet_data0
Enter LAN interface (default: eth0):
LAN interface eth0
Enter LAN IP (default:
IP address (
Enter LAN Net Mask (default:
net mask (
Mounting LAN interface ‘eth0’ IP: ‘’, net mask: ‘’
Check SIM inserted…
SIM card is inserted and unlocked (LE_SIM_READY).

Enter the Host ipaddres that the data packets to be forwarded (default:
IP address (
Enter the port data packets to be forwarded in Downlink (default: 1234):
Mounting the relay interface ‘rmnet_data0’…
Enabling the radio on ‘rmnet_data0’…
Radio power is already set to ON.
Enter APN (default: b3.mttm):
Enabling the data connection on ‘rmnet_data0’ using APN ‘b3.mttm’…
Setting up profile 1
Setting access point name … ok
Setting packet data protocol … ok
Setting Authentication … ok
Connecting … ok
Checking if device is up … ok
Routing … ok
Updating /etc/resolv.conf … ok
Testing connection … Waiting for data connection on ‘rmnet_data0’…
Relay interface ‘rmnet_data0’ IP address is ‘’
Cleaning IP tables…
Enabling IP forwarding…
net.ipv4.ip_forward = 1
Configuring the NAT…
Configure DHCP server (Y/n): Y
Enter start IP (default:
IP address (
Enter end IP (default:
IP address (
Reconfiguring the DHCP server…
stopping DNS forwarder and DHCP server: dnsmasq… no /usr/bin/dnsmasq found; none killed

The script is getting failed in configuring the modem a dhcp server. Hence it is not able to assign the ipaddress to the HOST Automatically. Below is the output of the script

1 Like

I am having the same problem, has anyone solved this issue yet???

How about comment out the "exit 1 " in the script?

echo "Reconfiguring the DHCP server..."
/etc/init.d/dnsmasq stop
if [ "$?" -ne 0 ]; then
    echo "UNABLE TO STOP THE DHCP server"
   #     exit 1