mirror of
https://github.com/TrentSPalmer/trentdocs_website.git
synced 2024-11-23 08:01:30 -08:00
add systemd-networkd client config docs/lxd_container_home_server_networking_for_dummies.md
This commit is contained in:
parent
27a11c0656
commit
15e26954a8
@ -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
|
`/etc/network/interfaces` will also describe eth0, but you only have to add the
|
||||||
description for eth1.
|
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
|
### the /etc/hosts file
|
||||||
|
|
||||||
Once you assign the containers static ip addresses for their *eth1*
|
Once you assign the containers static ip addresses for their *eth1*
|
||||||
@ -349,4 +374,3 @@ vim /etc/hosts
|
|||||||
etcetera
|
etcetera
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -261,5 +261,5 @@
|
|||||||
|
|
||||||
<!--
|
<!--
|
||||||
MkDocs version : 0.17.2
|
MkDocs version : 0.17.2
|
||||||
Build Date UTC : 2018-02-13 12:50:47
|
Build Date UTC : 2018-02-18 11:34:12
|
||||||
-->
|
-->
|
||||||
|
@ -451,6 +451,27 @@ iface eth1 inet static
|
|||||||
<p>The configuration for a debian stretch container is the same, except the the file
|
<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
|
<code>/etc/network/interfaces</code> will also describe eth0, but you only have to add the
|
||||||
description for eth1.</p>
|
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>
|
<h3 id="the-etchosts-file">the /etc/hosts file</h3>
|
||||||
<p>Once you assign the containers static ip addresses for their <em>eth1</em>
|
<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
|
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
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>/</loc>
|
<loc>/</loc>
|
||||||
<lastmod>2018-02-13</lastmod>
|
<lastmod>2018-02-18</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>/apt_pinning_artful_aardvark_packages_in_xenial_xerus/</loc>
|
<loc>/apt_pinning_artful_aardvark_packages_in_xenial_xerus/</loc>
|
||||||
<lastmod>2018-02-13</lastmod>
|
<lastmod>2018-02-18</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>/lxd_container_home_server_networking_for_dummies/</loc>
|
<loc>/lxd_container_home_server_networking_for_dummies/</loc>
|
||||||
<lastmod>2018-02-13</lastmod>
|
<lastmod>2018-02-18</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>/lxd_container_foo/</loc>
|
<loc>/lxd_container_foo/</loc>
|
||||||
<lastmod>2018-02-13</lastmod>
|
<lastmod>2018-02-18</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>/how_to_reassign_a_static_ip_address_with_dnsmasq/</loc>
|
<loc>/how_to_reassign_a_static_ip_address_with_dnsmasq/</loc>
|
||||||
<lastmod>2018-02-13</lastmod>
|
<lastmod>2018-02-18</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
@ -44,7 +44,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>/serve_and_share_apps_from_your_phone_with_fdroid/</loc>
|
<loc>/serve_and_share_apps_from_your_phone_with_fdroid/</loc>
|
||||||
<lastmod>2018-02-13</lastmod>
|
<lastmod>2018-02-18</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
@ -52,7 +52,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>/nspawn/</loc>
|
<loc>/nspawn/</loc>
|
||||||
<lastmod>2018-02-13</lastmod>
|
<lastmod>2018-02-18</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
@ -60,7 +60,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>/gentoo_lxd_container/</loc>
|
<loc>/gentoo_lxd_container/</loc>
|
||||||
<lastmod>2018-02-13</lastmod>
|
<lastmod>2018-02-18</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
@ -68,7 +68,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>/mastodon_on_arch/</loc>
|
<loc>/mastodon_on_arch/</loc>
|
||||||
<lastmod>2018-02-13</lastmod>
|
<lastmod>2018-02-18</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
@ -76,7 +76,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>/debian_nspawn_container_on_arch_for_testing_apache_configurations/</loc>
|
<loc>/debian_nspawn_container_on_arch_for_testing_apache_configurations/</loc>
|
||||||
<lastmod>2018-02-13</lastmod>
|
<lastmod>2018-02-18</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
@ -84,7 +84,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>/dynamic_cacheing_nginx_reverse_proxy_for_pacman/</loc>
|
<loc>/dynamic_cacheing_nginx_reverse_proxy_for_pacman/</loc>
|
||||||
<lastmod>2018-02-13</lastmod>
|
<lastmod>2018-02-18</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
@ -92,7 +92,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>/freebsd_jails_on_freenas/</loc>
|
<loc>/freebsd_jails_on_freenas/</loc>
|
||||||
<lastmod>2018-02-13</lastmod>
|
<lastmod>2018-02-18</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
@ -100,7 +100,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>/arch_redis_nspawn/</loc>
|
<loc>/arch_redis_nspawn/</loc>
|
||||||
<lastmod>2018-02-13</lastmod>
|
<lastmod>2018-02-18</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
@ -108,7 +108,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>/arch_postgresql_nspawn/</loc>
|
<loc>/arch_postgresql_nspawn/</loc>
|
||||||
<lastmod>2018-02-13</lastmod>
|
<lastmod>2018-02-18</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
@ -116,7 +116,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>/misc_tips_troubleshooting/</loc>
|
<loc>/misc_tips_troubleshooting/</loc>
|
||||||
<lastmod>2018-02-13</lastmod>
|
<lastmod>2018-02-18</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
@ -124,7 +124,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>/self_signed_certs/</loc>
|
<loc>/self_signed_certs/</loc>
|
||||||
<lastmod>2018-02-13</lastmod>
|
<lastmod>2018-02-18</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
@ -132,7 +132,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>/selfoss_on_centos7/</loc>
|
<loc>/selfoss_on_centos7/</loc>
|
||||||
<lastmod>2018-02-13</lastmod>
|
<lastmod>2018-02-18</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
@ -140,7 +140,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>/stupid_package_manager_tricks/</loc>
|
<loc>/stupid_package_manager_tricks/</loc>
|
||||||
<lastmod>2018-02-13</lastmod>
|
<lastmod>2018-02-18</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
@ -148,7 +148,7 @@
|
|||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>/stupid_kvm_tricks/</loc>
|
<loc>/stupid_kvm_tricks/</loc>
|
||||||
<lastmod>2018-02-13</lastmod>
|
<lastmod>2018-02-18</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user