Bugzilla – Bug 143729
ifup broken for modems.
Last modified: 2006-06-13 10:37:08 UTC
Network is configured to use networkmanager root@strolchi:/etc/sysconfig/network> ifup modem0 Network interface is managed from NetworkManager NetworkManager will be advised to set up modem0 but it cannot be assured from here. root@strolchi:/etc/sysconfig/network> NetworkManager uses ifup to set up modem connections. BOOM.
Switch of NM and modem will work. File a bug against NM if it cannot deal with modems.
it does not work, so it cannot be "fixed".
since this now seems to be a NM bug...
It is not an NM bug. NM needs "ifup modem0" to work.
It is a NM bug if it cannot deal with modems. It seems NM is good for almost nothing. It is just a blown up ifplugd. Wow, powerfull.
I am sorry that you feel that way. NetworkManager uses the networking scripts for PPP connections and nothing else. This is because the SUSE dialup infrastructure is very advanced and complete and I did not want to spend my initial development time reimplementing the wheel. In the future, NM will hopefully handle PPP itself, but for now it relies on ifup and ifdown. "ifup modem0" worked prior to the latest changes that deliberate bail out when it is detected that NM is running. I understand the intention behind this change -- it makes sense -- but it conflicts with NM with respect to PPP devices. So, just for PPP devices, we need to revert the check and allow NM to ifup/ifdown the interface.
I'm happy to work on this. Christian, are you willing to accept patches for sysconfig? One that will be removed once we have a proper backend for dial-up devices in NM.
(mid-air collision. NEEDINFO from Christian was my intention)
Thank you, Timo. I would be happy to help, too. I think we just need a very simple change, to allow PPP devices to be up'ed and down'ed even if NM is running.
no sysconfig patches needed. I'll write two scripts that take the interface name as an argument and dial in / hangup the interface via cinternet.
No that makes still much less sense. ifup is that script.
Wait until tomorrow. I'm in a very bad mood today.
but this would also solve my "ifup modemU" problem :-) and it is already finished.
Created attachment 63875 [details] script to dial-in / hangup via smpppd. Robert, this works for me (may probably need some tweaking for dial-on-demand setups, i'll try this with ISDN) and could be used instead of "ifup $iface" and "ifdown $iface". Just create a symlink nm-hangup to nm-dial and call this with the interface name. e.g: nm-dial modem0
Danke, seife! Looks good to me, but let's see what Zoz says. He is right that ifup is supposed to be "the" script in this case. Whatever he thinks is best. But, if needed, this is great.
Zoz says, i'll fix that, no doubt. ;)
ifup will now assume NM_CONTROLLED=no if - interfacetype is eth, tr or wlan - NM_CONTROLLED is not set in config file I'll submit that for beta2. Is that ok for you?
(In reply to comment #17) > ifup will now assume NM_CONTROLLED=no if > - interfacetype is eth, tr or wlan interfacetype is NOT(eth OR tr OR wlan) of course. > - NM_CONTROLLED is not set in config file > > I'll submit that for beta2. > > Is that ok for you? fine with me. NM right now really only handles LAN/WLAN, the rest of the network is not handled by NM.
Fine with me, too. Do we need YaST bits to ensure that NM_CONTROLLED is not set for modems? It might already be the case.
YaST does not know this variable. package sysconfig is submitted.
Alright, thanks.
works in final