Changes

447 bytes added ,  14:31, 12 November 2020
no edit summary
Line 61: Line 61:  
'''Example''': obtaining the IP address of the mobile connection interface:
 
'''Example''': obtaining the IP address of the mobile connection interface:
   −
  root@Teltonika:~# gsmctl <span style="color:blue;">-p</span> <span style="color:purple;">wwan0</span>
+
  root@Teltonika:~# gsmctl <span style="color:blue;">-p</span> <span style="color:purple;">mob1s1a1</span>
 
  <span style="color:red;">10.139.75.221</span>
 
  <span style="color:red;">10.139.75.221</span>
   −
Where '''''wwan0''''' is the name of the mobile interface when the connection type is set to QMI (default). You can use the '''''ifconfig''''' command to check the names of existing network interfaces.
+
Where '''''mob1s1a1''''' is the name of the mobile interface when the connection type is set to QMI (default). You can get names of existing interfaces from '''''/etc/config/network''''' file.
 +
 
 +
'''Example''':
 +
root@Teltonika:~# cat /etc/config/network
 +
config interface '<span style="color:purple;">mob1s1a1</span>'
 +
      option proto 'wwan'
 +
      option modem '1-1.4'
 +
      option metric '1'
 +
      option sim '1'
 +
      option pdp '1'
 +
      option auth 'none'
 +
 +
config interface '<span style="color:purple;">mob1s2a1</span>'
 +
      option proto 'wwan'
 +
      option modem '1-1.4'
 +
      option metric '1'
 +
      option sim '2'
 +
      option pdp '1'
    
'''Possible responses''':
 
'''Possible responses''':

Navigation menu