<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi,<div><br></div><div>I installed CoreOS 298 (with systemd 212) on a multi-homed machine with a public and a private interface. It’s a data-center machine, and the provider assigns both interfaces through DHCP. Stock CoreOS defaults to DHCP settings for all network interfaces.</div><div><br></div><div>When I boot the machine, the public interface (eno1) is missing a default route, and the private interface eno2 instead has two (the first two lines in the  routing table below):</div><div><br></div><div><pre class="line-pre" style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 12px; margin-top: 0px; margin-bottom: 0px; line-height: 16.799999237060547px; width: 744px; padding: 0px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255); position: static; z-index: auto;"><div class="line" id="file-after-boot-log-LC8" style="box-sizing: border-box;">Apr 25 12:52:15 garry systemd[1]: Started Network Service.</div><div class="line" id="file-after-boot-log-LC9" style="box-sizing: border-box;">Apr 25 12:52:17 garry systemd-networkd[3041]: eno2: carrier on</div><div class="line" id="file-after-boot-log-LC10" style="box-sizing: border-box;">Apr 25 12:52:18 garry systemd-networkd[3041]: eno2: DHCPv4 address 10.60.120.27/26 via 0.0.0.0</div><div class="line" id="file-after-boot-log-LC11" style="box-sizing: border-box;">Apr 25 12:52:18 garry systemd-networkd[3041]: eno1: carrier on</div><div class="line" id="file-after-boot-log-LC12" style="box-sizing: border-box;">Apr 25 12:52:18 garry systemd-networkd[3041]: eno2: link configured</div><div class="line" id="file-after-boot-log-LC13" style="box-sizing: border-box;">Apr 25 12:52:18 garry systemd-networkd[3041]: eno1: DHCPv4 address 33.112.217.84/24 via 33.112.217.1</div><div class="line" id="file-after-boot-log-LC14" style="box-sizing: border-box;">Apr 25 12:52:18 garry systemd-networkd[3041]: eno1: link configured</div></pre><div><br></div></div><div><pre class="line-pre" style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 12px; margin-top: 0px; margin-bottom: 0px; line-height: 16.799999237060547px; width: 744px; padding: 0px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255); position: static; z-index: auto;"><div class="line" id="file-after-boot-log-LC16" style="box-sizing: border-box;"># route -n</div><div class="line" id="file-after-boot-log-LC17" style="box-sizing: border-box;">Kernel IP routing table</div><div class="line" id="file-after-boot-log-LC18" style="box-sizing: border-box;">Destination     Gateway         Genmask         Flags Metric Ref    Use Iface</div><div class="line" id="file-after-boot-log-LC19" style="box-sizing: border-box;">0.0.0.0         0.0.0.0         255.255.255.255 UH    0      0        0 eno2</div><div class="line" id="file-after-boot-log-LC20" style="box-sizing: border-box;">0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 eno2</div><div class="line" id="file-after-boot-log-LC21" style="box-sizing: border-box;">10.60.120.0     0.0.0.0         255.255.255.192 U     0      0        0 eno2</div><div class="line" id="file-after-boot-log-LC22" style="box-sizing: border-box;">33.112.217.0    0.0.0.0         255.255.255.0   U     0      0        0 eno1</div><div class="line" id="file-after-boot-log-LC23" style="box-sizing: border-box;">33.112.217.1    0.0.0.0         255.255.255.255 UH    0      0        0 eno1</div></pre><div><br></div></div><div>Restarting the systemd-networkd.service, correctly assigns the default route for eno1:</div><div><br></div><div><pre class="line-pre" style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 12px; margin-top: 0px; margin-bottom: 0px; line-height: 16.799999237060547px; width: 744px; padding: 0px; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255); position: static; z-index: auto;"><div class="line" id="file-after-restart-log-LC1" style="box-sizing: border-box;"># systemctl restart systemd-networkd.service </div><div class="line" id="file-after-restart-log-LC1" style="box-sizing: border-box;"><pre class="line-pre" style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Courier, monospace; margin-top: 0px; margin-bottom: 0px; line-height: 16.799999237060547px; width: 744px; padding: 0px;"><div class="line" id="file-after-restart-log-LC15" style="box-sizing: border-box;"><br></div><div class="line" id="file-after-restart-log-LC15" style="box-sizing: border-box;">Apr 25 12:54:09 garry systemd-networkd[3144]: eno1: DHCPv4 address 33.112.217.84/24 via 33.112.217.1</div><div class="line" id="file-after-restart-log-LC16" style="box-sizing: border-box;">Apr 25 12:54:09 garry systemd-networkd[3144]: eno1: link configured</div><div class="line" id="file-after-restart-log-LC17" style="box-sizing: border-box;">Apr 25 12:54:09 garry systemd-networkd[3144]: eno2: DHCPv4 address 10.60.120.27/26 via 0.0.0.0</div><div class="line" id="file-after-restart-log-LC18" style="box-sizing: border-box;">Apr 25 12:54:10 garry systemd-networkd[3144]: eno2: link configured</div></pre><div><br></div></div><div class="line" id="file-after-restart-log-LC2" style="box-sizing: border-box;"><span style="line-height: 16.799999237060547px;"># route -n</span></div><div class="line" id="file-after-restart-log-LC21" style="box-sizing: border-box;">Kernel IP routing table</div><div class="line" id="file-after-restart-log-LC22" style="box-sizing: border-box;">Destination     Gateway         Genmask         Flags Metric Ref    Use Iface</div><div class="line" id="file-after-restart-log-LC23" style="box-sizing: border-box;">0.0.0.0         0.0.0.0         255.255.255.255 UH    0      0        0 eno2</div><div class="line" id="file-after-restart-log-LC24" style="box-sizing: border-box;">0.0.0.0         33.112.217.1    0.0.0.0         UG    0      0        0 eno1</div><div class="line" id="file-after-restart-log-LC25" style="box-sizing: border-box;">10.60.120.0     0.0.0.0         255.255.255.192 U     0      0        0 eno2</div><div class="line" id="file-after-restart-log-LC26" style="box-sizing: border-box;">33.112.217.0    0.0.0.0         255.255.255.0   U     0      0        0 eno1</div><div class="line" id="file-after-restart-log-LC27" style="box-sizing: border-box;">33.112.217.1    0.0.0.0         255.255.255.255 UH    0      0        0 eno1</div></pre><div><br></div></div><div>This happens consistently on every boot. I worked around this by assigning a static address to the public interface, but nevertheless wanted to point this out as a possible bug.</div><div><br></div><div>Thanks,</div><div>Damir</div><div><br></div></body></html>