mirror of
https://github.com/TrentSPalmer/trentdocs_website.git
synced 2025-07-30 21:01:37 -07:00
add systemd-networkd client config docs/lxd_container_home_server_networking_for_dummies.md
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user