Bugzilla – Bug 142773
nm-applet does not distinguish enough between my two dialup configurations.
Last modified: 2006-01-12 22:43:51 UTC
seife@strolchi:~> rpm -qa Network* NetworkManager-kde-0.1-6 NetworkManager-gnome-0.5.1cvs20060107-2 NetworkManager-openvpn-0.3.2cvs20060104-2 NetworkManager-0.5.1cvs20060107-2 i have two dialup configurations with different interfaces, both using the same provider: seife@strolchi:~> cat /etc/sysconfig/network/ifcfg-modemB BOOTPROTO='none' DIALCOMMAND='ATDT' DIALPREFIX='' DIALPREFIXREGEX='' INIT1='ATZ' INIT2='AT &FE1 +CMEE=1' INIT3='AT +CGDCONT=1,"IP","internet.eplus.de"' INIT8='ATM0' INIT9='ATX3' MODEM_DEVICE='/dev/rfcomm0' NAME='Modem' PPPD_OPTIONS='' PROVIDER='eplus' SPEED='921600' STARTMODE='manual' UNIQUE='' USERCONTROL='yes' seife@strolchi:~> cat /etc/sysconfig/network/ifcfg-modemU BOOTPROTO='none' DIALCOMMAND='ATDT' DIALPREFIX='' DIALPREFIXREGEX='' INIT1='ATZ' INIT2='AT &FE1 +CMEE=1' INIT3='AT +CGDCONT=1,"IP","internet.eplus.de"' INIT8='ATM0' INIT9='ATX3' MODEM_DEVICE='/dev/ttyACM0' NAME='Modem' PPPD_OPTIONS='' PROVIDER='eplus' SPEED='921600' STARTMODE='manual' UNIQUE='' USERCONTROL='yes' i get two entries in the dialup connections menu, but both are the same. i will attach a screenshot.
Created attachment 63047 [details] the "Dial Up Connections" menu
it does not distinguish at all between the entries - it always dials the same provider. I moved both config files to ifcfg-modem0 and ifcfg-modem1 due to the ifup bug. modem0 is the file with rfcomm0 and modem1 the file with ttyACM0 (for usb cable). NM recognizes both configs: Jan 12 23:03:59 strolchi NetworkManager: <information> Found dial up configuration for Eplus GPRS/UMTS via Modem: modem1 Jan 12 23:03:59 strolchi NetworkManager: <information> Found dial up configuration for Eplus GPRS/UMTS via Modem: modem0 but dials always the same (the usb cable is not connected, so the dialup fails): Jan 12 23:05:24 strolchi NetworkManager: <information> Activating dialup device Eplus GPRS/UMTS via Modem (modem1) ... Jan 12 23:05:24 strolchi pppd[32347]: unrecognized option '/dev/ttyACM0' Jan 12 23:05:30 strolchi NetworkManager: <information> Activating dialup device Eplus GPRS/UMTS via Modem (modem1) ... Jan 12 23:05:30 strolchi pppd[32418]: unrecognized option '/dev/ttyACM0' And yes, i tried both entries in nm-applet ;-) my software versions: NetworkManager-0.5.1cvs20060112-1 NetworkManager-gnome-0.5.1cvs20060112-1
Ah hah! Found it. The problem is that, since they have the same identifier, a search always returns the same one. So it only happens in your specific case of having two modems with the same provider. I'll figure out a fix and update the bug once it is checked in.
Maybe just adding the interface name to the identifier would solve this (and also my need to name the interfaces "modemU" and "modemB" ;-) Or we could - more user friendly - add a NICKNAME="Bluetooth" field to ifcfg-foobar which if present would be the extra identifier, if not present the interface name (maybe only if the providers names are identical) This is the most programming effort, i know ;-) but less confusing to the users: if they have only one device - no need to show it. If they have two devices with different providers - again no need to show the device. If they have my configuration - show the nickname if present, else the device name. Users with a setup like mine probably can cope with a "ttyACM0" popping up in the user interface ;-)
The nickname field would be nice. If YaST added it, I could use that. For now, I just add the interface name, as you suggested. In fact: Fix in CVS and submitted to autobuild (although not yet built) as 0.5.1cvs20060112.