<div dir="ltr"><div><div><div>I set up successful a Arch container managed by systemd-nspsawn.<br><br></div>I have an issue setting an IP for the container.<br><br></div>My host is Arch, running custom Kernel 3.13.5-1 (userspace is set) and systemd-git (lats updated yesterday evening).<br>

</div>dhcpcd.service is disabled and network is started with these profiles:<br>*************<br>Description="Bridge connection to container"<br>Interface=br0<br>Connection=bridge<br>BindsToInterfaces=()<br>IP=no<br>

SkipNoCarrier=yes<br clear="all"><div><div><div><div><div>*********************<br><div><span style="color:rgb(39,78,19)"></span>NB : I tried with IP=static Adress='<a href="http://192.168.1.94/24">192.168.1.94/24</a>' but nothing changes<br>
****************<br>Description='hortensia static ethernet connection'<br>Interface=enp7s0<br>Connection=ethernet<br>After=(bridge-hortensia)<br>IP=static<br>Address=('<a href="http://192.168.1.87/24">192.168.1.87/24</a>')<br>
Gateway='192.168.1.254'<br>DNS=('212.147.10.180' '212.147.10.162')<br>*********************<br><br></div><div>Any other profiles will break the network on host and/or container<br><br></div><div>Somme command ouptuts:<br>
</div><br><div>gabx@hortensia ➤➤ ~ % ip addr<br>2: enp7s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000<br>    link/ether 14:da:e9:b5:7a:88 brd ff:ff:ff:ff:ff:ff<br>    inet <a href="http://192.168.1.87/24">192.168.1.87/24</a> brd 192.168.1.255 scope global enp7s0<br>
       valid_lft forever preferred_lft forever<br>3: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default <br>    link/ether 66:c3:60:92:5f:2c brd ff:ff:ff:ff:ff:ff    <br>*********<br>
gabx@hortensia ➤➤ /etc/netctl % ip route<br>default via 192.168.1.254 dev enp7s0 <br><a href="http://192.168.1.0/24">192.168.1.0/24</a> dev enp7s0  proto kernel  scope link  src 192.168.1.87 <br>***************<br><br></div>
<div>Now I enabled systemd-network with these two files:<br></div><div>70-dahlia.netdev<br></div><div>*************<br></div><div>[Match]<br>Host=77f348a2b3fb429b85a5de751ea9175a  <<< /etc/machie id in conatiner<br>
Virtualization=systemd-nspawn<br><br>[NetDev]<br>Name=br0<br>Kind=bridge<br><br></div><div>80-dahlia.network<br></div><div>*****************<br>[Match]<br>Virtualization=container<br>MACAddress=fa:2c:eb:75:bd:a4  <<< container MAC address<br>
<br>[Network]<br>DHCP=no<br>DNS=192.168.1.254<br><br>[Address]<br>Address=<a href="http://192.168.1.94/24">192.168.1.94/24</a><br><br>[Route]<br>Gateway=192.168.1.254<br>*********************************<br><br></div><div>
I start the container this way :<br># systemd-nspawn --machine=dahlia -bD /dahlia<br><br></div><div>Container network is up, but no IP assigned, as returned by ip addr<br><br># systemd-nspawn --machine=dahlia --network-veth --network-bridge=br0  -bD /dahlia    >>>> no network inside container<br>
# systemd-nspawn --machine=dahlia --network-bridge=br0 -bD /dahlia  >>>no network inside container<br><br></div><div>I certainly miss something, but do not know what.<br><br></div><div>Thank you for help/hints.<br>
</div><div><br></div>
</div></div></div></div></div></div>