fix some typos docs/lxd_container_home_server_networking_for_dummies.md

This commit is contained in:
Trent Palmer 2017-07-21 08:54:46 -07:00
parent 183c9ae2fb
commit 6395cb3dab
4 changed files with 15 additions and 14 deletions

View File

@ -275,21 +275,22 @@ lxc start quick-joey
lxc exec quick-joey bash
```
You need to tell these containers how to connect to the non-natted subnet on *eth1*
With either an ubuntu:16.04 container, or a debian stretch container, for either the *natted* or
*exposed* profile, because of all the above configuration work they will automatically connect on
their *eth0* interfaces and be able to talk to the internet. You need to edit `/etc/network/interfaces`,
the main difference being what that file looks like before you edit it.
You need to tell these containers how to connect to the non-natted subnet on *eth1*.
### ubuntu:16.04
If you start a shell on an ubuntu:16.04 container, you see that `/etc/network/interfaces`
describes the loopback device for localhost, then sources `/etc/network/interfaces.d/*.cfg` where
some magical cloud-config jazz is going on. You just want to add a static ip description for *eth1*
to the file `/etc/network/interfaces`. And obviously take that the static ip address you assign is
to the file `/etc/network/interfaces`. And obviously take care that the static ip address you assign is
unique and on the same subnet with *lxdbr1*.
Reminder: the address for *lxdbr1* is 10.151.18.1/24, but it will be different on your machine.
Reminder: the address for *lxdbr1* is 10.151.18.1/24, (but it will be different on your machine).
```conf
auto lo
@ -332,7 +333,7 @@ and edit `/etc/hosts`
10.151.18.1 mothership
```
Of you have a container named *fat-cinderella*, that needs to be able to talk
Or you have a container named *fat-cinderella*, that needs to be able to talk
directly *quick-joey*.
```bash

View File

@ -210,5 +210,5 @@
<!--
MkDocs version : 0.16.3
Build Date UTC : 2017-07-21 14:28:10
Build Date UTC : 2017-07-21 15:54:31
-->

View File

@ -382,18 +382,18 @@ lxc start quick-joey
lxc exec quick-joey bash
</code></pre>
<p>You need to tell these containers how to connect to the non-natted subnet on <em>eth1</em>
With either an ubuntu:16.04 container, or a debian stretch container, for either the <em>natted</em> or
<p>With either an ubuntu:16.04 container, or a debian stretch container, for either the <em>natted</em> or
<em>exposed</em> profile, because of all the above configuration work they will automatically connect on
their <em>eth0</em> interfaces and be able to talk to the internet. You need to edit <code>/etc/network/interfaces</code>,
the main difference being what that file looks like before you edit it.</p>
<p>You need to tell these containers how to connect to the non-natted subnet on <em>eth1</em>.</p>
<h3 id="ubuntu1604">ubuntu:16.04</h3>
<p>If you start a shell on an ubuntu:16.04 container, you see that <code>/etc/network/interfaces</code>
describes the loopback device for localhost, then sources <code>/etc/network/interfaces.d/*.cfg</code> where
some magical cloud-config jazz is going on. You just want to add a static ip description for <em>eth1</em>
to the file <code>/etc/network/interfaces</code>. And obviously take that the static ip address you assign is
to the file <code>/etc/network/interfaces</code>. And obviously take care that the static ip address you assign is
unique and on the same subnet with <em>lxdbr1</em>.</p>
<p>Reminder: the address for <em>lxdbr1</em> is 10.151.18.1/24, but it will be different on your machine.</p>
<p>Reminder: the address for <em>lxdbr1</em> is 10.151.18.1/24, (but it will be different on your machine).</p>
<pre><code class="conf">auto lo
iface lo inet loopback
@ -426,7 +426,7 @@ on the container <em>quick-joey</em></p>
10.151.18.1 mothership
</code></pre>
<p>Of you have a container named <em>fat-cinderella</em>, that needs to be able to talk
<p>Or you have a container named <em>fat-cinderella</em>, that needs to be able to talk
directly <em>quick-joey</em>.</p>
<pre><code class="bash">lxc exec fat-cinderella bash
vim /etc/hosts

File diff suppressed because one or more lines are too long