|
Bugzilla – Full Text Bug Listing |
| Summary: | Configuring multiple default gateways in wicked via yast result in unpredictable routing | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Tumbleweed | Reporter: | Robert Mahar <bob> |
| Component: | Network | Assignee: | wicked maintainers <wicked-maintainers> |
| Status: | RESOLVED FEATURE | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | mt |
| Version: | Current | ||
| Target Milestone: | --- | ||
| Hardware: | x86-64 | ||
| OS: | openSUSE Tumbleweed | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Robert Mahar
2021-07-14 21:03:55 UTC
NB: In the report I missed the last line: - - - - test:/etc/sysconfig/network # cat ifroute-ens??? default 10.10.10.1 - ens192 default 192.168.11.1 - ens224 default 172.16.12.1 - ens160 <-- - - - - all three interfaces show a default route configured when looking at the files. This setup does not work properly. Routes for same destination + metric (+ tos) are conflicting routes, use policy routing to configure this properly - without yast2, which does not support such setups (thus not a bug, but a not implemented feature): ifcfg-ens192: IPADDR=10.10.10.10/24 ifroute-ens192: 10.10.10.0/24 - - - table 192 src 10.10.10.10 default 10.10.10.1 - - table 192 # Further: choose an interface to have route in the main table: default 10.10.10.1 # or use a different metric on each interface, e.g. 10 here: #default 10.10.10.1 - - metric 10 ifrule-ens192: ipv4 from 10.10.10.10 lookup 192 ifcfg-ens224: IPADDR=192.168.11.11/24 ifroute-ens224: 192.168.11.0/24 - - - table 224 src 192.168.11.11 default 192.168.11.1 - - table 224 #default 192.168.11.1 - - metric 20 ifrule-ens224: ipv4 from 192.168.11.11 lookup 224 ifcfg-ens160: IPADDR=172.16.12.12/24 ifroute-ens160: 172.16.12.0/24 - - - table 160 src 172.16.12.12 default 172.16.12.1 - - table 160 #default 192.168.11.1 - - metric 30 ifrule-ens160: ipv6 from 172.16.12.12 lookup 160 Instead of "table 160" and "lookup 160", you can define names for the routing tables in /etc/iproute2/rt_tables. See also: https://lartc.org/howto/lartc.rpdb.multiple-links.html#AEN267 (In reply to Marius Tomaschewski from comment #2) > ifroute-ens160: > 172.16.12.0/24 - - - table 160 src 172.16.12.12 > default 172.16.12.1 - - table 160 > #default 192.168.11.1 - - metric 30 ^^^^^^^^^^^^ there was typo: 172.16.12.1 |