Bug 909163

Summary: Wicked can't handle multiple default routes
Product: [openSUSE] openSUSE Distribution Reporter: Forgotten User AsH2lXbLuE <forgotten_AsH2lXbLuE>
Component: NetworkAssignee: wicked maintainers <wicked-maintainers>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: bwiedemann, mt
Version: 13.2   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 13.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: tarball of sysconfig/network

Description Forgotten User AsH2lXbLuE 2014-12-10 05:17:16 UTC
Create the following:

ifcfg-eth0 192.168.1.10/24
ifroute-eth0 default 192.168.1.1 - eth0

ifcfg-eth1 10.1.10.10/24
ifroute-eth1 default 10.1.10.1 - eth1


Wicked will set only one default route for the first interface that comes up.  Subsequent default routes are ignored

libwicked-0-6-0.6.13-1.1.x86_64
wicked-0.6.13-1.1.x86_64
wicked-service-0.6.13-1.1.x86_64
Comment 1 Bernhard Wiedemann 2014-12-10 07:14:10 UTC
Created attachment 616498 [details]
tarball of sysconfig/network

debug/ dir contains extra debug output per
https://en.opensuse.org/openSUSE:Bugreport_wicked
Comment 2 Marius Tomaschewski 2014-12-10 09:53:54 UTC
(In reply to Bill Weidman from comment #0)
> Wicked will set only one default route for the first interface that comes
> up.  Subsequent default routes are ignored

Correct. The routes have equal priority -- use different priorities/mertics.
In static case append "metric X" (or "preference X") and "metric Y" to the
another one. In dhcp case, you can also use DHCLIENT_ROUTE_PRIORITY.

See also bug 879842 and bug 879842 (and fate#312217 for policy routing).
Comment 3 Marius Tomaschewski 2014-12-10 09:58:54 UTC
(In reply to Marius Tomaschewski from comment #2)
> See also bug 879842 and bug 879842 (and fate#312217 for policy routing).
           bug 879842 and bug 868187