I think I’ve solved a curious problem on Fedora 10 with wvdial and pppd not updating /etc/resolv.conf. The result is even though there is a network connection, no name resolution is possible unless I manually add the nameservers to /etc/resolv.conf.I use wvdial to connect to the Internet on mobile broadband (3G/HSDPA) using my Nokia E51 and E66. Of course, I could use NetworkManager, but why do everything the easy way?
Anyway, when Fedora 10 came out, the E51 and E66 were not recognised by NM as mobile broadband devices which is why I had to learn wvdial/pppd.One thing I noticed with wvdial (or pppd from the command line) is that they didn’t update /etc/resolv.conf even though configured to do so. Other people on the Internet seem to have encountered the same problem.The root cause of the problem is this: when the ppp interface comes up, pppd calls /etc/ppp/ip-up which calls /etc/sysconfig/network-scripts/ifup-post. Ifup-post is the magic script which populates /etc/resolv.conf. However /etc/ppp/ip-up is meant to be called with 6 arguments (say 6th arg = XXXX), then it looks for the existence of /etc/sysconfig/network-scripts/ifcfg-XXXX. Only if this file exists is ifup-post called.
Wvdial Rpm Fedora 2
Sodrum roll wvdial invokes pppd which invokes /etc/ppp/ip-up with 5 arguments! The result is ip-up looking for /etc/sysconfig/network-scripts/ifcfg.The solution is to create a dummy file /etc/sysconfig/network-scripts/ifcfg- with the following lines:##contents of /etc/sysconfig/network-scripts/ifcfg-PEERDNS=yesDEFROUTE=yesThese two lines are enough for ifup-post to do its magic with DNS /etc/resolv.conf.FIXME: Frankly I don’t know how NM does it; under NM ip-up gets called with e.g. The following argsppp0 /dev/ttyACM0 115200 119.234.159.74 10.6.6.6 /org/freedesktop/NetworkManager/PPP/0No way does /etc/sysconfig/network-scripts/ifcfg-/org/freedesktop/NetworkManager/PPP/0 exist! There must other stuff going on. Under wvdial /etc/ppp/ip-up is called e.g. Withppp0 /dev/ttyACM0 460800 119.234.145.157 10.6.6.6Notice only 5 args! BTW these scripts are highly Fedora 10 specific so this “solution” may not apply to random Linux distribution.
H.T, on said:Just lovely hack! I am using Fedora 17 x64, my ZTE usb modem AC2726 (CDMA/EVDO Rev.A) never dialed comfortably with network-manager. I searched the net read, read & read and apply every solution/work-around carefully but to no avail. I even totally changed debian distros, upgraded kernels and packages to latest ones, etc, etc & etc.
But I was forced to come to command-line and enter into stuff like editing lot of configuration files manual with lot of SUDOs and SUs. Only stable solution is WvDial and linux lovers should make scripts, applets and even light GUIs that could tackle wvdial, pppd and other network related stuff. I know it is long but necessary. You can google for every major debian distro for modem model I mentioned.BIG THANKS.
Contents.Remove the PINFirst of all use your SIM card in a normal phone and disable the PIN request if present. If the SIM card asks the PIN wvdial will not work.Failing that, you can also use mmcli, which is provided by, to unlock the SIM card:# mmcli -sim= SIMNUMBER -pin= PINwhere SIMNUMBER can be found using mmcli -list-modems and mmcli -modem=PATH INDEX.Device identificationExamine the output of$ lsusbwhich will show the vendor and product IDs of the device. Note that some devices will show two different product IDs at different times as explained below.Mode switchingOften these devices will have two modes (1) USB flash memory storage (2) USB Modem. The first mode, sometimes known as ZeroCD, is often used to deliver an internet communications program for another operating system and is generally of no interest to Linux users. Additionally some have a slot into which the user can insert an additional flash memory card.A useful utility for switching these devices into modem mode is, available in the.
Udev rules are supplied with in /lib/udev/rules.d/40-usbmodeswitch.rules. It contains entries for many devices, which it will switch to modem mode upon insertion.When a device is switched, its product ID may change to a different value. The vendor ID will remain unchanged. This can be seen in the output of lsusb.Some devices are supported in the USB serial kernel module called 'option' (after the Option devices, but not limited to just those) and may be used without usbmodeswitch.Udev itself included a utility called /lib/udev/modem-modeswitch.
Wvdial Rpm Fedora Download
In udev 157 this was renamed to /lib/udev/mobile-action-modeswitch and morphed into a tool that only switches Mobile Action cables. For other devices use usbmodeswitch.