add systemd-networkd client config docs/lxd_container_home_server_networking_for_dummies.md

This commit is contained in:
Trent Palmer 2018-02-18 11:34:31 +00:00
parent 27a11c0656
commit 15e26954a8
5 changed files with 72 additions and 22 deletions

View File

@ -312,6 +312,31 @@ The configuration for a debian stretch container is the same, except the the fil
`/etc/network/interfaces` will also describe eth0, but you only have to add the
description for eth1.
### systemd-networkd
This seems to work.
```conf
# eth0.network
[Match]
Name=eth0
[Network]
DHCP=ipv4
```
```conf
# eth1.network
[Match]
Name=eth1
[Network]
DHCP=ipv4
[DHCP]
UseRoutes=false
```
### the /etc/hosts file
Once you assign the containers static ip addresses for their *eth1*
@ -349,4 +374,3 @@ vim /etc/hosts
etcetera

View File

@ -261,5 +261,5 @@
<!--
MkDocs version : 0.17.2
Build Date UTC : 2018-02-13 12:50:47
Build Date UTC : 2018-02-18 11:34:12
-->

View File

@ -451,6 +451,27 @@ iface eth1 inet static
<p>The configuration for a debian stretch container is the same, except the the file
<code>/etc/network/interfaces</code> will also describe eth0, but you only have to add the
description for eth1.</p>
<h3 id="systemd-networkd">systemd-networkd</h3>
<p>This seems to work.</p>
<pre><code class="conf"># eth0.network
[Match]
Name=eth0
[Network]
DHCP=ipv4
</code></pre>
<pre><code class="conf"># eth1.network
[Match]
Name=eth1
[Network]
DHCP=ipv4
[DHCP]
UseRoutes=false
</code></pre>
<h3 id="the-etchosts-file">the /etc/hosts file</h3>
<p>Once you assign the containers static ip addresses for their <em>eth1</em>
interfaces, you can use the <code>/etc/hosts</code> file on each container to make them

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
<url>
<loc>/</loc>
<lastmod>2018-02-13</lastmod>
<lastmod>2018-02-18</lastmod>
<changefreq>daily</changefreq>
</url>
@ -12,7 +12,7 @@
<url>
<loc>/apt_pinning_artful_aardvark_packages_in_xenial_xerus/</loc>
<lastmod>2018-02-13</lastmod>
<lastmod>2018-02-18</lastmod>
<changefreq>daily</changefreq>
</url>
@ -20,7 +20,7 @@
<url>
<loc>/lxd_container_home_server_networking_for_dummies/</loc>
<lastmod>2018-02-13</lastmod>
<lastmod>2018-02-18</lastmod>
<changefreq>daily</changefreq>
</url>
@ -28,7 +28,7 @@
<url>
<loc>/lxd_container_foo/</loc>
<lastmod>2018-02-13</lastmod>
<lastmod>2018-02-18</lastmod>
<changefreq>daily</changefreq>
</url>
@ -36,7 +36,7 @@
<url>
<loc>/how_to_reassign_a_static_ip_address_with_dnsmasq/</loc>
<lastmod>2018-02-13</lastmod>
<lastmod>2018-02-18</lastmod>
<changefreq>daily</changefreq>
</url>
@ -44,7 +44,7 @@
<url>
<loc>/serve_and_share_apps_from_your_phone_with_fdroid/</loc>
<lastmod>2018-02-13</lastmod>
<lastmod>2018-02-18</lastmod>
<changefreq>daily</changefreq>
</url>
@ -52,7 +52,7 @@
<url>
<loc>/nspawn/</loc>
<lastmod>2018-02-13</lastmod>
<lastmod>2018-02-18</lastmod>
<changefreq>daily</changefreq>
</url>
@ -60,7 +60,7 @@
<url>
<loc>/gentoo_lxd_container/</loc>
<lastmod>2018-02-13</lastmod>
<lastmod>2018-02-18</lastmod>
<changefreq>daily</changefreq>
</url>
@ -68,7 +68,7 @@
<url>
<loc>/mastodon_on_arch/</loc>
<lastmod>2018-02-13</lastmod>
<lastmod>2018-02-18</lastmod>
<changefreq>daily</changefreq>
</url>
@ -76,7 +76,7 @@
<url>
<loc>/debian_nspawn_container_on_arch_for_testing_apache_configurations/</loc>
<lastmod>2018-02-13</lastmod>
<lastmod>2018-02-18</lastmod>
<changefreq>daily</changefreq>
</url>
@ -84,7 +84,7 @@
<url>
<loc>/dynamic_cacheing_nginx_reverse_proxy_for_pacman/</loc>
<lastmod>2018-02-13</lastmod>
<lastmod>2018-02-18</lastmod>
<changefreq>daily</changefreq>
</url>
@ -92,7 +92,7 @@
<url>
<loc>/freebsd_jails_on_freenas/</loc>
<lastmod>2018-02-13</lastmod>
<lastmod>2018-02-18</lastmod>
<changefreq>daily</changefreq>
</url>
@ -100,7 +100,7 @@
<url>
<loc>/arch_redis_nspawn/</loc>
<lastmod>2018-02-13</lastmod>
<lastmod>2018-02-18</lastmod>
<changefreq>daily</changefreq>
</url>
@ -108,7 +108,7 @@
<url>
<loc>/arch_postgresql_nspawn/</loc>
<lastmod>2018-02-13</lastmod>
<lastmod>2018-02-18</lastmod>
<changefreq>daily</changefreq>
</url>
@ -116,7 +116,7 @@
<url>
<loc>/misc_tips_troubleshooting/</loc>
<lastmod>2018-02-13</lastmod>
<lastmod>2018-02-18</lastmod>
<changefreq>daily</changefreq>
</url>
@ -124,7 +124,7 @@
<url>
<loc>/self_signed_certs/</loc>
<lastmod>2018-02-13</lastmod>
<lastmod>2018-02-18</lastmod>
<changefreq>daily</changefreq>
</url>
@ -132,7 +132,7 @@
<url>
<loc>/selfoss_on_centos7/</loc>
<lastmod>2018-02-13</lastmod>
<lastmod>2018-02-18</lastmod>
<changefreq>daily</changefreq>
</url>
@ -140,7 +140,7 @@
<url>
<loc>/stupid_package_manager_tricks/</loc>
<lastmod>2018-02-13</lastmod>
<lastmod>2018-02-18</lastmod>
<changefreq>daily</changefreq>
</url>
@ -148,7 +148,7 @@
<url>
<loc>/stupid_kvm_tricks/</loc>
<lastmod>2018-02-13</lastmod>
<lastmod>2018-02-18</lastmod>
<changefreq>daily</changefreq>
</url>