Cfg_gateway script doesn't configure as dhcp server


#1

hi,

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 cfg_gateway.sh 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: 192.168.20.1):
IP address (192.168.20.1)
Enter LAN Net Mask (default: 255.255.255.0):
net mask (255.255.255.0)
Mounting LAN interface ‘eth0’ IP: ‘192.168.20.1’, net mask: ‘255.255.255.0’
Check SIM inserted…
SIM card is inserted and unlocked (LE_SIM_READY).

Enter the Host ipaddres that the data packets to be forwarded (default: 192.168.20.20):
IP address (192.168.20.20)
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 ‘172.27.30.2’
Cleaning IP tables…
Enabling IP forwarding…
net.ipv4.ip_forward = 1
Configuring the NAT…
Configure DHCP server (Y/n): Y
Enter start IP (default: 192.168.20.10):
IP address (192.168.20.10)
Enter end IP (default: 192.168.20.100):
IP address (192.168.20.100)
Reconfiguring the DHCP server…
stopping DNS forwarder and DHCP server: dnsmasq… no /usr/bin/dnsmasq found; none killed
UNABLE TO STOP THE DHCP server

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