[Bug 668613] New: ifroute fails if it was started from ifup <int>
https://bugzilla.novell.com/show_bug.cgi?id=668613 https://bugzilla.novell.com/show_bug.cgi?id=668613#c0 Summary: ifroute fails if it was started from ifup <int> Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: x86 OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: kviset@mail.ru QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.2.13) Gecko/20101203 SUSE/3.6.13-0.2.1 Firefox/3.6.13 I'm trying to auto add route for pptp connections. But using ifroute-dsl0 fails. Reproducible: Always Steps to Reproduce: 1. Create symbolik link: ln -s /etc/sysconfig/network/scripts/ifup-route /etc/sysconfig/network/if-up.d/ifup-route 2. Create /etc/sysconfig/network/ifroute-dsl0 with: 192.168.52.0 0.0.0.0 255.255.255.0 dsl0 3. Execute ifup dsl0 -o debug Actual Results: # ifup dsl0 -o debug dsl0 name: DSL Enter the password for the internet provider. Password: interface dsl0 is up executing additional global start script if-up.d/21-cifs executing additional global start script if-up.d/21-dhcpcd-hook-samba executing additional global start script if-up.d/ifup-route interface dsl0 is not up executing additional global start script if-up.d/ndp-proxy executing additional global start script if-up.d/SuSEfirewall2 Content of ifcfg-dsl0: BOOTPROTO='none' DEVICE='eth0' MODEM_IP='89.105.151.55' NAME='DSL ' PPPD_OPTIONS='' PPPMODE='pptp' PROVIDER='provider0' STARTMODE='manual' UDI='' USERCONTROL='yes' VPIVCI='' If I trying execute ifroute dsl0 after ifup dsl0, all run properly. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=668613
https://bugzilla.novell.com/show_bug.cgi?id=668613#c
wei wang
https://bugzilla.novell.com/show_bug.cgi?id=668613
https://bugzilla.novell.com/show_bug.cgi?id=668613#c1
Li Bin
https://bugzilla.novell.com/show_bug.cgi?id=668613
https://bugzilla.novell.com/show_bug.cgi?id=668613#c2
Konstantin Velichko
https://bugzilla.novell.com/show_bug.cgi?id=668613
https://bugzilla.novell.com/show_bug.cgi?id=668613#c3
Li Bin
https://bugzilla.novell.com/show_bug.cgi?id=668613
https://bugzilla.novell.com/show_bug.cgi?id=668613#c4
Konstantin Velichko
https://bugzilla.novell.com/show_bug.cgi?id=668613
https://bugzilla.novell.com/show_bug.cgi?id=668613#c5
Li Bin
https://bugzilla.novell.com/show_bug.cgi?id=668613
https://bugzilla.novell.com/show_bug.cgi?id=668613#c6
Marius Tomaschewski
User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.2.13) Gecko/20101203 SUSE/3.6.13-0.2.1 Firefox/3.6.13
I'm trying to auto add route for pptp connections. But using ifroute-dsl0 fails.
Reproducible: Always
Steps to Reproduce: 1. Create symbolik link: ln -s /etc/sysconfig/network/scripts/ifup-route /etc/sysconfig/network/if-up.d/ifup-route
This is wrong. ifup will execute ifup-route automatically.
2. Create /etc/sysconfig/network/ifroute-dsl0 with: 192.168.52.0 0.0.0.0 255.255.255.0 dsl0
Content of ifcfg-dsl0: BOOTPROTO='none' ^^^^^^^^^^^^^^^^
This should be the reason: Use BOOTPROTO='static' instead. A 'none' is for bonding slaves (and another special cases), where you want to *disable* the setup inclusive setting the interface into "up" state ("ip link set up dev XXX"), ip configuration and ifup-route run. [When (the ppp scripts/daemon call "ip link set up dev eth0" anyway; I don't know if they actually do), then you may set BOOTPROTO='none' in ifcfg-eth0 when you don't use it otherwise / as "tty" only] -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=668613
https://bugzilla.novell.com/show_bug.cgi?id=668613#c7
Li Bin
https://bugzilla.novell.com/show_bug.cgi?id=668613
https://bugzilla.novell.com/show_bug.cgi?id=668613#c8
--- Comment #8 from Konstantin Velichko
https://bugzilla.novell.com/show_bug.cgi?id=668613
https://bugzilla.novell.com/show_bug.cgi?id=668613#c9
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=668613
https://bugzilla.novell.com/show_bug.cgi?id=668613#c10
--- Comment #10 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=668613
https://bugzilla.novell.com/show_bug.cgi?id=668613#c11
--- Comment #11 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=668613
https://bugzilla.novell.com/show_bug.cgi?id=668613#c12
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=668613
https://bugzilla.novell.com/show_bug.cgi?id=668613#c13
--- Comment #13 from Konstantin Velichko
https://bugzilla.novell.com/show_bug.cgi?id=668613
https://bugzilla.novell.com/show_bug.cgi?id=668613#c14
Li Bin
https://bugzilla.novell.com/show_bug.cgi?id=668613
https://bugzilla.novell.com/show_bug.cgi?id=668613#c15
Ludwig Nussel
(In reply to comment #8)
Hmm... Seems, some things changed a lot since I've used ppp last time...
Must have been a long, long time ago then. Last time I touched the ip-up scripts was in 2004 and smpppd hasn't changed much for even longer :-)
The workflow is: - ifup dsl0 starts /etc/sysconfig/network/scripts/ifup-ppp calling smpppd-ifcfg --up what triggers smpppd to connect(?)
smpppd-ifcfg starts pppd directly itself. smpppd-ifcfg connects to smpppd to tell it about the connection status though.
would you take a look at this issue, especially why the ifup post scripts have been disabled in ip-up? Were there some problem with them?
Karsten disabled the calls due to bug 54048 in 2004. I didn't dare to touch that area again. Reading that old bug proper fix would have been to not take the link down in ifdown if DoD is configured I guess. (In reply to comment #14)
Maintenance,
Do we need a updates for this issue?
The bug (or missing feature) is really old and a workaround exists so no need for an update IMO. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=668613
https://bugzilla.novell.com/show_bug.cgi?id=668613#c16
Ludwig Nussel
participants (1)
-
bugzilla_noreply@novell.com