
Connected IO Inc. CONFIDENTIAL
EMU CAT1 Modem User Manual Revision: V.05
P a g e
|
23
The NCM Network Interface of the Ubuntu-PC is not still configured with the addresses provided by the
module. Use the following two commands to get IP address, Gateway address, and DNS address. Type in
the commands using <p_cid>=4 (the same value used with AT+CGDCONT). After getting the addresses
use them to configure the NCM Network Interface, see § 6.3
AT+CGPADDR=4
+CGPADDR: 4,"10.162.34.196"
OK
AT+CGCONTRDP=4
+CGCONTRDP:4,6,"string from network","10.162.34.196.255.0.0.0","10.162.34.197","10.207.43.46",
"0.0.0.0","0.0.0.0","0.0.0.0"
OK
6.3 PC Network Interface Configuration
Configure the usb0 network interface using the addresses returned by the AT+CGPADDR and
AT+CGCONTRDP commands, see § 6.2.
•
IP address
•
Gateway address
•
DNS address
sudo ifconfig usb0
10.162.34.196
netmask 255.255.255.0 up <enter>
sudo route add default gw
10.162.34.197
<enter>
sudo arp -s
10.162.34.197 11:22:33:44:55:66
<enter>
Now, the interface is able to carry on traffic. Check it using
ping
command with the IP address of the
primary DNS of Google.
ping 8.8.8.8<enter>
To use URL instead of IP addresses the DNS must be configured; modify the file
/etc/resolv.conf
adding
the following line at the end of the file.
nameserver
10.207.43.46