quarta-feira, 5 de novembro de 2008
sábado, 1 de novembro de 2008
Configurar o modem 3G ZTE 622 da Claro no linux
Não ligue o modem no computador ainda.
Crie o arquivo abaixo na pasta /etc/udev/rules.d/ com o nome 10-zte-mf622.rules:
ACTION!="add", GOTO="ZTE_End"
# Is this the ZeroCD device?
SUBSYSTEM=="usb", SYSFS{idProduct}=="2000",
SYSFS{idVendor}=="19d2", GOTO="ZTE_ZeroCD"
# Is this the actual modem?
SUBSYSTEM=="usb", SYSFS{idProduct}=="0001",
SYSFS{idVendor}=="19d2", GOTO="ZTE_Modem"
LABEL="ZTE_ZeroCD"
# This is the ZeroCD part of the card, remove
# the usb_storage kernel module so
# it does not get treated like a storage device
#RUN+="/sbin/rmmod usb_storage"
RUN+="/usr/local/sbin/usb_modeswitch -d 1 -v 0x19d2 -p 0x2000 -V 0x19d2 -P 0x0001"
LABEL="ZTE_Modem"
# This is the Modem part of the card, let's
# load usbserial with the correct vendor
# and product ID's so we get our usb serial devices
RUN+="/sbin/modprobe usbserial vendor=0x19d2 product=0x0001",
# Make users belonging to the dialout group
# able to use the usb serial devices.
#MODE="660", GROUP="dialout"
MODE="660", GROUP="tty"
LABEL="ZTE_End"
Você pode baixar o arquivo neste link: http://w15.easy-share.com/1702265028.html
Reinicie o linux, é necessário para que este arquivo seja carregado.
Agora edite o arquivo wvdial.conf e adicione as linhas abaixo:
[Dialer claro]
Init2 = ATZ
Init3 = AT+CGDCONT=1,"ip","bandalarga.claro.com.br"
Stupid Mode = 1
ISDN = 0
Phone = *99***1#
Ask Password = 0
Modem = /dev/ttyUSB0
Username = claro
Dial Command = ATD
Password = claro
Baud = 460800
Você pode baixar o arquivo neste link: http://w15.easy-share.com/1702265071.html
Agora basta conectar o modem, esperar uns 30 segundos e no terminal digitar:
wvdial claro
Pronto,
basta usar.
Crie o arquivo abaixo na pasta /etc/udev/rules.d/ com o nome 10-zte-mf622.rules:
ACTION!="add", GOTO="ZTE_End"
# Is this the ZeroCD device?
SUBSYSTEM=="usb", SYSFS{idProduct}=="2000",
SYSFS{idVendor}=="19d2", GOTO="ZTE_ZeroCD"
# Is this the actual modem?
SUBSYSTEM=="usb", SYSFS{idProduct}=="0001",
SYSFS{idVendor}=="19d2", GOTO="ZTE_Modem"
LABEL="ZTE_ZeroCD"
# This is the ZeroCD part of the card, remove
# the usb_storage kernel module so
# it does not get treated like a storage device
#RUN+="/sbin/rmmod usb_storage"
RUN+="/usr/local/sbin/usb_modeswitch -d 1 -v 0x19d2 -p 0x2000 -V 0x19d2 -P 0x0001"
LABEL="ZTE_Modem"
# This is the Modem part of the card, let's
# load usbserial with the correct vendor
# and product ID's so we get our usb serial devices
RUN+="/sbin/modprobe usbserial vendor=0x19d2 product=0x0001",
# Make users belonging to the dialout group
# able to use the usb serial devices.
#MODE="660", GROUP="dialout"
MODE="660", GROUP="tty"
LABEL="ZTE_End"
Você pode baixar o arquivo neste link: http://w15.easy-share.com/1702265028.html
Reinicie o linux, é necessário para que este arquivo seja carregado.
Agora edite o arquivo wvdial.conf e adicione as linhas abaixo:
[Dialer claro]
Init2 = ATZ
Init3 = AT+CGDCONT=1,"ip","bandalarga.claro.com.br"
Stupid Mode = 1
ISDN = 0
Phone = *99***1#
Ask Password = 0
Modem = /dev/ttyUSB0
Username = claro
Dial Command = ATD
Password = claro
Baud = 460800
Você pode baixar o arquivo neste link: http://w15.easy-share.com/1702265071.html
Agora basta conectar o modem, esperar uns 30 segundos e no terminal digitar:
wvdial claro
Pronto,
basta usar.
Compartilhar internet 3G com linux
Se você precisar compartilhar internet 3G no linux basta usar os comando abaixo:
/sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
echo "1" > /proc/sys/net/ipv4/ip_forward
se quiser pode baixar esse script neste link: http://w15.easy-share.com/1702264966.html
/sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
echo "1" > /proc/sys/net/ipv4/ip_forward
se quiser pode baixar esse script neste link: http://w15.easy-share.com/1702264966.html
Assinar:
Postagens (Atom)