Pour info:
Après être repassé à networkmanager puis à nouveau wicked (sans redémarrer), j'ai moi aussi eu deux routes par défaut.
MAIS l'une avec 'proto boot', et l'autre avec 'proto static', et surtout avec deux métriques différentes 0 pour l'une, 100 pour l'autre (c'est la 0 qui gagne)
c.f. les sorties suivantes:
denebe@localhost:~> ip r
default via 192.168.0.1 dev eth0
default via 192.168.0.1 dev eth0 proto static metric 100
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.242 metric 100
J'ai regardé avec wicked:
localhost:/home/denebe # wicked show eth0
eth0 up
link: #2, state up, mtu 1500
type: ethernet, hwaddr 08:00:27:87:57:50
config: compat:suse:/etc/sysconfig/network/ifcfg-eth0
leases: ipv4 static granted
addr: ipv4 192.168.0.242/24 [static]
addr: ipv6 2a02:8109:a380:310:cbd7:cff8:bff4:897e/128
route: ipv4 default via 192.168.0.1 proto boot
route: ipv4 default via 192.168.0.1 metric 100 proto static
route: ipv6 default via fe80::10:18ff:feb2:d45c metric 100 proto ra
denebe@localhost:~> ip -d r
unicast default via 192.168.0.1 dev eth0 proto boot scope global
unicast default via 192.168.0.1 dev eth0 proto static scope global metric 100
unicast 192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.242 metric 100
(Sans problème de réseau, avec un accès à internet)
dans le man de ip-route, on trouve ceci:
protocol RTPROTO
the routing protocol identifier of this route. RTPROTO may be a number or a string from the file /etc/iproute2/rt_protos. If the routing protocol ID is not given, ip assumes protocol boot (i.e. it assumes the route
was added by someone who doesn't understand what they are doing). Several protocol values have a fixed interpretation. Namely:
redirect - the route was installed due to an ICMP redirect.
kernel - the route was installed by the kernel during autoconfiguration.
boot - the route was installed during the bootup sequence. If a routing daemon starts, it will purge all of them.
static - the route was installed by the administrator to override dynamic routing. Routing daemon will respect them and, probably, even advertise them to its peers.
ra - the route was installed by Router Discovery protocol.
The rest of the values are not reserved and the administrator is free to assign (or not to assign) protocol tags.
Ensuite, j'ai redémarré (avec wicked), je me suis retrouvé avec une seule route par défaut.
denebe@localhost:~> ip r
default via 192.168.0.1 dev eth0
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.242
denebe@localhost:~>
denebe@localhost:~>
denebe@localhost:~> ip -d r
unicast default via 192.168.0.1 dev eth0 proto boot scope global
unicast 192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.242
denebe@localhost:~> sudo wicked show eth0
[sudo] Mot de passe de root :
eth0 up
link: #2, state up, mtu 1500
type: ethernet, hwaddr 08:00:27:87:57:50
config: compat:suse:/etc/sysconfig/network/ifcfg-eth0
leases: ipv4 static granted
leases: ipv6 auto granted
addr: ipv6 2a02:8109:a380:310:8b44:800e:d760:be46/64 [auto]
addr: ipv6 2a02:8109:a380:310:a00:27ff:fe87:5750/64 [auto]
addr: ipv4 192.168.0.242/24 [static]
route: ipv4 default via 192.168.0.1 proto boot
route: ipv6 default via fe80::10:18ff:feb2:d45c metric 1024 proto ra
Toujours sans problème de réseau et un accès à internet normal…