HOW TO GET THE INFO FROM HUAWEI next generation devices
Here assuming have installed Huawei drivers only and not the rules: POST #75
read this and the info carefully before committing : Here this device uses /dev/ttyUSB2 for configuration data and my APN = 3internet
you will have to check which port your devices use , there are plenty of how to find the ports in this thread
also can use the script posted:OST #61
open up first terminal
open up second terminal
Code:
echo -e "ATZ\r" > /dev/ttyUSB2
Code:
echo -e "AT^NDISDUP=1,1,3internet\r" > /dev/ttyUSB2
Code:
echo -e "AT^DHCP?\r" > /dev/ttyUSB2
gives out
Code:
DHCP:cd953a0a,fcffffff,ce953a0a,ce953a0a,118b1fac,118b1eac,21600000,0
decode the message
Code:
perl -e 'print join(",",map { join(".", unpack("C4", pack("L", hex))) } split /,/, shift),"\n"' cd953a0a,fcffffff,ce953a0a,ce953a0a,118b1fac
gives something like
Code:
10.58.149.205,255.255.255.252,10.58.149.206,10.58.149.206,172.31.139.17
results = now can configure the interface
eth* 10.58.149.205 netmask 255.255.255.252
default route 10.58.149.206
server 172.31.139.17
Have Fun
alexfish
Bookmarks