<div dir="ltr">Hello list, ..<div><br></div><div>I'm not 100% sure if this is a bug or not, it fells like a bug but its too big for that is has been overseen, so I would be happy if someone could help me to clarify this. I do all these test in virtualbox instances that are bridged to my home router on 192.168.88.1 / 255.25.255.0.</div><div><br></div><div>Steps to reproduce:</div><div> - Install fedora 24 server or fedora 25 beta server<br></div><div> - Add an ssh key for root shell access</div><div> - Disable SElinux, reboot</div><div><br></div><div>dnf -y update<br></div><div><div>dnf -y install mc</div><div>dnf -y install systemd-container</div></div><div><div><br></div><div>dnf -y --releasever=24 --installroot=/a install dnf initscripts passwd rsyslog vim-minimal openssh-server openssh-clients dhclient chkconfig rootfiles policycoreutils fedora-repos fedora-release mc<br></div><div>( .. or 25, with systemd 231)<br></div><div><br></div><div><div>systemctl enable systemd-networkd</div><div>systemctl start systemd-networkd</div></div><div><br></div><div>systemd-nspawn -D /a passwd<br></div><div>( .. and add a password)</div><div><br></div><div>systemd-nspawn --boot -n -D /a<br></div><div>( .. and enter the container)</div><div><br></div><div>In the container then</div><div><div>systemctl enable systemd-networkd</div><div>systemctl start systemd-networkd</div></div><div><br></div><div>And here, ping 8.8.8.8 returns Destination Host Unreachable</div><div>I can ping my host's router-given NIC-IP, but not the router itself.</div><div>Ping from the host is OK, pings the world just fine. </div><div><br></div><div>According to the systemd-nspawn documentation, this is the default -n switch behaviour and I qoute: "<span style="color:rgb(0,0,0);font-family:"times new roman";font-size:medium">automatic IP communication from the container to the host is thus available, with further connectivity to the external network.</span>"</div><div><br></div><div>So it should ping the router, and the world, but it does not. Is this a bug then? Should I create an issue on github? Or did I misunderstand something?</div><div><br></div><div>Some additional command outputs:</div><div><br></div><div><div>[root@host ~]# networkctl status -a</div><div>● 1: lo (...)</div><div>● 2: enp0s3</div><div> Link File: /usr/lib/systemd/network/99-default.link</div><div> Network File: n/a</div><div> Type: ether</div><div> State: routable (unmanaged)</div><div> Path: pci-0000:00:03.0</div><div> Driver: e1000</div><div> Vendor: Intel Corporation</div><div> Model: 82540EM Gigabit Ethernet Controller (PRO/1000 MT Desktop Adapter)</div><div> HW Address: 08:00:27:cb:fb:71 (Cadmus Computer Systems)</div><div> Address: 192.168.88.28</div><div> fe80::508c:2144:7c6c:4076</div><div> Gateway: 192.168.88.1 ( .. this is perfect)</div><div><br></div><div>● 4: ve-b</div><div> Link File: /usr/lib/systemd/network/99-default.link</div><div> Network File: /usr/lib/systemd/network/80-container-ve.network</div><div> Type: ether</div><div> State: routable (configured)</div><div> Driver: veth</div><div> HW Address: a6:38:8f:f7:58:97</div><div> Address: 10.0.0.1</div><div> 10.0.0.17</div><div> 169.254.188.19</div><div> fe80::a438:8fff:fef7:5897</div><div> Connected To: b on port host0</div></div><div><br></div><div><div>[root@b ~]# networkctl status -a</div><div>● 1: lo</div><div> Link File: n/a</div><div> Network File: n/a</div><div> Type: loopback</div><div> State: carrier (unmanaged)</div><div> Address: 127.0.0.1</div><div> ::1</div><div><br></div><div>● 2: host0</div><div> Link File: n/a</div><div> Network File: /usr/lib/systemd/network/80-container-host0.network</div><div> Type: ether</div><div> State: degraded (configuring)</div><div> HW Address: a2:ae:b2:6d:55:8d</div><div> Address: 169.254.252.51</div><div> fe80::a0ae:b2ff:fe6d:558d</div><div> Connected To: n/a on port ve-b</div></div><div><br></div><div><div>Kernel IP routing table</div><div>Destination Gateway Genmask Flags Metric Ref Use Iface</div><div>default router 0.0.0.0 UG 100 0 0 enp0s3</div><div>default 0.0.0.0 0.0.0.0 U 2048 0 0 ve-b</div><div>10.0.0.0 0.0.0.0 255.255.255.240 U 0 0 0 ve-b</div><div>10.0.0.16 0.0.0.0 255.255.255.240 U 0 0 0 ve-b</div><div>link-local 0.0.0.0 255.255.0.0 U 0 0 0 ve-b</div><div>192.168.88.0 0.0.0.0 255.255.255.0 U 100 0 0 enp0s3</div></div><div><br></div><div><br></div><div>Thank you in advance.</div><div><br></div><div>Greetings, ...</div><div><br></div>-- <br><div class="gmail-m_9174322842638718374gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"> <font size="4">Király </font><span style="font-size:large">István</span></div><div dir="ltr"><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-align:left"><font size="2">+36 209 753 758</font></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-align:left"><font size="2"><a href="mailto:LaKing@D250.hu" target="_blank">LaKing@D250.hu</a></font></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-align:left"><a href="http://d250.hu/" target="_blank"><img src="http://laking.d250.hu/lab.png"></a></div></div></div></div></div></div></div>
</div></div>