You are not logged in.

#1 2014-09-06 20:13:52

stozi
Member
Registered: 2010-03-02
Posts: 149

USB 3G/4G with netctl

I've been trying to follow these threads to get my Huawei E3276 working on netctl:

https://bbs.archlinux.org/viewtopic.php?id=167801
https://bbs.archlinux.org/viewtopic.php?id=175383
https://bbs.archlinux.org/viewtopic.php?id=181762

my working wvdial.conf:

$ cat /etc/wvdial.conf 

[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0
Modem Type = Analog Modem
Phone = *99#
ISDN = 0
Username = ''
Init1 = ATZ
Password = ''
Stupid Mode = 1
Modem = /dev/ttyUSB0
Baud = 9600

my netctl profile:

$ cat /etc/netctl/mobily 
Description='Mobily'
Interface=ttyUSB0
Connection=mobile_ppp
AccessPointName=web2
Mode=None

a working wvdial connection looks like:

$ wvdial
--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0
ATQ0 V1 E1 S0=0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Sat Sep  6 22:54:29 2014
--> Pid of pppd: 1036
--> Using interface ppp0
--> pppd: æ[7f]
--> pppd: æ[7f]
--> pppd: æ[7f]
--> pppd: æ[7f]
--> pppd: æ[7f]
--> pppd: æ[7f]
--> local  IP address 109.83.118.181
--> pppd: æ[7f]
--> remote IP address 10.64.64.64
--> pppd: æ[7f]
--> primary   DNS address 86.51.34.18
--> pppd: æ[7f]
--> secondary DNS address 86.51.35.18
--> pppd: æ[7f]

and here's what happens if I try using netctl:

# netctl start mobily

$ netctl status mobily
● netctl@mobily.service - Networking for netctl profile mobily
   Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
   Active: active (exited) since Sat 2014-09-06 22:01:03 AST; 1h 4min ago
     Docs: man:netctl.profile(5)
  Process: 582 ExecStart=/usr/lib/network/network start %I (code=exited, status=0/SUCCESS)
 Main PID: 582 (code=exited, status=0/SUCCESS)

$ journalctl -xn
-- Logs begin at Sun 2014-01-05 21:43:20 AST, end at Sat 2014-09-06 23:04:33 AST. --
Sep 06 22:54:29 meru pppd[1036]: Could not determine remote IP address: defaulting to 10.64.64.64
Sep 06 22:54:29 meru pppd[1036]: Cannot determine ethernet address for proxy ARP
Sep 06 22:54:29 meru pppd[1036]: local  IP address 109.83.118.181
Sep 06 22:54:29 meru pppd[1036]: remote IP address 10.64.64.64
Sep 06 22:54:29 meru pppd[1036]: primary   DNS address 86.51.34.18
Sep 06 22:54:29 meru pppd[1036]: secondary DNS address 86.51.35.18
Sep 06 23:04:33 meru pppd[1036]: Terminating on signal 15
Sep 06 23:04:33 meru pppd[1036]: Connect time 10.1 minutes.
Sep 06 23:04:33 meru pppd[1036]: Sent 26031 bytes, received 51289 bytes.
Sep 06 23:04:33 meru pppd[1036]: Connection terminated.

seems that where netctl status says active it is actually refering to previous wvdial uptime.

Last edited by stozi (2014-09-24 18:09:08)

Offline

Board footer

Powered by FluxBB