https://bugzilla.suse.com/show_bug.cgi?id=1202658 https://bugzilla.suse.com/show_bug.cgi?id=1202658#c3 --- Comment #3 from Ralf Habacker <ralf.habacker@freenet.de> --- (In reply to Marius Tomaschewski from comment #2)
Example showing the reason for using the incomplete static settings. (while dhcp is in use and therefore there is no static IPADDR):
I think the use case I reported is a bit different: $ ip addr ... 2: enps03 inet 10.1.1.30/24 metric 1024 brd 10.1.1.255 scope global dynamic enp0s3 The host has received an IP address from the DHCP server on the 10.1.1.0/24 network. $ ip route default via 10.1.1.250 dev enps03 proto dhcp 10.1.1.250 dev enp0s3 proto dhcp scope link src 10.1.1.30 metric 1024 10.1.1.0/24 dev enps03 proto kernel scope link src 10.1.1.30 metric 1024 These settings were retrieved from the dhcp server. If I add the static route manually after the network has been started and the host has received the IP configuration from the DHCP server (please note that the gateway for the static route is on the local network) $ ip route add 10.2.1.1/32 via 10.1.1.252 dev enps03 I did not receive an error message, instead the desired route was added. $ ip route ... 10.2.1.1 via 10.1.1.252 dev enp0s3 and is reachable $ ping 10.2.1.1 PING 10.2.1.1 (10.2.1.1) 56(84) bytes of data. 64 bytes of 10.2.1.1: icmp_seq=1 ttl=63 time=1.19 ms If this works, why doesn't adding this route to /etc/sysconfig/network/ifroute-enps03 work? -- You are receiving this mail because: You are on the CC list for the bug.