[Bug 663217] New: In YaST the Default IPv4 Gateway Device setting is not saved
https://bugzilla.novell.com/show_bug.cgi?id=663217 https://bugzilla.novell.com/show_bug.cgi?id=663217#c0 Summary: In YaST the Default IPv4 Gateway Device setting is not saved Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Major Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: andrew@joako.net QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; NET4.0C; .NET4.0E; Zune 4.7) Setting up the network the setting Default IPv4 Gateway: Device is not saved Reproducible: Always Steps to Reproduce: 1. Open YaST Network Configuration, Routing tab 2. Select a device from the dropdown menu for "Default IPv4 Gateway" 3. Follow the prompts to Ok/Save Actual Results: After the settings are saved and the same YaST pane is re-visited the setting is blank Expected Results: It should be possible to set what interface is used for the default gateway -- 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=663217
https://bugzilla.novell.com/show_bug.cgi?id=663217#c
wei wang
https://bugzilla.novell.com/show_bug.cgi?id=663217
https://bugzilla.novell.com/show_bug.cgi?id=663217#c1
Stefan Schubert
https://bugzilla.novell.com/show_bug.cgi?id=663217
https://bugzilla.novell.com/show_bug.cgi?id=663217#c2
Martin Vidner
https://bugzilla.novell.com/show_bug.cgi?id=663217
https://bugzilla.novell.com/show_bug.cgi?id=663217#c
Martin Vidner
https://bugzilla.novell.com/show_bug.cgi?id=663217
https://bugzilla.novell.com/show_bug.cgi?id=663217#c3
Martin Vidner
https://bugzilla.novell.com/show_bug.cgi?id=663217
https://bugzilla.novell.com/show_bug.cgi?id=663217#c4
--- Comment #4 from Andrew Joakimsen
https://bugzilla.novell.com/show_bug.cgi?id=663217
https://bugzilla.novell.com/show_bug.cgi?id=663217#c5
Josh Duvall
Hm, apparently you didn't. A workaround is to use a minus sign in place of the address, then the device will be saved.
The code to fix is in src/services/routing.ycp:storeRouting (translate defgw to "-" along the way)
-- 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=663217
https://bugzilla.novell.com/show_bug.cgi?id=663217#c6
Martin Vidner
So with 2 DHCP interfaces and setting default gateway "-" the route will be to the DHCP gateway on the specified network?
Oh, I think now I understand what you are asking for. That is done very differently. See the comment for DHCLIENT_PRIMARY_DEVICE in /etc/sysconfig/network/ifcfg.template, and set DHCLIENT_PRIMARY_DEVICE=yes in ifcfg-eth0 if eth0 is the interface that should get the default route. (Marius, JFYI. If I got it wrong, please reopen.) -- 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=663217
https://bugzilla.novell.com/show_bug.cgi?id=663217#c7
--- Comment #7 from Marius Tomaschewski
(In reply to comment #4)
So with 2 DHCP interfaces and setting default gateway "-" the route will be to the DHCP gateway on the specified network?
Oh, I think now I understand what you are asking for. That is done very differently.
See the comment for DHCLIENT_PRIMARY_DEVICE in
DHCLIENT_PRIMARY_DEVICE forces one interface to be a primary, that is, the DHCLIENT_SET_DEFAULT_ROUTE(=yes) and DHCLIENT_SET_HOSTNAME(=yes) settings are applied to this interface. Another way is to use the DHCLIENT_SET_DEFAULT_ROUTE setting. Set DHCLIENT_SET_DEFAULT_ROUTE=no in /etc/sysconfig/network/config and DHCLIENT_SET_DEFAULT_ROUTE=yes in the ifcfg-<interface> where you want to apply the default route. -- 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.
participants (1)
-
bugzilla_noreply@novell.com