INSTALLING AND CONFIGURING USB 3G DATA ON CENTOS/RHEL
To install wvdial usb_modeswitch usb_modeswitch packages for USB 3G modem.
$ sudo yum install wvdial usb_modeswitch-data usb_modeswitch
To check log
$ dmesg | grep tty
Plug and connected and detected for USB 3G modem on CENTOS/RHEL. To configure wvdial
$ vi /etc/wvdial.conf
The content wvdial file as below
[Dialer 3gviettel]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","e-internet"
Stupid Mode = 1
Modem Type = Analog Modem
ISDN = 0
Phone = *99#
Modem = /dev/ttyUSB0
New PPPD = yes
Username = { }
Password = { }
Baud = 460800
Auto DNS = off
check DNS =no
Auto Reconnect = on
Loading module USB 3G/4G modem
$ modprobe usb_wwan usb-storage usbserial
Running wvdial for 3gviettel
$ wvdial 3gviettel &
Yeh, You can add DNS in /etc/resolv.conf file.
$ vi /etc/resolv.conf
The content resolv.conf as below
nameserver 8.8.8.8
nameserver 208.67.222.222
Debugging steps for USB 3G/4G Modem
To use usb-devices or lsusb command
$ usb-devices
Or
$ lsusb
Conclusion
Thought the article, How to "INSTALLING AND CONFIGURING USB 3G DATA ON CENTOS/RHEL" as above . You want to become Devops :) . I hope will this your helpful.Thanks for reading INSTALLING AND CONFIGURING USB 3G DATA ON CENTOS/RHEL My blog Zimbra Mail Server,linux,bash script,centos,linux command I hope this is useful.