Internet connection setting using a usb-modem

By using of modern usb-modem one can be simply connected to wireless networks of mobile operators and modern usb modems support the standards of the type GPRS, Edge, 3G, HSDPA.

Process of Internet connection setting in openwrt using a usb modem
comes down to adding of sections with the description to the configuration file. In this case the following packages are to be installed at the configuration stage:

          <*>  comgt
          <*>  ppp

The following section is to be added to the file /etc/config/network:

config interface 'wan'
	option proto '3g'
	option device '/dev/ttyUSB4'
	option service 'umts'
	option username 'mts'
	option password 'mts'
	option apn ''
	option type 'static'
	option defaultroute '1'

The username, password, apn are given by the operator when buying the appropriate tariff.

Also at the stage of debugging is recommended to modify the file /etc/ppp/options, to recording in the log of all operations. To do this, following lines are to be added:

logfile /var/log/mts-gprs.log

Next, perform the restart network using the command

/etc/init.d/network restart

In the output of ps we should see a line that means the successful launch daemon:

26521 root      1428 S    /usr/sbin/pppd nodetach ipparam wan ifname 3g-wan nodefaultroute usepeerdns persist maxfail 1 user mts password mts connect USE_APN=