<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ttsh.dk/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mike</id>
	<title>Mike&#039;s wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ttsh.dk/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mike"/>
	<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php/Special:Contributions/Mike"/>
	<updated>2026-06-01T13:39:25Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.1</generator>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Tips_and_tricks&amp;diff=82</id>
		<title>Tips and tricks</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Tips_and_tricks&amp;diff=82"/>
		<updated>2025-08-01T08:57:23Z</updated>

		<summary type="html">&lt;p&gt;Mike: Created page with &amp;quot;There are may tips for debugging yocto.   To build any recipy use  $bitbake &amp;lt;target name&amp;gt;  $bitbake    To fetch elements for a recipy  $ bitbake &amp;lt;your-image-or-recipe&amp;gt; --runall=fetch   To clean a recipy  $ bitbake &amp;lt;your-image-or-recipe&amp;gt; --runall=cleanall   To analyse the environment  $ bitbake -e | grep ^TARGET_ARCH   To fetch everything including cross compiler use  $ bitbake -c fetch world&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are may tips for debugging yocto.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To build any recipy use&lt;br /&gt;
&lt;br /&gt;
$bitbake &amp;lt;target name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
$bitbake &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To fetch elements for a recipy&lt;br /&gt;
&lt;br /&gt;
$ bitbake &amp;lt;your-image-or-recipe&amp;gt; --runall=fetch&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To clean a recipy&lt;br /&gt;
&lt;br /&gt;
$ bitbake &amp;lt;your-image-or-recipe&amp;gt; --runall=cleanall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To analyse the environment&lt;br /&gt;
&lt;br /&gt;
$ bitbake -e | grep ^TARGET_ARCH&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To fetch everything including cross compiler use&lt;br /&gt;
&lt;br /&gt;
$ bitbake -c fetch world&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Yocto&amp;diff=81</id>
		<title>Yocto</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Yocto&amp;diff=81"/>
		<updated>2025-08-01T08:52:52Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[ create patches ]]&lt;br /&gt;
&lt;br /&gt;
[[tips and tricks]] &lt;br /&gt;
&lt;br /&gt;
=== Notes on Yocto. ===&lt;br /&gt;
[[Settings for yocto]]&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Main_Page&amp;diff=80</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Main_Page&amp;diff=80"/>
		<updated>2025-08-01T08:52:29Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Why yet another collection of commands.&lt;br /&gt;
&lt;br /&gt;
Basically I&#039;m getting tired of trying to find things via google, 90% of the matches are irrelevant to the searches, and thus I am collecting notes on how to do common tasks, that does NOT involve the usage of a GUI, as I find that annoying to use when running remote support -having to go through 3-4 UI bridges, to get to a service, just isn&#039;t efficient.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This information is put out public, and contains nothing restricted, but is intended as information for people.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Tooling information]]&lt;br /&gt;
&lt;br /&gt;
[[git tricks]]&lt;br /&gt;
&lt;br /&gt;
[[Docker ]]&lt;br /&gt;
&lt;br /&gt;
[[Linux]]&lt;br /&gt;
&lt;br /&gt;
[[systemd]]&lt;br /&gt;
&lt;br /&gt;
[[email]]&lt;br /&gt;
&lt;br /&gt;
[[yocto]]&lt;br /&gt;
&lt;br /&gt;
[[wiki tricks]]&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Docker&amp;diff=79</id>
		<title>Docker</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Docker&amp;diff=79"/>
		<updated>2024-10-09T10:01:25Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Docker information..  &lt;br /&gt;
&lt;br /&gt;
Docker has a lot of good features, however, there are also caveats that needs to be considered&lt;br /&gt;
&lt;br /&gt;
[[docker security]]&lt;br /&gt;
&lt;br /&gt;
[[ docker compose ]]&lt;br /&gt;
&lt;br /&gt;
[[ Dockerfile]]&lt;br /&gt;
&lt;br /&gt;
[[Docker rootless]]&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Block_id&amp;diff=78</id>
		<title>Block id</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Block_id&amp;diff=78"/>
		<updated>2024-02-09T17:04:20Z</updated>

		<summary type="html">&lt;p&gt;Mike: Created page with &amp;quot;get the block id&amp;lt;pre&amp;gt; # blkid /dev/sda1 &amp;lt;/pre&amp;gt;change fstab to mount by uuid instead.  e.g.&amp;lt;pre&amp;gt; UUID=&amp;quot;b8f0a58b-6dce-4d8a-89f0-d82bb2edcd01&amp;quot; /nfs ext4 defaults 0 2 UUID=&amp;quot;6af41e26-7634-4bb1-9ea0-902401b45375&amp;quot; none swap defaults 0 0   &amp;lt;/pre&amp;gt;&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;get the block id&amp;lt;pre&amp;gt;&lt;br /&gt;
# blkid /dev/sda1&lt;br /&gt;
&amp;lt;/pre&amp;gt;change fstab to mount by uuid instead.&lt;br /&gt;
&lt;br /&gt;
e.g.&amp;lt;pre&amp;gt;&lt;br /&gt;
UUID=&amp;quot;b8f0a58b-6dce-4d8a-89f0-d82bb2edcd01&amp;quot; /nfs ext4 defaults 0 2&lt;br /&gt;
UUID=&amp;quot;6af41e26-7634-4bb1-9ea0-902401b45375&amp;quot; none swap defaults 0 0 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Linux&amp;diff=77</id>
		<title>Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Linux&amp;diff=77"/>
		<updated>2024-02-09T16:55:23Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[ Working with disk images]]&lt;br /&gt;
&lt;br /&gt;
[[working with network interfaces]]&lt;br /&gt;
&lt;br /&gt;
[[ Working with dhcpd]]&lt;br /&gt;
&lt;br /&gt;
[[ yocto ]]&lt;br /&gt;
&lt;br /&gt;
[[iptables-firewalls]]&lt;br /&gt;
&lt;br /&gt;
[[orangepi]]&lt;br /&gt;
&lt;br /&gt;
[[block id]]&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Boot_from_m.2&amp;diff=76</id>
		<title>Boot from m.2</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Boot_from_m.2&amp;diff=76"/>
		<updated>2024-02-09T16:55:00Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;￼￼disk images￼￼To boot from M.2. requires some changes.  transfer boot image to m.2. which can be done by restoring the boot image directly&amp;lt;pre&amp;gt;&lt;br /&gt;
# dd if=bootimg of=/dev/nvme0 bs=10M status=progress&lt;br /&gt;
&amp;lt;/pre&amp;gt;However, this does not allow you to easily change the partition tables, and thus..&lt;br /&gt;
&lt;br /&gt;
use fdisk to create the partition table, and mount it up as you want eg.&amp;lt;pre&amp;gt;&lt;br /&gt;
Create the following partitions &lt;br /&gt;
&lt;br /&gt;
/ 100G&lt;br /&gt;
/boot 1G&lt;br /&gt;
/var 100G&lt;br /&gt;
/home 100G&lt;br /&gt;
swap 16G&lt;br /&gt;
&lt;br /&gt;
using fdisk.&lt;br /&gt;
&lt;br /&gt;
format each partition using mkfs.ext4 for non-swap partitions &lt;br /&gt;
format each swap partition using mkswap&lt;br /&gt;
&lt;br /&gt;
mount up the structure in the way you want.&lt;br /&gt;
&lt;br /&gt;
# mkdir -p /mnt/sysimage/ /mnt/sysimage/boot /mnt/sysimage/var /mnt/sysimage/home &lt;br /&gt;
&lt;br /&gt;
mount partitions under /mnt/sysimage&lt;br /&gt;
&lt;br /&gt;
mount disk image&lt;br /&gt;
&lt;br /&gt;
- using losetup&lt;br /&gt;
&lt;br /&gt;
# mkdir -p /mnt/sys1/ /mnt/sys1/boot &lt;br /&gt;
&lt;br /&gt;
mount partitions under /mnt/sys1&lt;br /&gt;
&lt;br /&gt;
Transfer files.&lt;br /&gt;
&lt;br /&gt;
# (cd /mnt/sys1; tar cvf - * ) | (cd /mnt/sysimage ; tar xf -)&lt;br /&gt;
&amp;lt;/pre&amp;gt;having transferred all of the data to the new drive we need to reset the partitions to mount them, this involved setting the uuid on the devices, and mount them using uuid.&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Linux&amp;diff=75</id>
		<title>Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Linux&amp;diff=75"/>
		<updated>2024-02-09T16:53:44Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[ Working with disk images]]&lt;br /&gt;
&lt;br /&gt;
[[working with network interfaces]]&lt;br /&gt;
&lt;br /&gt;
[[ Working with dhcpd]]&lt;br /&gt;
&lt;br /&gt;
[[ yocto ]]&lt;br /&gt;
&lt;br /&gt;
[[iptables-firewalls]]&lt;br /&gt;
&lt;br /&gt;
[[orangepi]]&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Boot_from_m.2&amp;diff=74</id>
		<title>Boot from m.2</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Boot_from_m.2&amp;diff=74"/>
		<updated>2024-02-09T16:49:38Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To boot from M.2. requires some changes.  transfer boot image to m.2. which can be done by restoring the boot image directly&amp;lt;pre&amp;gt;&lt;br /&gt;
# dd if=bootimg of=/dev/nvme0 bs=10M status=progress&lt;br /&gt;
&amp;lt;/pre&amp;gt;However, this does not allow you to easily change the partition tables, and thus..&lt;br /&gt;
&lt;br /&gt;
use fdisk to create the partition table, and mount it up as you want eg.&amp;lt;pre&amp;gt;&lt;br /&gt;
Create the following partitions &lt;br /&gt;
&lt;br /&gt;
/ 100G&lt;br /&gt;
/boot 1G&lt;br /&gt;
/var 100G&lt;br /&gt;
/home 100G&lt;br /&gt;
swap 16G&lt;br /&gt;
&lt;br /&gt;
using fdisk.&lt;br /&gt;
&lt;br /&gt;
format each partition using mkfs.ext4 for non-swap partitions &lt;br /&gt;
format each swap partition using mkswap&lt;br /&gt;
&lt;br /&gt;
mount up the structure in the way you want.&lt;br /&gt;
&lt;br /&gt;
# mkdir -p /mnt/sysimage/ /mnt/sysimage/boot /mnt/sysimage/var /mnt/sysimage/home &lt;br /&gt;
&lt;br /&gt;
mount partitions under /mnt/sysimage&lt;br /&gt;
&lt;br /&gt;
mount disk image&lt;br /&gt;
&lt;br /&gt;
- using losetup&lt;br /&gt;
&lt;br /&gt;
# mkdir -p /mnt/sys1/ /mnt/sys1/boot &lt;br /&gt;
&lt;br /&gt;
mount partitions under /mnt/sys1&lt;br /&gt;
&lt;br /&gt;
Transfer files.&lt;br /&gt;
&lt;br /&gt;
# (cd /mnt/sys1; tar cvf - * ) | (cd /mnt/sysimage ; tar xf -)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Boot_from_m.2&amp;diff=73</id>
		<title>Boot from m.2</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Boot_from_m.2&amp;diff=73"/>
		<updated>2024-02-09T16:45:02Z</updated>

		<summary type="html">&lt;p&gt;Mike: Created page with &amp;quot;To boot from M.2. requires some changes.  transfer boot image to m.2. which can be done by restoring the boot image directly&amp;lt;pre&amp;gt; # dd if=bootimg of=/dev/nvme0 bs=10M status=progress &amp;lt;/pre&amp;gt;However, this does not allow you to easily change the partition tables, and thus..  use fdisk to create the partition table, and mount it up as you want eg.&amp;lt;pre&amp;gt; Create the following partitions   / 100G /boot 1G /var 100G /home 100G swap 16G  using fdisk.  format each partition using m...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To boot from M.2. requires some changes.  transfer boot image to m.2. which can be done by restoring the boot image directly&amp;lt;pre&amp;gt;&lt;br /&gt;
# dd if=bootimg of=/dev/nvme0 bs=10M status=progress&lt;br /&gt;
&amp;lt;/pre&amp;gt;However, this does not allow you to easily change the partition tables, and thus..&lt;br /&gt;
&lt;br /&gt;
use fdisk to create the partition table, and mount it up as you want eg.&amp;lt;pre&amp;gt;&lt;br /&gt;
Create the following partitions &lt;br /&gt;
&lt;br /&gt;
/ 100G&lt;br /&gt;
/boot 1G&lt;br /&gt;
/var 100G&lt;br /&gt;
/home 100G&lt;br /&gt;
swap 16G&lt;br /&gt;
&lt;br /&gt;
using fdisk.&lt;br /&gt;
&lt;br /&gt;
format each partition using mkfs.ext4 for non-swap partitions &lt;br /&gt;
format each swap partition using mkswap&lt;br /&gt;
&lt;br /&gt;
mount up the structure in the way you want.&lt;br /&gt;
&lt;br /&gt;
# mkdir -p / /boot /var /home &lt;br /&gt;
&lt;br /&gt;
mount partitions under /mnt/sysimage&lt;br /&gt;
&lt;br /&gt;
mount disk image&lt;br /&gt;
&lt;br /&gt;
- using losetup&lt;br /&gt;
&lt;br /&gt;
mount partitions under /mnt/sys1&lt;br /&gt;
&lt;br /&gt;
Transfer files.&lt;br /&gt;
&lt;br /&gt;
# (cd /mnt/sys1; tar cvf - * ) | (cd /mnt/sysimage ; tar xf -)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Orangepi&amp;diff=72</id>
		<title>Orangepi</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Orangepi&amp;diff=72"/>
		<updated>2024-02-09T16:30:33Z</updated>

		<summary type="html">&lt;p&gt;Mike: Created page with &amp;quot;boot from m.2&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[boot from m.2]]&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Linux&amp;diff=71</id>
		<title>Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Linux&amp;diff=71"/>
		<updated>2024-02-09T16:30:15Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[ Working with disk images]]&lt;br /&gt;
&lt;br /&gt;
[[working with network interfaces]]&lt;br /&gt;
&lt;br /&gt;
[[ Working with dhcpd]]&lt;br /&gt;
&lt;br /&gt;
[[ yocto ]]&lt;br /&gt;
&lt;br /&gt;
[[iptables-firewalls]]&lt;br /&gt;
&lt;br /&gt;
[[disk images]]&lt;br /&gt;
&lt;br /&gt;
[[orangepi]]&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Linux&amp;diff=70</id>
		<title>Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Linux&amp;diff=70"/>
		<updated>2024-02-09T16:29:45Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[ Working with disk images]]&lt;br /&gt;
&lt;br /&gt;
[[working with network interfaces]]&lt;br /&gt;
&lt;br /&gt;
[[ Working with dhcpd]]&lt;br /&gt;
&lt;br /&gt;
[[ yocto ]]&lt;br /&gt;
&lt;br /&gt;
[[iptables-firewalls]]&lt;br /&gt;
&lt;br /&gt;
[[disk images]]&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Disk_images&amp;diff=69</id>
		<title>Disk images</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Disk_images&amp;diff=69"/>
		<updated>2024-02-09T16:28:59Z</updated>

		<summary type="html">&lt;p&gt;Mike: Created page with &amp;quot;Mounting a disk image on linux&amp;lt;pre&amp;gt; # losetup -P /dev/loop0 ./Orangepi5_1.1.8_debian_bullseye_server_linux5.10.160.img # mkdir -p /mnt/sys1/boot # mount /dev/loop0p1  /mnt/sys1/ # mount /dev/loop0p2  /mnt/sys1/boot &amp;lt;/pre&amp;gt;To undo the above&amp;lt;pre&amp;gt; # umount /mnt/sys1/boot /mnt/sys1 # losetup -d /dev/looop &amp;lt;/pre&amp;gt;&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Mounting a disk image on linux&amp;lt;pre&amp;gt;&lt;br /&gt;
# losetup -P /dev/loop0 ./Orangepi5_1.1.8_debian_bullseye_server_linux5.10.160.img&lt;br /&gt;
# mkdir -p /mnt/sys1/boot&lt;br /&gt;
# mount /dev/loop0p1  /mnt/sys1/&lt;br /&gt;
# mount /dev/loop0p2  /mnt/sys1/boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;To undo the above&amp;lt;pre&amp;gt;&lt;br /&gt;
# umount /mnt/sys1/boot /mnt/sys1&lt;br /&gt;
# losetup -d /dev/looop&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Linux&amp;diff=68</id>
		<title>Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Linux&amp;diff=68"/>
		<updated>2024-02-09T16:25:26Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[ Working with disk images]]&lt;br /&gt;
&lt;br /&gt;
[[working with network interfaces]]&lt;br /&gt;
&lt;br /&gt;
[[ Working with dhcpd]]&lt;br /&gt;
&lt;br /&gt;
[[ yocto ]]&lt;br /&gt;
&lt;br /&gt;
[[iptables-firewalls]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[disk images]]&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Email&amp;diff=67</id>
		<title>Email</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Email&amp;diff=67"/>
		<updated>2024-01-29T09:06:34Z</updated>

		<summary type="html">&lt;p&gt;Mike: Created page with &amp;quot;# install postfix # install dovecot # enable sasl for dovecot/postfix integration. # install postfwd ## https://postfwd.org/quick.html&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;# install postfix&lt;br /&gt;
# install dovecot&lt;br /&gt;
# enable sasl for dovecot/postfix integration.&lt;br /&gt;
# install postfwd&lt;br /&gt;
## https://postfwd.org/quick.html&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Main_Page&amp;diff=66</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Main_Page&amp;diff=66"/>
		<updated>2024-01-29T09:05:13Z</updated>

		<summary type="html">&lt;p&gt;Mike: added start of email config&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Why yet another collection of commands.&lt;br /&gt;
&lt;br /&gt;
Basically I&#039;m getting tired of trying to find things via google, 90% of the matches are irrelevant to the searches, and thus I am collecting notes on how to do common tasks, that does NOT involve the usage of a GUI, as I find that annoying to use when running remote support -having to go through 3-4 UI bridges, to get to a service, just isn&#039;t efficient.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This information is put out public, and contains nothing restricted, but is intended as information for people.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Tooling information]]&lt;br /&gt;
&lt;br /&gt;
[[git tricks]]&lt;br /&gt;
&lt;br /&gt;
[[Docker ]]&lt;br /&gt;
&lt;br /&gt;
[[Linux]]&lt;br /&gt;
&lt;br /&gt;
[[systemd]]&lt;br /&gt;
&lt;br /&gt;
[[email]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[wiki tricks]]&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Iptables-firewalls&amp;diff=65</id>
		<title>Iptables-firewalls</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Iptables-firewalls&amp;diff=65"/>
		<updated>2023-03-23T10:04:02Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;## allow all traffic on local interface&lt;br /&gt;
iptables -A INPUT -i lo -j ACCEPT&lt;br /&gt;
iptables -A OUTPUT -o lo -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
## allow related traffic in and out&lt;br /&gt;
iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT&lt;br /&gt;
iptables -A OUTPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
## drop invalid packages&lt;br /&gt;
iptables -A INPUT -m conntrack --ctstate INVALID -j DROP&lt;br /&gt;
&lt;br /&gt;
## allow ssh access&lt;br /&gt;
iptables -A INPUT -p tcp --dport 22 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT&lt;br /&gt;
iptables -A OUTPUT -p tcp --sport 22 -m conntrack --ctstate ESTABLISHED -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
## allow https and http traffic&lt;br /&gt;
iptables -A INPUT -p tcp -m multiport --dports 80,443 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT&lt;br /&gt;
iptables -A OUTPUT -p tcp -m multiport --dports 80,443 -m conntrack --ctstate ESTABLISHED -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
## allow smtp access&lt;br /&gt;
iptables -A INPUT -p tcp --dport 25 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT&lt;br /&gt;
iptables -A OUTPUT -p tcp --sport 25 -m conntrack --ctstate ESTABLISHED -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
## allow IMAP access&lt;br /&gt;
iptables -A INPUT -p tcp --dport 143 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT&lt;br /&gt;
iptables -A OUTPUT -p tcp --sport 143 -m conntrack --ctstate ESTABLISHED -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
## allow IMAPS access&lt;br /&gt;
iptables -A INPUT -p tcp --dport 993 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT&lt;br /&gt;
iptables -A OUTPUT -p tcp --sport 993 -m conntrack --ctstate ESTABLISHED -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
## NFS&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iptables -A INPUT -s 172.18.0.1 -p udp -m multiport --dports 10053,111,2049,32769,875,892  -j REJECT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.1 -p udp -m multiport --dports 10053,111,2049,32769,875,892 -j REJECT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.1 -p tcp -m multiport --dports 10053,111,2049,32769,875,892 -j REJECT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.1 -p tcp -m multiport --dports 10053,111,2049,32769,875,892 -j REJECT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.0/24 -d 172.18.0.0/24 -p udp -m multiport --dports 10053,111,2049,32769,875,892 -m state --state NEW,ESTABLISHED -j ACCEPT &lt;br /&gt;
iptables -A INPUT -s 172.18.0.0/24 -d 172.18.0.0/24 -p tcp -m multiport --dports 10053,111,2049,32803,875,892 -m state --state NEW,ESTABLISHED -j ACCEPT &lt;br /&gt;
iptables -A OUTPUT -s 172.18.0.0/24 -d 172.18.0.0/24 -p udp -m multiport --sports 10053,111,2049,32769,875,892 -m state --state ESTABLISHED -j ACCEPT &lt;br /&gt;
iptables -A OUTPUT -s 172.18.0.0/24 -d 172.18.0.0/24 -p tcp -m multiport --sports 10053,111,2049,32803,875,892 -m state --state ESTABLISHED -j ACCEPT &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
## cifs&lt;br /&gt;
# The router doesn&#039;t need SMB access.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iptables -A INPUT -s 172.18.0.1 -p udp --dport 137 -j REJECT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.1 -p udp --dport 138 -j REJECT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.1 -p tcp --dport 139 -j REJECT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.1 -p tcp --dport 445 -j REJECT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Actual Samba ports&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iptables -A INPUT -s 172.18.0.0/24 -m state --state NEW -p tcp --dport 137 -j ACCEPT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.0/24 -m state --state NEW -p tcp --dport 138 -j ACCEPT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.0/24 -m state --state NEW -p udp --dport 137 -j ACCEPT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.0/24 -m state --state NEW -p udp --dport 138 -j ACCEPT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.0/24 -m state --state NEW -p tcp --dport 139 -j ACCEPT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.0/24 -m state --state NEW -p tcp --dport 445 -j ACCEPT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#Note to remove junkt from your iptables like after uninstalling ufw.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for ufw in `iptables -n -L | grep -E  ^Chain.*ufw | awk &#039;{ print $2 }&#039;`; do iptables -F $ufw; done&lt;br /&gt;
iptables-save | grep -v ufw &amp;gt; /tmp/iptables&lt;br /&gt;
## verify that the /tmp/iptables are as you want it to be&lt;br /&gt;
iptables-restore &amp;lt; /tmp/iptables&lt;br /&gt;
for ufw in `iptables -n -L | grep -E  ^Chain.*ufw | awk &#039;{ print $2 }&#039;`; do iptables -X $ufw; done&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; now validate that the rules are as you want them to be &amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Iptables-firewalls&amp;diff=64</id>
		<title>Iptables-firewalls</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Iptables-firewalls&amp;diff=64"/>
		<updated>2023-03-23T10:00:59Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;## allow all traffic on local interface&lt;br /&gt;
iptables -A INPUT -i lo -j ACCEPT&lt;br /&gt;
iptables -A OUTPUT -o lo -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
## allow related traffic in and out&lt;br /&gt;
iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT&lt;br /&gt;
iptables -A OUTPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
## drop invalid packages&lt;br /&gt;
iptables -A INPUT -m conntrack --ctstate INVALID -j DROP&lt;br /&gt;
&lt;br /&gt;
## allow ssh access&lt;br /&gt;
iptables -A INPUT -p tcp --dport 22 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT&lt;br /&gt;
iptables -A OUTPUT -p tcp --sport 22 -m conntrack --ctstate ESTABLISHED -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
## allow https and http traffic&lt;br /&gt;
iptables -A INPUT -p tcp -m multiport --dports 80,443 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT&lt;br /&gt;
iptables -A OUTPUT -p tcp -m multiport --dports 80,443 -m conntrack --ctstate ESTABLISHED -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
## allow smtp access&lt;br /&gt;
iptables -A INPUT -p tcp --dport 25 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT&lt;br /&gt;
iptables -A OUTPUT -p tcp --sport 25 -m conntrack --ctstate ESTABLISHED -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
## allow IMAP access&lt;br /&gt;
iptables -A INPUT -p tcp --dport 143 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT&lt;br /&gt;
iptables -A OUTPUT -p tcp --sport 143 -m conntrack --ctstate ESTABLISHED -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
## allow IMAPS access&lt;br /&gt;
iptables -A INPUT -p tcp --dport 993 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT&lt;br /&gt;
iptables -A OUTPUT -p tcp --sport 993 -m conntrack --ctstate ESTABLISHED -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
## NFS&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iptables -A INPUT -s 172.18.0.1 -p udp -m multiport --dports 10053,111,2049,32769,875,892  -j REJECT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.1 -p udp -m multiport --dports 10053,111,2049,32769,875,892 -j REJECT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.1 -p tcp -m multiport --dports 10053,111,2049,32769,875,892 -j REJECT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.1 -p tcp -m multiport --dports 10053,111,2049,32769,875,892 -j REJECT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.0/24 -d 172.18.0.0/24 -p udp -m multiport --dports 10053,111,2049,32769,875,892 -m state --state NEW,ESTABLISHED -j ACCEPT &lt;br /&gt;
iptables -A INPUT -s 172.18.0.0/24 -d 172.18.0.0/24 -p tcp -m multiport --dports 10053,111,2049,32803,875,892 -m state --state NEW,ESTABLISHED -j ACCEPT &lt;br /&gt;
iptables -A OUTPUT -s 172.18.0.0/24 -d 172.18.0.0/24 -p udp -m multiport --sports 10053,111,2049,32769,875,892 -m state --state ESTABLISHED -j ACCEPT &lt;br /&gt;
iptables -A OUTPUT -s 172.18.0.0/24 -d 172.18.0.0/24 -p tcp -m multiport --sports 10053,111,2049,32803,875,892 -m state --state ESTABLISHED -j ACCEPT &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
## cifs&lt;br /&gt;
# The router doesn&#039;t need SMB access.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iptables -A INPUT -s 172.18.0.1 -p udp --dport 137 -j REJECT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.1 -p udp --dport 138 -j REJECT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.1 -p tcp --dport 139 -j REJECT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.1 -p tcp --dport 445 -j REJECT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Actual Samba ports&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iptables -A INPUT -s 172.18.0.0/24 -m state --state NEW -p tcp --dport 137 -j ACCEPT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.0/24 -m state --state NEW -p tcp --dport 138 -j ACCEPT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.0/24 -m state --state NEW -p udp --dport 137 -j ACCEPT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.0/24 -m state --state NEW -p udp --dport 138 -j ACCEPT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.0/24 -m state --state NEW -p tcp --dport 139 -j ACCEPT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.0/24 -m state --state NEW -p tcp --dport 445 -j ACCEPT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Iptables-firewalls&amp;diff=63</id>
		<title>Iptables-firewalls</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Iptables-firewalls&amp;diff=63"/>
		<updated>2023-03-23T10:00:04Z</updated>

		<summary type="html">&lt;p&gt;Mike: Created page with &amp;quot;## allow all traffic on local interface iptables -A INPUT -i lo -j ACCEPT iptables -A OUTPUT -o lo -j ACCEPT  ## allow related traffic in and out iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT iptables -A OUTPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT  ## drop invalid packages iptables -A INPUT -m conntrack --ctstate INVALID -j DROP  ## allow ssh access iptables -A INPUT -p tcp --dport 22 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT iptab...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;## allow all traffic on local interface&lt;br /&gt;
iptables -A INPUT -i lo -j ACCEPT&lt;br /&gt;
iptables -A OUTPUT -o lo -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
## allow related traffic in and out&lt;br /&gt;
iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT&lt;br /&gt;
iptables -A OUTPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
## drop invalid packages&lt;br /&gt;
iptables -A INPUT -m conntrack --ctstate INVALID -j DROP&lt;br /&gt;
&lt;br /&gt;
## allow ssh access&lt;br /&gt;
iptables -A INPUT -p tcp --dport 22 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT&lt;br /&gt;
iptables -A OUTPUT -p tcp --sport 22 -m conntrack --ctstate ESTABLISHED -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
## allow https and http traffic&lt;br /&gt;
iptables -A INPUT -p tcp -m multiport --dports 80,443 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT&lt;br /&gt;
iptables -A OUTPUT -p tcp -m multiport --dports 80,443 -m conntrack --ctstate ESTABLISHED -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
## allow smtp access&lt;br /&gt;
iptables -A INPUT -p tcp --dport 25 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT&lt;br /&gt;
iptables -A OUTPUT -p tcp --sport 25 -m conntrack --ctstate ESTABLISHED -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
## allow IMAP access&lt;br /&gt;
iptables -A INPUT -p tcp --dport 143 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT&lt;br /&gt;
iptables -A OUTPUT -p tcp --sport 143 -m conntrack --ctstate ESTABLISHED -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
## allow IMAPS access&lt;br /&gt;
iptables -A INPUT -p tcp --dport 993 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT&lt;br /&gt;
iptables -A OUTPUT -p tcp --sport 993 -m conntrack --ctstate ESTABLISHED -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
## NFS&lt;br /&gt;
iptables -A INPUT -s 172.18.0.1 -p udp -m multiport --dports 10053,111,2049,32769,875,892  -j REJECT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.1 -p udp -m multiport --dports 10053,111,2049,32769,875,892 -j REJECT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.1 -p tcp -m multiport --dports 10053,111,2049,32769,875,892 -j REJECT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.1 -p tcp -m multiport --dports 10053,111,2049,32769,875,892 -j REJECT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.0/24 -d 172.18.0.0/24 -p udp -m multiport --dports 10053,111,2049,32769,875,892 -m state --state NEW,ESTABLISHED -j ACCEPT &lt;br /&gt;
iptables -A INPUT -s 172.18.0.0/24 -d 172.18.0.0/24 -p tcp -m multiport --dports 10053,111,2049,32803,875,892 -m state --state NEW,ESTABLISHED -j ACCEPT &lt;br /&gt;
iptables -A OUTPUT -s 172.18.0.0/24 -d 172.18.0.0/24 -p udp -m multiport --sports 10053,111,2049,32769,875,892 -m state --state ESTABLISHED -j ACCEPT &lt;br /&gt;
iptables -A OUTPUT -s 172.18.0.0/24 -d 172.18.0.0/24 -p tcp -m multiport --sports 10053,111,2049,32803,875,892 -m state --state ESTABLISHED -j ACCEPT &lt;br /&gt;
&lt;br /&gt;
## cifs&lt;br /&gt;
# The router doesn&#039;t need SMB access.&lt;br /&gt;
iptables -A INPUT -s 172.18.0.1 -p udp --dport 137 -j REJECT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.1 -p udp --dport 138 -j REJECT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.1 -p tcp --dport 139 -j REJECT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.1 -p tcp --dport 445 -j REJECT&lt;br /&gt;
&lt;br /&gt;
# Actual Samba ports&lt;br /&gt;
iptables -A INPUT -s 172.18.0.0/24 -m state --state NEW -p tcp --dport 137 -j ACCEPT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.0/24 -m state --state NEW -p tcp --dport 138 -j ACCEPT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.0/24 -m state --state NEW -p udp --dport 137 -j ACCEPT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.0/24 -m state --state NEW -p udp --dport 138 -j ACCEPT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.0/24 -m state --state NEW -p tcp --dport 139 -j ACCEPT&lt;br /&gt;
iptables -A INPUT -s 172.18.0.0/24 -m state --state NEW -p tcp --dport 445 -j ACCEPT&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Linux&amp;diff=62</id>
		<title>Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Linux&amp;diff=62"/>
		<updated>2023-03-23T08:57:56Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[ Working with disk images]]&lt;br /&gt;
&lt;br /&gt;
[[working with network interfaces]]&lt;br /&gt;
&lt;br /&gt;
[[ Working with dhcpd]]&lt;br /&gt;
&lt;br /&gt;
[[ yocto ]]&lt;br /&gt;
&lt;br /&gt;
[[iptables-firewalls]]&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Docker_security&amp;diff=61</id>
		<title>Docker security</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Docker_security&amp;diff=61"/>
		<updated>2023-03-21T14:07:58Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Docker is actually a major security risk on a system where you allow users to start and stop docker containers.   A docker container per default uses root as the running user, and thus starting a docker container using some trickeries as a normal user, will compromise system security..&lt;br /&gt;
&lt;br /&gt;
For instance if I wish to compromise system passwords, I can simply do&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mike@Server:~/docker$ docker run --rm  -v /etc:/mnt/etc/   httpd:2.4 cat /mnt/etc/shadow&lt;br /&gt;
root:(obfuscated by author)::0:99999:7:::&lt;br /&gt;
bin:*:18358:0:99999:7:::&lt;br /&gt;
daemon:*:18358:0:99999:7:::&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This should NEVER be possible for a user to access private files, a simpilar proces could be used to create a new root user, with a known password, thus elevating a user to root user.  &lt;br /&gt;
&lt;br /&gt;
Thus you must remember that any memer of the &amp;quot;docker&amp;quot; group, is per defintiion now root on your system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Always remember that Docker is NOT virtualization, and it runs in scope of your system.. &lt;br /&gt;
&lt;br /&gt;
A solutino to this is to create the file /etc/docker/daemon.json containing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
        &amp;quot;userns-remap&amp;quot;: &amp;quot;dockeruser&amp;quot;,&lt;br /&gt;
        &amp;quot;log-driver&amp;quot;: &amp;quot;journald&amp;quot;,&lt;br /&gt;
        &amp;quot;log-opts&amp;quot;: {&lt;br /&gt;
                &amp;quot;tag&amp;quot;: &amp;quot;{{.Name}}&amp;quot;&lt;br /&gt;
        },&lt;br /&gt;
        &amp;quot;bip&amp;quot;: &amp;quot;172.19.0.1/16&amp;quot;,&lt;br /&gt;
        &amp;quot;dns&amp;quot; : [ &amp;quot;8.8.6.6&amp;quot; , &amp;quot;8.8.8.8&amp;quot; ] &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;Where you force a namsspace onto docker, where it runs as the user named - dockeruser, and as no more priviliges than a normal user.&lt;br /&gt;
&lt;br /&gt;
However you also need to create the user by&amp;lt;pre&amp;gt;&lt;br /&gt;
useradd dockeruser&lt;br /&gt;
&amp;lt;/pre&amp;gt;And then validate that the correct entries are created in /etc/subuid, and /etc/subgid&amp;lt;pre&amp;gt;&lt;br /&gt;
# grep dockeruser /etc/subuid&lt;br /&gt;
dockeruser:1476256:65536&lt;br /&gt;
# grep dockeruser /etc/subgid&lt;br /&gt;
dockeruser:1476256:65536&lt;br /&gt;
&amp;lt;/pre&amp;gt;However all volumes will  need to be owned by the above UID, or they will not be able to access the files..&lt;br /&gt;
&lt;br /&gt;
Thus you will need to apply the following on each volume&amp;lt;pre&amp;gt;&lt;br /&gt;
chown -R 1476256:1476256 .&lt;br /&gt;
&amp;lt;/pre&amp;gt;In my case with the above /etc/subuid, and /etc/subgid.&lt;br /&gt;
&lt;br /&gt;
Now the same test as above fails.&amp;lt;pre&amp;gt;&lt;br /&gt;
# docker run --rm  -v /etc:/mnt/etc/   httpd:2.4 cat /mnt/etc/shadow&lt;br /&gt;
cat: /mnt/etc/shadow: Permission denied&lt;br /&gt;
&amp;lt;/pre&amp;gt;As it should..&lt;br /&gt;
&lt;br /&gt;
However Namespaces are relatively new implementations, and they&#039;re not complete, and therefore it may be circumventable.&lt;br /&gt;
&lt;br /&gt;
This is however a much better situation than before.&lt;br /&gt;
&lt;br /&gt;
Do not let people get access to docker unless you trust them, or the machine is nothing important, and can easily be recreated.&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Wiki_tricks&amp;diff=60</id>
		<title>Wiki tricks</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Wiki_tricks&amp;diff=60"/>
		<updated>2023-02-02T16:27:15Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#mermaid:sequenceDiagram&lt;br /&gt;
participant Alice&lt;br /&gt;
participant Bob&lt;br /&gt;
  Alice-&amp;gt;John: Hello John, how are you?&lt;br /&gt;
  loop Healthcheck&lt;br /&gt;
       John-&amp;gt;John: Fight against hypochondria&lt;br /&gt;
  end&lt;br /&gt;
  Note right of John: Rational thoughts &amp;lt;br/&amp;gt;prevail...&lt;br /&gt;
    John--&amp;gt;Alice: Great!&lt;br /&gt;
    John-&amp;gt;Bob: How about you?&lt;br /&gt;
    Bob--&amp;gt;John: Jolly good!&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Wiki_tricks&amp;diff=59</id>
		<title>Wiki tricks</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Wiki_tricks&amp;diff=59"/>
		<updated>2023-02-02T16:21:03Z</updated>

		<summary type="html">&lt;p&gt;Mike: Created page with &amp;quot;{{#mermaid:gantt  dateFormat  YYYY-MM-DD  title Adding GANTT diagram functionality to mermaid  section A section  Completed task            :done,    des1, 2014-01-06,2014-01-08  Active task               :active,  des2, 2014-01-09, 3d  Future task               :         des3, after des2, 5d  Future task2              :         des4, after des3, 5d  section Critical tasks  Completed task in the critical line :crit, done, 2014-01-06,24h  Implement parser and jison...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#mermaid:gantt&lt;br /&gt;
 dateFormat  YYYY-MM-DD&lt;br /&gt;
 title Adding GANTT diagram functionality to mermaid&lt;br /&gt;
 section A section&lt;br /&gt;
 Completed task            :done,    des1, 2014-01-06,2014-01-08&lt;br /&gt;
 Active task               :active,  des2, 2014-01-09, 3d&lt;br /&gt;
 Future task               :         des3, after des2, 5d&lt;br /&gt;
 Future task2              :         des4, after des3, 5d&lt;br /&gt;
 section Critical tasks&lt;br /&gt;
 Completed task in the critical line :crit, done, 2014-01-06,24h&lt;br /&gt;
 Implement parser and jison          :crit, done, after des1, 2d&lt;br /&gt;
 Create tests for parser             :crit, active, 3d&lt;br /&gt;
 Future task in critical line        :crit, 5d&lt;br /&gt;
 Create tests for renderer           :2d&lt;br /&gt;
 Add to mermaid                      :1d&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Main_Page&amp;diff=58</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Main_Page&amp;diff=58"/>
		<updated>2023-02-02T16:19:27Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Why yet another collection of commands.&lt;br /&gt;
&lt;br /&gt;
Basically I&#039;m getting tired of trying to find things via google, 90% of the matches are irrelevant to the searches, and thus I am collecting notes on how to do common tasks, that does NOT involve the usage of a GUI, as I find that annoying to use when running remote support -having to go through 3-4 UI bridges, to get to a service, just isn&#039;t efficient.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This information is put out public, and contains nothing restricted, but is intended as information for people.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Tooling information]]&lt;br /&gt;
&lt;br /&gt;
[[git tricks]]&lt;br /&gt;
&lt;br /&gt;
[[Docker ]]&lt;br /&gt;
&lt;br /&gt;
[[Linux]]&lt;br /&gt;
&lt;br /&gt;
[[systemd]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[wiki tricks]]&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Settings_for_yocto&amp;diff=57</id>
		<title>Settings for yocto</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Settings_for_yocto&amp;diff=57"/>
		<updated>2023-01-26T14:42:46Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Disable Systemd for a app ===&lt;br /&gt;
SYSTEMD_AUTO_ENABLE_${PN} = &amp;quot;disable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OPTS=&amp;quot;--root=$D&amp;quot;&lt;br /&gt;
&lt;br /&gt;
systemctl $OPTS mask modutils.service&lt;br /&gt;
&lt;br /&gt;
Note Disable does not work in yocto&lt;br /&gt;
&lt;br /&gt;
=== Enable app in systemd ===&lt;br /&gt;
OPTS=&amp;quot;--root=$D&amp;quot;&lt;br /&gt;
&lt;br /&gt;
systemctl $OPTS enable modutils.service&lt;br /&gt;
&lt;br /&gt;
=== Manually disable ===&lt;br /&gt;
remove the link created in /etc/systemd/system.&amp;lt;pre&amp;gt;&lt;br /&gt;
do_install_append() {&lt;br /&gt;
    rm -rf ${D}${sysconfdir}/systemd/system/sysinit.target.wants/systemd-timesyncd.service&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Systemd&amp;diff=56</id>
		<title>Systemd</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Systemd&amp;diff=56"/>
		<updated>2023-01-26T14:41:08Z</updated>

		<summary type="html">&lt;p&gt;Mike: Created page with &amp;quot;https://docs.fedoraproject.org/en-US/fedora-coreos/tutorial-services/&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;https://docs.fedoraproject.org/en-US/fedora-coreos/tutorial-services/&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Main_Page&amp;diff=55</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Main_Page&amp;diff=55"/>
		<updated>2023-01-26T14:40:58Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Why yet another collection of commands.&lt;br /&gt;
&lt;br /&gt;
Basically I&#039;m getting tired of trying to find things via google, 90% of the matches are irrelevant to the searches, and thus I am collecting notes on how to do common tasks, that does NOT involve the usage of a GUI, as I find that annoying to use when running remote support -having to go through 3-4 UI bridges, to get to a service, just isn&#039;t efficient.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This information is put out public, and contains nothing restricted, but is intended as information for people.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Tooling information]]&lt;br /&gt;
&lt;br /&gt;
[[git tricks]]&lt;br /&gt;
&lt;br /&gt;
[[Docker ]]&lt;br /&gt;
&lt;br /&gt;
[[Linux]]&lt;br /&gt;
&lt;br /&gt;
[[systemd]]&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Settings_for_yocto&amp;diff=54</id>
		<title>Settings for yocto</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Settings_for_yocto&amp;diff=54"/>
		<updated>2023-01-26T14:40:37Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Disable Systemd for a app ===&lt;br /&gt;
SYSTEMD_AUTO_ENABLE_${PN} = &amp;quot;disable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OPTS=&amp;quot;--root=$D&amp;quot;&lt;br /&gt;
&lt;br /&gt;
systemctl $OPTS mask modutils.service&lt;br /&gt;
&lt;br /&gt;
Note Disable does not work in yocto&lt;br /&gt;
&lt;br /&gt;
=== Enable app in systemd ===&lt;br /&gt;
OPTS=&amp;quot;--root=$D&amp;quot;&lt;br /&gt;
&lt;br /&gt;
systemctl $OPTS enable modutils.service&lt;br /&gt;
&lt;br /&gt;
=== Manually disable ===&lt;br /&gt;
remove the link created in /etc/systemd/system.&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Settings_for_yocto&amp;diff=53</id>
		<title>Settings for yocto</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Settings_for_yocto&amp;diff=53"/>
		<updated>2023-01-24T13:24:51Z</updated>

		<summary type="html">&lt;p&gt;Mike: Created page with &amp;quot;=== Disable Systemd for a app === SYSTEMD_AUTO_ENABLE_${PN} = &amp;quot;disable&amp;quot;   OPTS=&amp;quot;--root=$D&amp;quot;  systemctl $OPTS mask modutils.service  Note Disable does not work in yocto  === Enable app in systemd === OPTS=&amp;quot;--root=$D&amp;quot;  systemctl $OPTS enable modutils.service&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Disable Systemd for a app ===&lt;br /&gt;
SYSTEMD_AUTO_ENABLE_${PN} = &amp;quot;disable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OPTS=&amp;quot;--root=$D&amp;quot;&lt;br /&gt;
&lt;br /&gt;
systemctl $OPTS mask modutils.service&lt;br /&gt;
&lt;br /&gt;
Note Disable does not work in yocto&lt;br /&gt;
&lt;br /&gt;
=== Enable app in systemd ===&lt;br /&gt;
OPTS=&amp;quot;--root=$D&amp;quot;&lt;br /&gt;
&lt;br /&gt;
systemctl $OPTS enable modutils.service&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Yocto&amp;diff=52</id>
		<title>Yocto</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Yocto&amp;diff=52"/>
		<updated>2023-01-24T13:22:19Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[ create patches ]] &lt;br /&gt;
&lt;br /&gt;
=== Notes on Yocto. ===&lt;br /&gt;
[[Settings for yocto]]&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Create_patches&amp;diff=51</id>
		<title>Create patches</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Create_patches&amp;diff=51"/>
		<updated>2023-01-18T15:43:32Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;https://wiki.yoctoproject.org/wiki/TipsAndTricks/Patching_the_source_for_a_recipe&lt;br /&gt;
&lt;br /&gt;
Patching the source for a recipe&lt;br /&gt;
One of the useful things about OpenEmbedded building everything from source is that it&#039;s fairly easy to make changes to anything that gets built, but doing so for the first time can be a bit daunting.&lt;br /&gt;
&lt;br /&gt;
As part of building a recipe, OE creates a tmp/work/&amp;lt;architecture&amp;gt;/&amp;lt;recipe&amp;gt;/&amp;lt;version&amp;gt; directory, known as the &amp;quot;work directory&amp;quot;. This is where all of the work done to build a recipe takes place. One of the things you&#039;ll find in this directory is the source, usually under a subdirectory named &amp;lt;recipename&amp;gt;-&amp;lt;version&amp;gt; or &amp;quot;git&amp;quot; (depending on how the fetched source is provided). The temptation (and what people used to do in the past) is to simply make changes here and then recompile, but there are several reasons why that&#039;s not a good idea:&lt;br /&gt;
&lt;br /&gt;
It&#039;s awkward - you have to use bitbake -c compile -f or bitbake -C compile to force recompilation, since the build system doesn&#039;t know that you&#039;ve made any changes&lt;br /&gt;
You can easily lose your changes if you&#039;re not careful e.g. running bitbake -c clean will wipe the directory out&lt;br /&gt;
Luckily if you&#039;re using the fido (1.8) or later release, there&#039;s a much better method using the devtool command:&lt;br /&gt;
&lt;br /&gt;
# Run devtool modify &amp;lt;recipename&amp;gt;. This will fetch the sources for the recipe and unpack them to a workspace/sources/&amp;lt;recipename&amp;gt; directory and initialise it as a git repository if it isn&#039;t already one. If you prefer you can specify your own path, or if you already have your own existing source tree you can specify the path along with the -n option to use that instead of unpacking a new one&lt;br /&gt;
# Make the changes you want to make to the source&lt;br /&gt;
# Run a build to test your changes - you can just bitbake &amp;lt;recipename&amp;gt; or even build an entire image incorporating the changes assuming a package produced by the recipe is part of an image. There&#039;s no need to force anything - the build system will detect changes to the source and recompile as necessary.&lt;br /&gt;
#* If you wish, test your changes on the target. There&#039;s a &amp;quot;devtool deploy-target&amp;quot; command which will copy the files installed at do_install over to the target machine assuming it has network access, and any dependencies are already present in the image&lt;br /&gt;
# Repeat from step 2 as needed until you&#039;re happy with the results.&lt;br /&gt;
#* At this point you will almost certainly want to place your changes in the form of a patch to be applied from the metadata - devtool provides help with this as well. Commit your changes using &amp;quot;git commit&amp;quot; (as many or as few commits as you&#039;d like) and then run either:&lt;br /&gt;
# devtool update-recipe &amp;lt;recipename&amp;gt; to update the original recipe - usually appropriate if it&#039;s your own recipe or you&#039;re submitting the changes back to the upstream layer devtool update-recipe -a &amp;lt;layerpath&amp;gt; &amp;lt;recipename&amp;gt; to put your changes in the form of a bbappend to be applied by a different layer. This is usually the desired method if your changes are customisations rather than bugfixes.&lt;br /&gt;
#* If you&#039;re finished working on the recipe, run devtool reset &amp;lt;recipename&amp;gt;.&lt;br /&gt;
This is just one of the things that devtool can do - it provides some powerful tools to help you maintain recipes and make changes to source code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
https://wiki.koansoftware.com/index.php/Using_devtool_to_modify_recipes_in_Yocto&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
devtool modify   linux-yocto-custom --no-extract  tmp-glibc/work-shared/sm800a/kernel-source/&lt;br /&gt;
&lt;br /&gt;
== Create patches from first principles ==&lt;br /&gt;
Do the changes and commit the files to the git repository and then generate a patch.  eg.&amp;lt;pre&amp;gt;&lt;br /&gt;
git format-patch -1 head&lt;br /&gt;
&amp;lt;/pre&amp;gt;Generates a patch file, that can be added to the .bbappend file by&amp;lt;pre&amp;gt;&lt;br /&gt;
SRC_URI += &amp;quot;&lt;br /&gt;
    file://mypatch.patch&lt;br /&gt;
&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;build again form a clean system, and the patch will be applied.&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Create_patches&amp;diff=50</id>
		<title>Create patches</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Create_patches&amp;diff=50"/>
		<updated>2023-01-17T11:22:44Z</updated>

		<summary type="html">&lt;p&gt;Mike: Created page with &amp;quot;https://wiki.yoctoproject.org/wiki/TipsAndTricks/Patching_the_source_for_a_recipe Patching the source for a recipe One of the useful things about OpenEmbedded building everything from source is that it&amp;#039;s fairly easy to make changes to anything that gets built, but doing so for the first time can be a bit daunting.  As part of building a recipe, OE creates a tmp/work/&amp;lt;architecture&amp;gt;/&amp;lt;recipe&amp;gt;/&amp;lt;version&amp;gt; directory, known as the &amp;quot;work directory&amp;quot;. This is where all of the work...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;https://wiki.yoctoproject.org/wiki/TipsAndTricks/Patching_the_source_for_a_recipe&lt;br /&gt;
Patching the source for a recipe&lt;br /&gt;
One of the useful things about OpenEmbedded building everything from source is that it&#039;s fairly easy to make changes to anything that gets built, but doing so for the first time can be a bit daunting.&lt;br /&gt;
&lt;br /&gt;
As part of building a recipe, OE creates a tmp/work/&amp;lt;architecture&amp;gt;/&amp;lt;recipe&amp;gt;/&amp;lt;version&amp;gt; directory, known as the &amp;quot;work directory&amp;quot;. This is where all of the work done to build a recipe takes place. One of the things you&#039;ll find in this directory is the source, usually under a subdirectory named &amp;lt;recipename&amp;gt;-&amp;lt;version&amp;gt; or &amp;quot;git&amp;quot; (depending on how the fetched source is provided). The temptation (and what people used to do in the past) is to simply make changes here and then recompile, but there are several reasons why that&#039;s not a good idea:&lt;br /&gt;
&lt;br /&gt;
It&#039;s awkward - you have to use bitbake -c compile -f or bitbake -C compile to force recompilation, since the build system doesn&#039;t know that you&#039;ve made any changes&lt;br /&gt;
You can easily lose your changes if you&#039;re not careful e.g. running bitbake -c clean will wipe the directory out&lt;br /&gt;
Luckily if you&#039;re using the fido (1.8) or later release, there&#039;s a much better method using the devtool command:&lt;br /&gt;
&lt;br /&gt;
# Run devtool modify &amp;lt;recipename&amp;gt;. This will fetch the sources for the recipe and unpack them to a workspace/sources/&amp;lt;recipename&amp;gt; directory and initialise it as a git repository if it isn&#039;t already one. If you prefer you can specify your own path, or if you already have your own existing source tree you can specify the path along with the -n option to use that instead of unpacking a new one.&lt;br /&gt;
Make the changes you want to make to the source&lt;br /&gt;
Run a build to test your changes - you can just bitbake &amp;lt;recipename&amp;gt; or even build an entire image incorporating the changes assuming a package produced by the recipe is part of an image. There&#039;s no need to force anything - the build system will detect changes to the source and recompile as necessary.&lt;br /&gt;
If you wish, test your changes on the target. There&#039;s a &amp;quot;devtool deploy-target&amp;quot; command which will copy the files installed at do_install over to the target machine assuming it has network access, and any dependencies are already present in the image.&lt;br /&gt;
Repeat from step 2 as needed until you&#039;re happy with the results.&lt;br /&gt;
At this point you will almost certainly want to place your changes in the form of a patch to be applied from the metadata - devtool provides help with this as well. Commit your changes using &amp;quot;git commit&amp;quot; (as many or as few commits as you&#039;d like) and then run either:&lt;br /&gt;
devtool update-recipe &amp;lt;recipename&amp;gt; to update the original recipe - usually appropriate if it&#039;s your own recipe or you&#039;re submitting the changes back to the upstream layer&lt;br /&gt;
devtool update-recipe -a &amp;lt;layerpath&amp;gt; &amp;lt;recipename&amp;gt; to put your changes in the form of a bbappend to be applied by a different layer. This is usually the desired method if your changes are customisations rather than bugfixes.&lt;br /&gt;
If you&#039;re finished working on the recipe, run devtool reset &amp;lt;recipename&amp;gt;.&lt;br /&gt;
This is just one of the things that devtool can do - it provides some powerful tools to help you maintain recipes and make changes to source code.&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Yocto&amp;diff=49</id>
		<title>Yocto</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Yocto&amp;diff=49"/>
		<updated>2023-01-17T11:22:09Z</updated>

		<summary type="html">&lt;p&gt;Mike: Created page with &amp;quot; create patches &amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[ create patches ]]&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Linux&amp;diff=48</id>
		<title>Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Linux&amp;diff=48"/>
		<updated>2023-01-17T11:21:58Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[ Working with disk images]]&lt;br /&gt;
&lt;br /&gt;
[[working with network interfaces]]&lt;br /&gt;
&lt;br /&gt;
[[ Working with dhcpd]]&lt;br /&gt;
&lt;br /&gt;
[[ yocto ]]&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Network-networkd&amp;diff=47</id>
		<title>Network-networkd</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Network-networkd&amp;diff=47"/>
		<updated>2023-01-17T11:21:31Z</updated>

		<summary type="html">&lt;p&gt;Mike: Replaced content with &amp;quot;==Setup for Networkd==  ===Switching to Networkd === &amp;lt;pre&amp;gt;$ systemctl stop NetworkManager  $ systemctl disable NetworkManager  $ systemctl enable systemd-networkd $ systemctl enable systemd-resolved $ systemctl start systemd-resolved $ rm /etc/resolv.conf $ ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf $ mkdir -p /etc/systemd/network&amp;lt;/pre&amp;gt;  ===Configuring Networkd===  ====What interfaces do we have==== &amp;lt;pre&amp;gt; # networkctl IDX LINK            TYPE     OPERATI...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Setup for Networkd==&lt;br /&gt;
&lt;br /&gt;
===Switching to Networkd ===&lt;br /&gt;
&amp;lt;pre&amp;gt;$ systemctl stop NetworkManager &lt;br /&gt;
$ systemctl disable NetworkManager &lt;br /&gt;
$ systemctl enable systemd-networkd&lt;br /&gt;
$ systemctl enable systemd-resolved&lt;br /&gt;
$ systemctl start systemd-resolved&lt;br /&gt;
$ rm /etc/resolv.conf&lt;br /&gt;
$ ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf&lt;br /&gt;
$ mkdir -p /etc/systemd/network&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Configuring Networkd===&lt;br /&gt;
&lt;br /&gt;
====What interfaces do we have====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# networkctl&lt;br /&gt;
IDX LINK            TYPE     OPERATIONAL SETUP    &lt;br /&gt;
  1 lo              loopback carrier     unmanaged&lt;br /&gt;
  2 eno1            ether    routable    unmanaged&lt;br /&gt;
  3 br0             bridge   routable    unmanaged&lt;br /&gt;
  4 virbr0          bridge   no-carrier  unmanaged&lt;br /&gt;
  5 docker0         bridge   no-carrier  unmanaged&lt;br /&gt;
  6 br-b737ea16f9fc bridge   no-carrier  unmanaged&lt;br /&gt;
  7 vnet0           ether    degraded    unmanaged&lt;br /&gt;
&lt;br /&gt;
7 links listed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Configuring en01 - static====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cat &amp;gt;&amp;gt; /etc/systemd/network/00-eno1.network &amp;lt;&amp;lt; EOF&lt;br /&gt;
[Match]&lt;br /&gt;
Name=enp3s0&lt;br /&gt;
&lt;br /&gt;
[Network]&lt;br /&gt;
Address=192.168.1.50/24&lt;br /&gt;
Gateway=192.168.1.1&lt;br /&gt;
DNS=192.168.1.1&lt;br /&gt;
EOF&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Configuring en01 - dhcp====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cat &amp;gt;&amp;gt; /etc/systemd/network/00-eno1.network &amp;lt;&amp;lt; EOF&lt;br /&gt;
[Match]&lt;br /&gt;
Name=enp3s0&lt;br /&gt;
&lt;br /&gt;
[Network]&lt;br /&gt;
DHCP=yes&lt;br /&gt;
EOF&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Controlling interfaces ===&lt;br /&gt;
==== Full Restart ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ systemctl restart systemd-network&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Interface only ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ networkctl up eno1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ networkctl down eno1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==IP Alias for Networkd==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cat &amp;gt;&amp;gt; /etc/systemd/network/00-eno1.network &amp;lt;&amp;lt; EOF&lt;br /&gt;
[Match]&lt;br /&gt;
Name=enp3s0&lt;br /&gt;
&lt;br /&gt;
[Network]&lt;br /&gt;
Address=192.168.1.50/24&lt;br /&gt;
Address=172.14.0.50/24&lt;br /&gt;
Gateway=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
DNS=192.168.1.1&lt;br /&gt;
&lt;br /&gt;
Address=2a0a:3840:1337:126::b9c1:7ecb:1337/64&lt;br /&gt;
Gateway=2a0a:3840:1337:126::1&lt;br /&gt;
&lt;br /&gt;
EOF&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Working_with_dhcpd&amp;diff=46</id>
		<title>Working with dhcpd</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Working_with_dhcpd&amp;diff=46"/>
		<updated>2023-01-15T14:55:05Z</updated>

		<summary type="html">&lt;p&gt;Mike: Created page with &amp;quot;== DHCPD is a powerful tool for managing a network ==  === Setting up dhcpd centos 8 === $ dnf install dhcp-server  === Configure dhcpd ===&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== DHCPD is a powerful tool for managing a network ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up dhcpd centos 8 ===&lt;br /&gt;
$ dnf install dhcp-server&lt;br /&gt;
&lt;br /&gt;
=== Configure dhcpd ===&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Linux&amp;diff=45</id>
		<title>Linux</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Linux&amp;diff=45"/>
		<updated>2023-01-15T13:37:07Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[ Working with disk images]]&lt;br /&gt;
&lt;br /&gt;
[[working with network interfaces]]&lt;br /&gt;
   [[ Working with dhcpd]]&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=First_principles&amp;diff=44</id>
		<title>First principles</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=First_principles&amp;diff=44"/>
		<updated>2023-01-15T13:36:35Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Using ifconfig ==&lt;br /&gt;
&lt;br /&gt;
=== Show interface configuration ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ifconfig eno1&lt;br /&gt;
eno1: flags=4163&amp;lt;UP,BROADCAST,RUNNING,MULTICAST&amp;gt;  mtu 1500&lt;br /&gt;
        inet 192.168.1.79  netmask 255.255.255.0  broadcast 192.168.1.255&lt;br /&gt;
        inet6 fe80::a6a5:87ad:cb7a:6cad  prefixlen 64  scopeid 0x20&amp;lt;link&amp;gt;&lt;br /&gt;
        ether 50:eb:f6:3f:27:61  txqueuelen 1000  (Ethernet)&lt;br /&gt;
        RX packets 137223  bytes 104941638 (104.9 MB)&lt;br /&gt;
        RX errors 0  dropped 0  overruns 0  frame 0&lt;br /&gt;
        TX packets 91146  bytes 22484489 (22.4 MB)&lt;br /&gt;
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0&lt;br /&gt;
        device interrupt 16  memory 0xa1400000-a1420000  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Show All interfaces&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ifconfig&lt;br /&gt;
br0: flags=4163&amp;lt;UP,BROADCAST,RUNNING,MULTICAST&amp;gt;  mtu 1500&lt;br /&gt;
        inet 192.168.2.1  netmask 255.255.255.0  broadcast 192.168.2.255&lt;br /&gt;
        ether 92:51:fc:1b:36:38  txqueuelen 1000  (Ethernet)&lt;br /&gt;
        RX packets 277  bytes 28650 (28.6 KB)&lt;br /&gt;
        RX errors 0  dropped 0  overruns 0  frame 0&lt;br /&gt;
        TX packets 899  bytes 129148 (129.1 KB)&lt;br /&gt;
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0&lt;br /&gt;
&lt;br /&gt;
br-b737ea16f9fc: flags=4099&amp;lt;UP,BROADCAST,MULTICAST&amp;gt;  mtu 1500&lt;br /&gt;
        inet 172.25.0.1  netmask 255.255.0.0  broadcast 172.25.255.255&lt;br /&gt;
        ether 02:42:79:64:bc:e2  txqueuelen 0  (Ethernet)&lt;br /&gt;
        RX packets 0  bytes 0 (0.0 B)&lt;br /&gt;
        RX errors 0  dropped 0  overruns 0  frame 0&lt;br /&gt;
        TX packets 0  bytes 0 (0.0 B)&lt;br /&gt;
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0&lt;br /&gt;
&lt;br /&gt;
docker0: flags=4099&amp;lt;UP,BROADCAST,MULTICAST&amp;gt;  mtu 1500&lt;br /&gt;
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255&lt;br /&gt;
        ether 02:42:db:62:09:42  txqueuelen 0  (Ethernet)&lt;br /&gt;
.....&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Add ip alias ===&lt;br /&gt;
$ ifconfig eth0:1 10.10.20.218 netmask 255.255.255.0   broadcast 10.10.20.255&lt;br /&gt;
&lt;br /&gt;
== Using ip ==&lt;br /&gt;
&lt;br /&gt;
=== ip Usage ===&lt;br /&gt;
&lt;br /&gt;
==== ip help ====&lt;br /&gt;
&lt;br /&gt;
==== ip link show ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1: lo: &amp;lt;LOOPBACK,UP,LOWER_UP&amp;gt; mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000&lt;br /&gt;
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00&lt;br /&gt;
2: eno1: &amp;lt;BROADCAST,MULTICAST,UP,LOWER_UP&amp;gt; mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000&lt;br /&gt;
    link/ether 50:eb:f6:3f:27:61 brd ff:ff:ff:ff:ff:ff&lt;br /&gt;
    altname enp0s31f6&lt;br /&gt;
3: virbr0: &amp;lt;NO-CARRIER,BROADCAST,MULTICAST,UP&amp;gt; mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000&lt;br /&gt;
    link/ether 52:54:00:1f:16:1e brd ff:ff:ff:ff:ff:ff&lt;br /&gt;
4: br-b737ea16f9fc: &amp;lt;NO-CARRIER,BROADCAST,MULTICAST,UP&amp;gt; mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default &lt;br /&gt;
    link/ether 02:42:72:e2:a7:bb brd ff:ff:ff:ff:ff:ff&lt;br /&gt;
5: docker0: &amp;lt;NO-CARRIER,BROADCAST,MULTICAST,UP&amp;gt; mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default &lt;br /&gt;
    link/ether 02:42:25:da:f1:ee brd ff:ff:ff:ff:ff:ff&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== ip address show\ ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1: lo: &amp;lt;LOOPBACK,UP,LOWER_UP&amp;gt; mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000&lt;br /&gt;
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00&lt;br /&gt;
    inet 127.0.0.1/8 scope host lo&lt;br /&gt;
       valid_lft forever preferred_lft forever&lt;br /&gt;
    inet6 ::1/128 scope host &lt;br /&gt;
       valid_lft forever preferred_lft forever&lt;br /&gt;
2: eno1: &amp;lt;BROADCAST,MULTICAST,UP,LOWER_UP&amp;gt; mtu 1500 qdisc fq_codel state UP group default qlen 1000&lt;br /&gt;
    link/ether 50:eb:f6:3f:27:61 brd ff:ff:ff:ff:ff:ff&lt;br /&gt;
    altname enp0s31f6&lt;br /&gt;
    inet 192.168.1.80/24 brd 192.168.1.255 scope global eno1&lt;br /&gt;
       valid_lft forever preferred_lft forever&lt;br /&gt;
    inet 172.14.0.2/24 brd 172.14.0.255 scope global eno1&lt;br /&gt;
       valid_lft forever preferred_lft forever&lt;br /&gt;
    inet6 fe80::52eb:f6ff:fe3f:2761/64 scope link &lt;br /&gt;
       valid_lft forever preferred_lft forever&lt;br /&gt;
3: virbr0: &amp;lt;NO-CARRIER,BROADCAST,MULTICAST,UP&amp;gt; mtu 1500 qdisc noqueue state DOWN group default qlen 1000&lt;br /&gt;
    link/ether 52:54:00:1f:16:1e brd ff:ff:ff:ff:ff:ff&lt;br /&gt;
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0&lt;br /&gt;
       valid_lft forever preferred_lft forever&lt;br /&gt;
4: br-b737ea16f9fc: &amp;lt;NO-CARRIER,BROADCAST,MULTICAST,UP&amp;gt; mtu 1500 qdisc noqueue state DOWN group default &lt;br /&gt;
    link/ether 02:42:72:e2:a7:bb brd ff:ff:ff:ff:ff:ff&lt;br /&gt;
    inet 172.25.0.1/16 brd 172.25.255.255 scope global br-b737ea16f9fc&lt;br /&gt;
       valid_lft forever preferred_lft forever&lt;br /&gt;
5: docker0: &amp;lt;NO-CARRIER,BROADCAST,MULTICAST,UP&amp;gt; mtu 1500 qdisc noqueue state DOWN group default &lt;br /&gt;
    link/ether 02:42:25:da:f1:ee brd ff:ff:ff:ff:ff:ff&lt;br /&gt;
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== add ip alias ===&lt;br /&gt;
$ ip a add 192.168.178.2/24 dev eth0&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Main_Page&amp;diff=43</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Main_Page&amp;diff=43"/>
		<updated>2023-01-15T13:02:14Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Why yet another collection of commands.&lt;br /&gt;
&lt;br /&gt;
Basically I&#039;m getting tired of trying to find things via google, 90% of the matches are irrelevant to the searches, and thus I am collecting notes on how to do common tasks, that does NOT involve the usage of a GUI, as I find that annoying to use when running remote support -having to go through 3-4 UI bridges, to get to a service, just isn&#039;t efficient.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This information is put out public, and contains nothing restricted, but is intended as information for people.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Tooling information]]&lt;br /&gt;
&lt;br /&gt;
[[git tricks]]&lt;br /&gt;
&lt;br /&gt;
[[Docker ]]&lt;br /&gt;
&lt;br /&gt;
[[Linux]]&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Network-networkd&amp;diff=42</id>
		<title>Network-networkd</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Network-networkd&amp;diff=42"/>
		<updated>2023-01-15T13:00:08Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Setup for Networkd==&lt;br /&gt;
&lt;br /&gt;
===Switching to Networkd ===&lt;br /&gt;
&amp;lt;pre&amp;gt;$ systemctl stop NetworkManager &lt;br /&gt;
$ systemctl disable NetworkManager &lt;br /&gt;
$ systemctl enable systemd-networkd&lt;br /&gt;
$ systemctl enable systemd-resolved&lt;br /&gt;
$ systemctl start systemd-resolved&lt;br /&gt;
$ rm /etc/resolv.conf&lt;br /&gt;
$ ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf&lt;br /&gt;
$ mkdir -p /etc/systemd/network&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Configuring Networkd===&lt;br /&gt;
&lt;br /&gt;
====What interfaces do we have====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# networkctl&lt;br /&gt;
IDX LINK            TYPE     OPERATIONAL SETUP    &lt;br /&gt;
  1 lo              loopback carrier     unmanaged&lt;br /&gt;
  2 eno1            ether    routable    unmanaged&lt;br /&gt;
  3 br0             bridge   routable    unmanaged&lt;br /&gt;
  4 virbr0          bridge   no-carrier  unmanaged&lt;br /&gt;
  5 docker0         bridge   no-carrier  unmanaged&lt;br /&gt;
  6 br-b737ea16f9fc bridge   no-carrier  unmanaged&lt;br /&gt;
  7 vnet0           ether    degraded    unmanaged&lt;br /&gt;
&lt;br /&gt;
7 links listed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Configuring en01 - static====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cat &amp;gt;&amp;gt; /etc/systemd/network/00-eno1.network &amp;lt;&amp;lt; EOF&lt;br /&gt;
[Match]&lt;br /&gt;
Name=enp3s0&lt;br /&gt;
&lt;br /&gt;
[Network]&lt;br /&gt;
Address=192.168.1.50/24&lt;br /&gt;
Gateway=192.168.1.1&lt;br /&gt;
DNS=192.168.1.1&lt;br /&gt;
EOF&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Configuring en01 - dhcp====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cat &amp;gt;&amp;gt; /etc/systemd/network/00-eno1.network &amp;lt;&amp;lt; EOF&lt;br /&gt;
[Match]&lt;br /&gt;
Name=enp3s0&lt;br /&gt;
&lt;br /&gt;
[Network]&lt;br /&gt;
DHCP=yes&lt;br /&gt;
EOF&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Controlling interfaces ==&lt;br /&gt;
&lt;br /&gt;
=== Full Restart ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ systemctl restart systemd-network&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Interface only ===&lt;br /&gt;
&lt;br /&gt;
===== Link up and down (does not reconfigure) =====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ networkctl up eno1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ networkctl down eno1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Reconfigure interface based on configuration file =====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ networkctl reconfigure eno1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== networkd useful commands ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ networkctl list&lt;br /&gt;
IDX LINK            TYPE     OPERATIONAL SETUP    &lt;br /&gt;
  1 lo              loopback carrier     unmanaged&lt;br /&gt;
  2 eno1            ether    off         unmanaged&lt;br /&gt;
  3 virbr0          bridge   no-carrier  unmanaged&lt;br /&gt;
  4 br-b737ea16f9fc bridge   no-carrier  unmanaged&lt;br /&gt;
  5 docker0         bridge   no-carrier  unmanaged&lt;br /&gt;
&lt;br /&gt;
5 links listed.&lt;br /&gt;
root@workstation2:/etc/systemd/network# !ping&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==IP Alias for Networkd==&lt;br /&gt;
Adding an alias to an interface in networkd is closely related to the ip command, where the device simply receives more addresses on the interfaces.   It does not show up as a an aliased device, which IMO makes it harder to understand, but YMMV.&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cat &amp;gt;&amp;gt; /etc/systemd/network/00-eno1.network &amp;lt;&amp;lt; EOF&lt;br /&gt;
[Match]&lt;br /&gt;
Name=enp3s0&lt;br /&gt;
[Network]&lt;br /&gt;
Address=192.168.1.50/24&lt;br /&gt;
Address=172.14.0.50/24&lt;br /&gt;
Gateway=192.168.1.1&lt;br /&gt;
DNS=192.168.1.1&lt;br /&gt;
EOF&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Networkd Configuration Paramters (from ubuntu&#039;s man pages) ==&lt;br /&gt;
&lt;br /&gt;
=== [Match] Section ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
       MACAddress=&lt;br /&gt;
           The hardware address of the interface (use full colon-delimited hexadecimal, e.g.,&lt;br /&gt;
           01:23:45:67:89:ab).&lt;br /&gt;
&lt;br /&gt;
       Path=&lt;br /&gt;
           A whitespace-separated list of shell-style globs matching the persistent path, as&lt;br /&gt;
           exposed by the udev property &amp;quot;ID_PATH&amp;quot;. If the list is prefixed with a &amp;quot;!&amp;quot;, the test&lt;br /&gt;
           is inverted; i.e. it is true when &amp;quot;ID_PATH&amp;quot; does not match any item in the list.&lt;br /&gt;
&lt;br /&gt;
       Driver=&lt;br /&gt;
           A whitespace-separated list of shell-style globs matching the driver currently bound&lt;br /&gt;
           to the device, as exposed by the udev property &amp;quot;DRIVER&amp;quot; of its parent device, or if&lt;br /&gt;
           that is not set the driver as exposed by &amp;quot;ethtool -i&amp;quot; of the device itself. If the&lt;br /&gt;
           list is prefixed with a &amp;quot;!&amp;quot;, the test is inverted.&lt;br /&gt;
&lt;br /&gt;
       Type=&lt;br /&gt;
           A whitespace-separated list of shell-style globs matching the device type, as exposed&lt;br /&gt;
           by the udev property &amp;quot;DEVTYPE&amp;quot;. If the list is prefixed with a &amp;quot;!&amp;quot;, the test is&lt;br /&gt;
           inverted.&lt;br /&gt;
&lt;br /&gt;
       Name=&lt;br /&gt;
           A whitespace-separated list of shell-style globs matching the device name, as exposed&lt;br /&gt;
           by the udev property &amp;quot;INTERFACE&amp;quot;. If the list is prefixed with a &amp;quot;!&amp;quot;, the test is&lt;br /&gt;
           inverted.&lt;br /&gt;
&lt;br /&gt;
       Host=&lt;br /&gt;
           Matches against the hostname or machine ID of the host. See &amp;quot;ConditionHost=&amp;quot; in&lt;br /&gt;
           systemd.unit(5) for details.&lt;br /&gt;
&lt;br /&gt;
       Virtualization=&lt;br /&gt;
           Checks whether the system is executed in a virtualized environment and optionally test&lt;br /&gt;
           whether it is a specific implementation. See &amp;quot;ConditionVirtualization=&amp;quot; in&lt;br /&gt;
           systemd.unit(5) for details.&lt;br /&gt;
&lt;br /&gt;
       KernelCommandLine=&lt;br /&gt;
           Checks whether a specific kernel command line option is set (or if prefixed with the&lt;br /&gt;
           exclamation mark unset). See &amp;quot;ConditionKernelCommandLine=&amp;quot; in systemd.unit(5) for&lt;br /&gt;
           details.&lt;br /&gt;
&lt;br /&gt;
       KernelVersion=&lt;br /&gt;
           Checks whether the kernel version (as reported by uname -r) matches a certain&lt;br /&gt;
           expression (or if prefixed with the exclamation mark does not match it). See&lt;br /&gt;
           &amp;quot;ConditionKernelVersion=&amp;quot; in systemd.unit(5) for details.&lt;br /&gt;
&lt;br /&gt;
       Architecture=&lt;br /&gt;
           Checks whether the system is running on a specific architecture. See&lt;br /&gt;
           &amp;quot;ConditionArchitecture=&amp;quot; in systemd.unit(5) for details.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== [Link] Section ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
       MACAddress=&lt;br /&gt;
           The hardware address to set for the device.&lt;br /&gt;
&lt;br /&gt;
       MTUBytes=&lt;br /&gt;
           The maximum transmission unit in bytes to set for the device. The usual suffixes K, M,&lt;br /&gt;
           G, are supported and are understood to the base of 1024.&lt;br /&gt;
&lt;br /&gt;
           Note that if IPv6 is enabled on the interface, and the MTU is chosen below 1280 (the&lt;br /&gt;
           minimum MTU for IPv6) it will automatically be increased to this value.&lt;br /&gt;
&lt;br /&gt;
       ARP=&lt;br /&gt;
           A boolean. Enables or disables the ARP (low-level Address Resolution Protocol) for&lt;br /&gt;
           this interface. Defaults to unset, which means that the kernel default will be used.&lt;br /&gt;
&lt;br /&gt;
           For example, disabling ARP is useful when creating multiple MACVLAN or VLAN virtual&lt;br /&gt;
           interfaces atop a single lower-level physical interface, which will then only serve as&lt;br /&gt;
           a link/&amp;quot;bridge&amp;quot; device aggregating traffic to the same physical link and not&lt;br /&gt;
           participate in the network otherwise.&lt;br /&gt;
&lt;br /&gt;
       Unmanaged=&lt;br /&gt;
           A boolean. When &amp;quot;yes&amp;quot;, no attempts are made to bring up or configure matching links,&lt;br /&gt;
           equivalent to when there are no matching network files. Defaults to &amp;quot;no&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
           This is useful for preventing later matching network files from interfering with&lt;br /&gt;
           certain interfaces that are fully controlled by other applications.&lt;br /&gt;
&lt;br /&gt;
       RequiredForOnline=&lt;br /&gt;
           A boolean. When &amp;quot;yes&amp;quot;, the network is deemed required when determining whether the&lt;br /&gt;
           system is online when running &amp;quot;systemd-networkd-wait-online&amp;quot;. When &amp;quot;no&amp;quot;, the network&lt;br /&gt;
           is ignored when checking for online state. Defaults to &amp;quot;yes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
           The network will be brought up normally in all cases, but in the event that there is&lt;br /&gt;
           no address being assigned by DHCP or the cable is not plugged in, the link will simply&lt;br /&gt;
           remain offline and be skipped automatically by &amp;quot;systemd-networkd-wait-online&amp;quot; if&lt;br /&gt;
           &amp;quot;RequiredForOnline=true&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== [Netork] Section ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 The &amp;quot;[Network]&amp;quot; section accepts the following keys:&lt;br /&gt;
&lt;br /&gt;
       Description=&lt;br /&gt;
           A description of the device. This is only used for presentation purposes.&lt;br /&gt;
&lt;br /&gt;
       DHCP=&lt;br /&gt;
           Enables DHCPv4 and/or DHCPv6 client support. Accepts &amp;quot;yes&amp;quot;, &amp;quot;no&amp;quot;, &amp;quot;ipv4&amp;quot;, or &amp;quot;ipv6&amp;quot;.&lt;br /&gt;
           Defaults to &amp;quot;no&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
           Note that DHCPv6 will by default be triggered by Router Advertisement, if that is&lt;br /&gt;
           enabled, regardless of this parameter. By enabling DHCPv6 support explicitly, the&lt;br /&gt;
           DHCPv6 client will be started regardless of the presence of routers on the link, or&lt;br /&gt;
           what flags the routers pass. See &amp;quot;IPv6AcceptRA=&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
           Furthermore, note that by default the domain name specified through DHCP, on Ubuntu,&lt;br /&gt;
           are used for name resolution. See option UseDomains= below.&lt;br /&gt;
&lt;br /&gt;
           See the &amp;quot;[DHCP]&amp;quot; section below for further configuration options for the DHCP client&lt;br /&gt;
           support.&lt;br /&gt;
&lt;br /&gt;
       DHCPServer=&lt;br /&gt;
           A boolean. Enables DHCPv4 server support. Defaults to &amp;quot;no&amp;quot;. Further settings for the&lt;br /&gt;
           DHCP server may be set in the &amp;quot;[DHCPServer]&amp;quot; section described below.&lt;br /&gt;
&lt;br /&gt;
       LinkLocalAddressing=&lt;br /&gt;
           Enables link-local address autoconfiguration. Accepts &amp;quot;yes&amp;quot;, &amp;quot;no&amp;quot;, &amp;quot;ipv4&amp;quot;, or &amp;quot;ipv6&amp;quot;.&lt;br /&gt;
           Defaults to &amp;quot;ipv6&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
       IPv4LLRoute=&lt;br /&gt;
           A boolean. When true, sets up the route needed for non-IPv4LL hosts to communicate&lt;br /&gt;
           with IPv4LL-only hosts. Defaults to false.&lt;br /&gt;
&lt;br /&gt;
       IPv6Token=&lt;br /&gt;
           An IPv6 address with the top 64 bits unset. When set, indicates the 64-bit interface&lt;br /&gt;
           part of SLAAC IPv6 addresses for this link. Note that the token is only ever used for&lt;br /&gt;
           SLAAC, and not for DHCPv6 addresses, even in the case DHCP is requested by router&lt;br /&gt;
           advertisement. By default, the token is autogenerated.&lt;br /&gt;
&lt;br /&gt;
       LLMNR=&lt;br /&gt;
           A boolean or &amp;quot;resolve&amp;quot;. When true, enables Link-Local Multicast Name Resolution[1] on&lt;br /&gt;
           the link. When set to &amp;quot;resolve&amp;quot;, only resolution is enabled, but not host registration&lt;br /&gt;
           and announcement. Defaults to true. This setting is read by systemd-&lt;br /&gt;
           resolved.service(8).&lt;br /&gt;
&lt;br /&gt;
       MulticastDNS=&lt;br /&gt;
           A boolean or &amp;quot;resolve&amp;quot;. When true, enables Multicast DNS[2] support on the link. When&lt;br /&gt;
           set to &amp;quot;resolve&amp;quot;, only resolution is enabled, but not host or service registration and&lt;br /&gt;
           announcement. Defaults to false. This setting is read by systemd-resolved.service(8).&lt;br /&gt;
&lt;br /&gt;
       DNSSEC=&lt;br /&gt;
           A boolean or &amp;quot;allow-downgrade&amp;quot;. When true, enables DNSSEC[3] DNS validation support on&lt;br /&gt;
           the link. When set to &amp;quot;allow-downgrade&amp;quot;, compatibility with non-DNSSEC capable&lt;br /&gt;
           networks is increased, by automatically turning off DNSSEC in this case. This option&lt;br /&gt;
           defines a per-interface setting for resolved.conf(5)&#039;s global DNSSEC= option. Defaults&lt;br /&gt;
           to false. This setting is read by systemd-resolved.service(8).&lt;br /&gt;
&lt;br /&gt;
       DNSSECNegativeTrustAnchors=&lt;br /&gt;
           A space-separated list of DNSSEC negative trust anchor domains. If specified and&lt;br /&gt;
           DNSSEC is enabled, look-ups done via the interface&#039;s DNS server will be subject to the&lt;br /&gt;
           list of negative trust anchors, and not require authentication for the specified&lt;br /&gt;
           domains, or anything below it. Use this to disable DNSSEC authentication for specific&lt;br /&gt;
           private domains, that cannot be proven valid using the Internet DNS hierarchy.&lt;br /&gt;
           Defaults to the empty list. This setting is read by systemd-resolved.service(8).&lt;br /&gt;
&lt;br /&gt;
       LLDP=&lt;br /&gt;
           Controls support for Ethernet LLDP packet reception. LLDP is a link-layer protocol&lt;br /&gt;
           commonly implemented on professional routers and bridges which announces which&lt;br /&gt;
           physical port a system is connected to, as well as other related data. Accepts a&lt;br /&gt;
           boolean or the special value &amp;quot;routers-only&amp;quot;. When true, incoming LLDP packets are&lt;br /&gt;
           accepted and a database of all LLDP neighbors maintained. If &amp;quot;routers-only&amp;quot; is set&lt;br /&gt;
           only LLDP data of various types of routers is collected and LLDP data about other&lt;br /&gt;
           types of devices ignored (such as stations, telephones and others). If false, LLDP&lt;br /&gt;
           reception is disabled. Defaults to &amp;quot;routers-only&amp;quot;. Use networkctl(1) to query the&lt;br /&gt;
           collected neighbor data. LLDP is only available on Ethernet links. See EmitLLDP= below&lt;br /&gt;
           for enabling LLDP packet emission from the local system.&lt;br /&gt;
&lt;br /&gt;
       EmitLLDP=&lt;br /&gt;
           Controls support for Ethernet LLDP packet emission. Accepts a boolean parameter or the&lt;br /&gt;
           special values &amp;quot;nearest-bridge&amp;quot;, &amp;quot;non-tpmr-bridge&amp;quot; and &amp;quot;customer-bridge&amp;quot;. Defaults to&lt;br /&gt;
           false, which turns off LLDP packet emission. If not false, a short LLDP packet with&lt;br /&gt;
           information about the local system is sent out in regular intervals on the link. The&lt;br /&gt;
           LLDP packet will contain information about the local host name, the local machine ID&lt;br /&gt;
           (as stored in machine-id(5)) and the local interface name, as well as the pretty&lt;br /&gt;
           hostname of the system (as set in machine-info(5)). LLDP emission is only available on&lt;br /&gt;
           Ethernet links. Note that this setting passes data suitable for identification of host&lt;br /&gt;
           to the network and should thus not be enabled on untrusted networks, where such&lt;br /&gt;
           identification data should not be made available. Use this option to permit other&lt;br /&gt;
           systems to identify on which interfaces they are connected to this system. The three&lt;br /&gt;
           special values control propagation of the LLDP packets. The &amp;quot;nearest-bridge&amp;quot; setting&lt;br /&gt;
           permits propagation only to the nearest connected bridge, &amp;quot;non-tpmr-bridge&amp;quot; permits&lt;br /&gt;
           propagation across Two-Port MAC Relays, but not any other bridges, and&lt;br /&gt;
           &amp;quot;customer-bridge&amp;quot; permits propagation until a customer bridge is reached. For details&lt;br /&gt;
           about these concepts, see IEEE 802.1AB-2009[4]. Note that configuring this setting to&lt;br /&gt;
           true is equivalent to &amp;quot;nearest-bridge&amp;quot;, the recommended and most restricted level of&lt;br /&gt;
           propagation. See LLDP= above for an option to enable LLDP reception.&lt;br /&gt;
&lt;br /&gt;
       BindCarrier=&lt;br /&gt;
           A link name or a list of link names. When set, controls the behavior of the current&lt;br /&gt;
           link. When all links in the list are in an operational down state, the current link is&lt;br /&gt;
           brought down. When at least one link has carrier, the current interface is brought up.&lt;br /&gt;
&lt;br /&gt;
       Address=&lt;br /&gt;
           A static IPv4 or IPv6 address and its prefix length, separated by a &amp;quot;/&amp;quot; character.&lt;br /&gt;
           Specify this key more than once to configure several addresses. The format of the&lt;br /&gt;
           address must be as described in inet_pton(3). This is a short-hand for an [Address]&lt;br /&gt;
           section only containing an Address key (see below). This option may be specified more&lt;br /&gt;
           than once.&lt;br /&gt;
&lt;br /&gt;
           If the specified address is 0.0.0.0 (for IPv4) or [::] (for IPv6), a new address range&lt;br /&gt;
           of the requested size is automatically allocated from a system-wide pool of unused&lt;br /&gt;
           ranges. The allocated range is checked against all current network interfaces and all&lt;br /&gt;
           known network configuration files to avoid address range conflicts. The default&lt;br /&gt;
           system-wide pool consists of 192.168.0.0/16, 172.16.0.0/12 and 10.0.0.0/8 for IPv4,&lt;br /&gt;
           and fc00::/7 for IPv6. This functionality is useful to manage a large number of&lt;br /&gt;
           dynamically created network interfaces with the same network configuration and&lt;br /&gt;
           automatic address range assignment.&lt;br /&gt;
&lt;br /&gt;
       Gateway=&lt;br /&gt;
           The gateway address, which must be in the format described in inet_pton(3). This is a&lt;br /&gt;
           short-hand for a [Route] section only containing a Gateway key. This option may be&lt;br /&gt;
           specified more than once.&lt;br /&gt;
&lt;br /&gt;
       DNS=&lt;br /&gt;
           A DNS server address, which must be in the format described in inet_pton(3). This&lt;br /&gt;
           option may be specified more than once. This setting is read by systemd-&lt;br /&gt;
           resolved.service(8).&lt;br /&gt;
&lt;br /&gt;
       Domains=&lt;br /&gt;
           A list of domains which should be resolved using the DNS servers on this link. Each&lt;br /&gt;
           item in the list should be a domain name, optionally prefixed with a tilde (&amp;quot;~&amp;quot;). The&lt;br /&gt;
           domains with the prefix are called &amp;quot;routing-only domains&amp;quot;. The domains without the&lt;br /&gt;
           prefix are called &amp;quot;search domains&amp;quot; and are first used as search suffixes for extending&lt;br /&gt;
           single-label host names (host names containing no dots) to become fully qualified&lt;br /&gt;
           domain names (FQDNs). If a single-label host name is resolved on this interface, each&lt;br /&gt;
           of the specified search domains are appended to it in turn, converting it into a fully&lt;br /&gt;
           qualified domain name, until one of them may be successfully resolved.&lt;br /&gt;
&lt;br /&gt;
           Both &amp;quot;search&amp;quot; and &amp;quot;routing-only&amp;quot; domains are used for routing of DNS queries: look-ups&lt;br /&gt;
           for host names ending in those domains (hence also single label names, if any &amp;quot;search&lt;br /&gt;
           domains&amp;quot; are listed), are routed to the DNS servers configured for this interface. The&lt;br /&gt;
           domain routing logic is particularly useful on multi-homed hosts with DNS servers&lt;br /&gt;
           serving particular private DNS zones on each interface.&lt;br /&gt;
&lt;br /&gt;
           The &amp;quot;routing-only&amp;quot; domain &amp;quot;~.&amp;quot;  (the tilde indicating definition of a routing domain,&lt;br /&gt;
           the dot referring to the DNS root domain which is the implied suffix of all valid DNS&lt;br /&gt;
           names) has special effect. It causes all DNS traffic which does not match another&lt;br /&gt;
           configured domain routing entry to be routed to DNS servers specified for this&lt;br /&gt;
           interface. This setting is useful to prefer a certain set of DNS servers if a link on&lt;br /&gt;
           which they are connected is available.&lt;br /&gt;
&lt;br /&gt;
           This setting is read by systemd-resolved.service(8). &amp;quot;Search domains&amp;quot; correspond to&lt;br /&gt;
           the domain and search entries in resolv.conf(5). Domain name routing has no equivalent&lt;br /&gt;
           in the traditional glibc API, which has no concept of domain name servers limited to a&lt;br /&gt;
           specific link.&lt;br /&gt;
&lt;br /&gt;
       NTP=&lt;br /&gt;
           An NTP server address. This option may be specified more than once. This setting is&lt;br /&gt;
           read by systemd-timesyncd.service(8).&lt;br /&gt;
&lt;br /&gt;
       IPForward=&lt;br /&gt;
           Configures IP packet forwarding for the system. If enabled, incoming packets on any&lt;br /&gt;
           network interface will be forwarded to any other interfaces according to the routing&lt;br /&gt;
           table. Takes either a boolean argument, or the values &amp;quot;ipv4&amp;quot; or &amp;quot;ipv6&amp;quot;, which only&lt;br /&gt;
           enable IP packet forwarding for the specified address family. This controls the&lt;br /&gt;
           net.ipv4.ip_forward and net.ipv6.conf.all.forwarding sysctl options of the network&lt;br /&gt;
           interface (see ip-sysctl.txt[5] for details about sysctl options). Defaults to &amp;quot;no&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
           Note: this setting controls a global kernel option, and does so one way only: if a&lt;br /&gt;
           network that has this setting enabled is set up the global setting is turned on.&lt;br /&gt;
           However, it is never turned off again, even after all networks with this setting&lt;br /&gt;
           enabled are shut down again.&lt;br /&gt;
&lt;br /&gt;
           To allow IP packet forwarding only between specific network interfaces use a firewall.&lt;br /&gt;
&lt;br /&gt;
       IPMasquerade=&lt;br /&gt;
           Configures IP masquerading for the network interface. If enabled, packets forwarded&lt;br /&gt;
           from the network interface will be appear as coming from the local host. Takes a&lt;br /&gt;
           boolean argument. Implies IPForward=ipv4. Defaults to &amp;quot;no&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
       IPv6PrivacyExtensions=&lt;br /&gt;
           Configures use of stateless temporary addresses that change over time (see RFC&lt;br /&gt;
           4941[6], Privacy Extensions for Stateless Address Autoconfiguration in IPv6). Takes a&lt;br /&gt;
           boolean or the special values &amp;quot;prefer-public&amp;quot; and &amp;quot;kernel&amp;quot;. When true, enables the&lt;br /&gt;
           privacy extensions and prefers temporary addresses over public addresses. When&lt;br /&gt;
           &amp;quot;prefer-public&amp;quot;, enables the privacy extensions, but prefers public addresses over&lt;br /&gt;
           temporary addresses. When false, the privacy extensions remain disabled. When&lt;br /&gt;
           &amp;quot;kernel&amp;quot;, the kernel&#039;s default setting will be left in place. Defaults to &amp;quot;no&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
       IPv6AcceptRA=&lt;br /&gt;
           Enable or disable IPv6 Router Advertisement (RA) reception support for the interface.&lt;br /&gt;
           Takes a boolean parameter. If true, RAs are accepted; if false, RAs are ignored,&lt;br /&gt;
           independently of the local forwarding state. When not set, the kernel default is used,&lt;br /&gt;
           and RAs are accepted only when local forwarding is disabled for that interface. When&lt;br /&gt;
           RAs are accepted, they may trigger the start of the DHCPv6 client if the relevant&lt;br /&gt;
           flags are set in the RA data, or if no routers are found on the link.&lt;br /&gt;
&lt;br /&gt;
           Further settings for the IPv6 RA support may be configured in the &amp;quot;[IPv6AcceptRA]&amp;quot;&lt;br /&gt;
           section, see below.&lt;br /&gt;
&lt;br /&gt;
           Also see ip-sysctl.txt[5] in the kernel documentation regarding &amp;quot;accept_ra&amp;quot;, but note&lt;br /&gt;
           that systemd&#039;s setting of 1 (i.e. true) corresponds to kernel&#039;s setting of 2.&lt;br /&gt;
&lt;br /&gt;
       IPv6DuplicateAddressDetection=&lt;br /&gt;
           Configures the amount of IPv6 Duplicate Address Detection (DAD) probes to send.&lt;br /&gt;
           Defaults to unset.&lt;br /&gt;
&lt;br /&gt;
       IPv6HopLimit=&lt;br /&gt;
           Configures IPv6 Hop Limit. For each router that forwards the packet, the hop limit is&lt;br /&gt;
           decremented by 1. When the hop limit field reaches zero, the packet is discarded.&lt;br /&gt;
           Defaults to unset.&lt;br /&gt;
&lt;br /&gt;
       IPv4ProxyARP=&lt;br /&gt;
           A boolean. Configures proxy ARP for IPv4. Proxy ARP is the technique in which one&lt;br /&gt;
           host, usually a router, answers ARP requests intended for another machine. By &amp;quot;faking&amp;quot;&lt;br /&gt;
           its identity, the router accepts responsibility for routing packets to the &amp;quot;real&amp;quot;&lt;br /&gt;
           destination. (see RFC 1027[7]. Defaults to unset.&lt;br /&gt;
&lt;br /&gt;
       IPv6ProxyNDP=&lt;br /&gt;
           A boolean. Configures proxy NDP for IPv6. Proxy NDP (Neighbor Discovery Protocol) is a&lt;br /&gt;
           technique for IPv6 to allow routing of addresses to a different destination when peers&lt;br /&gt;
           expect them to be present on a certain physical link. In this case a router answers&lt;br /&gt;
           Neighbour Advertisement messages intended for another machine by offering its own MAC&lt;br /&gt;
           address as destination. Unlike proxy ARP for IPv4, it is not enabled globally, but&lt;br /&gt;
           will only send Neighbour Advertisement messages for addresses in the IPv6 neighbor&lt;br /&gt;
           proxy table, which can also be shown by ip -6 neighbour show proxy. systemd-networkd&lt;br /&gt;
           will control the per-interface `proxy_ndp` switch for each configured interface&lt;br /&gt;
           depending on this option. Defautls to unset.&lt;br /&gt;
&lt;br /&gt;
       IPv6ProxyNDPAddress=&lt;br /&gt;
           An IPv6 address, for which Neighbour Advertisement messages will be proxied. This&lt;br /&gt;
           option may be specified more than once. systemd-networkd will add the&lt;br /&gt;
           IPv6ProxyNDPAddress= entries to the kernel&#039;s IPv6 neighbor proxy table. This option&lt;br /&gt;
           implies IPv6ProxyNDP=true but has no effect if IPv6ProxyNDP has been set to false.&lt;br /&gt;
           Defaults to unset.&lt;br /&gt;
&lt;br /&gt;
       IPv6PrefixDelegation=&lt;br /&gt;
           Whether to enable or disable Router Advertisement sending on a link. Allowed values&lt;br /&gt;
           are &amp;quot;static&amp;quot; which distributes prefixes as defined in the &amp;quot;[IPv6PrefixDelegation]&amp;quot; and&lt;br /&gt;
           any &amp;quot;[IPv6Prefix]&amp;quot; sections, &amp;quot;dhcpv6&amp;quot; which requests prefixes using a DHCPv6 client&lt;br /&gt;
           configured for another link and any values configured in the &amp;quot;[IPv6PrefixDelegation]&amp;quot;&lt;br /&gt;
           section while ignoring all static prefix configuration sections, &amp;quot;yes&amp;quot; which uses both&lt;br /&gt;
           static configuration and DHCPv6, and &amp;quot;false&amp;quot; which turns off IPv6 prefix delegation&lt;br /&gt;
           altogether. Defaults to &amp;quot;false&amp;quot;. See the &amp;quot;[IPv6PrefixDelegation]&amp;quot; and the&lt;br /&gt;
           &amp;quot;[IPv6Prefix]&amp;quot; sections for more configuration options.&lt;br /&gt;
&lt;br /&gt;
       Bridge=&lt;br /&gt;
           The name of the bridge to add the link to. See systemd.netdev(5).&lt;br /&gt;
&lt;br /&gt;
       Bond=&lt;br /&gt;
           The name of the bond to add the link to. See systemd.netdev(5).&lt;br /&gt;
&lt;br /&gt;
       VRF=&lt;br /&gt;
           The name of the VRF to add the link to. See systemd.netdev(5).&lt;br /&gt;
&lt;br /&gt;
       VLAN=&lt;br /&gt;
           The name of a VLAN to create on the link. See systemd.netdev(5). This option may be&lt;br /&gt;
           specified more than once.&lt;br /&gt;
&lt;br /&gt;
       MACVLAN=&lt;br /&gt;
           The name of a MACVLAN to create on the link. See systemd.netdev(5). This option may be&lt;br /&gt;
           specified more than once.&lt;br /&gt;
&lt;br /&gt;
       VXLAN=&lt;br /&gt;
           The name of a VXLAN to create on the link. See systemd.netdev(5). This option may be&lt;br /&gt;
           specified more than once.&lt;br /&gt;
&lt;br /&gt;
       Tunnel=&lt;br /&gt;
           The name of a Tunnel to create on the link. See systemd.netdev(5). This option may be&lt;br /&gt;
           specified more than once.&lt;br /&gt;
&lt;br /&gt;
       ActiveSlave=&lt;br /&gt;
           A boolean. Specifies the new active slave. The &amp;quot;ActiveSlave=&amp;quot; option is only valid for&lt;br /&gt;
           following modes: &amp;quot;active-backup&amp;quot;, &amp;quot;balance-alb&amp;quot; and &amp;quot;balance-tlb&amp;quot;. Defaults to false.&lt;br /&gt;
&lt;br /&gt;
       PrimarySlave=&lt;br /&gt;
           A boolean. Specifies which slave is the primary device. The specified device will&lt;br /&gt;
           always be the active slave while it is available. Only when the primary is off-line&lt;br /&gt;
           will alternate devices be used. This is useful when one slave is preferred over&lt;br /&gt;
           another, e.g. when one slave has higher throughput than another. The &amp;quot;PrimarySlave=&amp;quot;&lt;br /&gt;
           option is only valid for following modes: &amp;quot;active-backup&amp;quot;, &amp;quot;balance-alb&amp;quot; and&lt;br /&gt;
           &amp;quot;balance-tlb&amp;quot;. Defaults to false.&lt;br /&gt;
&lt;br /&gt;
       ConfigureWithoutCarrier=&lt;br /&gt;
           A boolean. Allows networkd to configure a specific link even if it has no carrier.&lt;br /&gt;
           Defaults to false.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== [Address] Section ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  An &amp;quot;[Address]&amp;quot; section accepts the following keys. Specify several &amp;quot;[Address]&amp;quot; sections to&lt;br /&gt;
       configure several addresses.&lt;br /&gt;
&lt;br /&gt;
       Address=&lt;br /&gt;
           As in the &amp;quot;[Network]&amp;quot; section. This key is mandatory.&lt;br /&gt;
&lt;br /&gt;
       Peer=&lt;br /&gt;
           The peer address in a point-to-point connection. Accepts the same format as the&lt;br /&gt;
           &amp;quot;Address&amp;quot; key.&lt;br /&gt;
&lt;br /&gt;
       Broadcast=&lt;br /&gt;
           The broadcast address, which must be in the format described in inet_pton(3). This key&lt;br /&gt;
           only applies to IPv4 addresses. If it is not given, it is derived from the &amp;quot;Address&amp;quot;&lt;br /&gt;
           key.&lt;br /&gt;
&lt;br /&gt;
       Label=&lt;br /&gt;
           An address label.&lt;br /&gt;
&lt;br /&gt;
       PreferredLifetime=&lt;br /&gt;
           Allows the default &amp;quot;preferred lifetime&amp;quot; of the address to be overridden. Only three&lt;br /&gt;
           settings are accepted: &amp;quot;forever&amp;quot; or &amp;quot;infinity&amp;quot; which is the default and means that the&lt;br /&gt;
           address never expires, and &amp;quot;0&amp;quot; which means that the address is considered immediately&lt;br /&gt;
           &amp;quot;expired&amp;quot; and will not be used, unless explicitly requested. A setting of&lt;br /&gt;
           PreferredLifetime=0 is useful for addresses which are added to be used only by a&lt;br /&gt;
           specific application, which is then configured to use them explicitly.&lt;br /&gt;
&lt;br /&gt;
       Scope=&lt;br /&gt;
           The scope of the address, which can be &amp;quot;global&amp;quot;, &amp;quot;link&amp;quot; or &amp;quot;host&amp;quot; or an unsigned&lt;br /&gt;
           integer ranges 0 to 255. Defaults to &amp;quot;global&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
       HomeAddress=&lt;br /&gt;
           Takes a boolean argument. Designates this address the &amp;quot;home address&amp;quot; as defined in RFC&lt;br /&gt;
           6275[8]. Supported only on IPv6. Defaults to false.&lt;br /&gt;
&lt;br /&gt;
       DuplicateAddressDetection=&lt;br /&gt;
           Takes a boolean argument. Do not perform Duplicate Address Detection RFC 4862[9] when&lt;br /&gt;
           adding this address. Supported only on IPv6. Defaults to false.&lt;br /&gt;
&lt;br /&gt;
       ManageTemporaryAddress=&lt;br /&gt;
           Takes a boolean argument. If true the kernel manage temporary addresses created from&lt;br /&gt;
           this one as template on behalf of Privacy Extensions RFC 3041[10]. For this to become&lt;br /&gt;
           active, the use_tempaddr sysctl setting has to be set to a value greater than zero.&lt;br /&gt;
           The given address needs to have a prefix length of 64. This flag allows to use privacy&lt;br /&gt;
           extensions in a manually configured network, just like if stateless auto-configuration&lt;br /&gt;
           was active. Defaults to false.&lt;br /&gt;
&lt;br /&gt;
       PrefixRoute=&lt;br /&gt;
           Takes a boolean argument. When adding or modifying an IPv6 address, the userspace&lt;br /&gt;
           application needs a way to suppress adding a prefix route. This is for example&lt;br /&gt;
           relevant together with IFA_F_MANAGERTEMPADDR, where userspace creates autoconf&lt;br /&gt;
           generated addresses, but depending on on-link, no route for the prefix should be&lt;br /&gt;
           added. Defaults to false.&lt;br /&gt;
&lt;br /&gt;
       AutoJoin=&lt;br /&gt;
           Takes a boolean argument. Joining multicast group on ethernet level via ip maddr&lt;br /&gt;
           command would not work if we have an Ethernet switch that does IGMP snooping since the&lt;br /&gt;
           switch would not replicate multicast packets on ports that did not have IGMP reports&lt;br /&gt;
           for the multicast addresses. Linux vxlan interfaces created via ip link add vxlan or&lt;br /&gt;
           networkd&#039;s netdev kind vxlan have the group option that enables then to do the&lt;br /&gt;
           required join. By extending ip address command with option &amp;quot;autojoin&amp;quot; we can get&lt;br /&gt;
           similar functionality for openvswitch (OVS) vxlan interfaces as well as other&lt;br /&gt;
           tunneling mechanisms that need to receive multicast traffic. Defaults to &amp;quot;no&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[IPV6ADDRESSLABEL] SECTION OPTIONS&lt;br /&gt;
       An &amp;quot;[IPv6AddressLabel]&amp;quot; section accepts the following keys. Specify several&lt;br /&gt;
       &amp;quot;[IPv6AddressLabel]&amp;quot; sections to configure several address labels. IPv6 address labels are&lt;br /&gt;
       used for address selection. See RFC 3484[11]. Precedence is managed by userspace, and only&lt;br /&gt;
       the label itself is stored in the kernel&lt;br /&gt;
&lt;br /&gt;
       Label=&lt;br /&gt;
           The label for the prefix (an unsigned integer) ranges 0 to 4294967294. 0xffffffff is&lt;br /&gt;
           reserved. This key is mandatory.&lt;br /&gt;
&lt;br /&gt;
       Prefix=&lt;br /&gt;
           IPv6 prefix is an address with a prefix length, separated by a slash &amp;quot;/&amp;quot; character.&lt;br /&gt;
           This key is mandatory.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== [RoutingPolicyRule] Section ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 An &amp;quot;[RoutingPolicyRule]&amp;quot; section accepts the following keys. Specify several&lt;br /&gt;
       &amp;quot;[RoutingPolicyRule]&amp;quot; sections to configure several rules.&lt;br /&gt;
&lt;br /&gt;
       TypeOfService=&lt;br /&gt;
           Specifies the type of service to match a number between 0 to 255.&lt;br /&gt;
&lt;br /&gt;
       From=&lt;br /&gt;
           Specifies the source address prefix to match. Possibly followed by a slash and the&lt;br /&gt;
           prefix length.&lt;br /&gt;
&lt;br /&gt;
       To=&lt;br /&gt;
           Specifies the destination address prefix to match. Possibly followed by a slash and&lt;br /&gt;
           the prefix length.&lt;br /&gt;
&lt;br /&gt;
       FirewallMark=&lt;br /&gt;
           Specifies the iptables firewall mark value to match (a number between 1 and&lt;br /&gt;
           4294967295).&lt;br /&gt;
&lt;br /&gt;
       Table=&lt;br /&gt;
           Specifies the routing table identifier to lookup if the rule selector matches. The&lt;br /&gt;
           table identifier for a route (a number between 1 and 4294967295).&lt;br /&gt;
&lt;br /&gt;
       Priority=&lt;br /&gt;
           Specifies the priority of this rule.  Priority= is an unsigned integer. Higher number&lt;br /&gt;
           means lower priority, and rules get processed in order of increasing number.&lt;br /&gt;
&lt;br /&gt;
       IncomingInterface=&lt;br /&gt;
           Specifies incoming device to match. If the interface is loopback, the rule only&lt;br /&gt;
           matches packets originating from this host.&lt;br /&gt;
&lt;br /&gt;
       OutgoingInterface=&lt;br /&gt;
           Specifies the outgoing device to match. The outgoing interface is only available for&lt;br /&gt;
           packets originating from local sockets that are bound to a device.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== [Route] Section ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
The &amp;quot;[Route]&amp;quot; section accepts the following keys. Specify several &amp;quot;[Route]&amp;quot; sections to&lt;br /&gt;
       configure several routes.&lt;br /&gt;
&lt;br /&gt;
       Gateway=&lt;br /&gt;
           As in the &amp;quot;[Network]&amp;quot; section.&lt;br /&gt;
&lt;br /&gt;
       GatewayOnlink=&lt;br /&gt;
           The &amp;quot;GatewayOnlink&amp;quot; option tells the kernel that it does not have to check if the&lt;br /&gt;
           gateway is reachable directly by the current machine (i.e., the kernel does not need&lt;br /&gt;
           to check if the gateway is attached to the local network), so that we can insert the&lt;br /&gt;
           route in the kernel table without it being complained about. A boolean, defaults to&lt;br /&gt;
           &amp;quot;no&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
       Destination=&lt;br /&gt;
           The destination prefix of the route. Possibly followed by a slash and the prefix&lt;br /&gt;
           length. If omitted, a full-length host route is assumed.&lt;br /&gt;
&lt;br /&gt;
       Source=&lt;br /&gt;
           The source prefix of the route. Possibly followed by a slash and the prefix length. If&lt;br /&gt;
           omitted, a full-length host route is assumed.&lt;br /&gt;
&lt;br /&gt;
       Metric=&lt;br /&gt;
           The metric of the route (an unsigned integer).&lt;br /&gt;
&lt;br /&gt;
       IPv6Preference=&lt;br /&gt;
           Specifies the route preference as defined in RFC4191[12] for Router Discovery&lt;br /&gt;
           messages. Which can be one of &amp;quot;low&amp;quot; the route has a lowest priority, &amp;quot;medium&amp;quot; the&lt;br /&gt;
           route has a default priority or &amp;quot;high&amp;quot; the route has a highest priority.&lt;br /&gt;
&lt;br /&gt;
       Scope=&lt;br /&gt;
           The scope of the route, which can be &amp;quot;global&amp;quot;, &amp;quot;link&amp;quot; or &amp;quot;host&amp;quot;. Defaults to &amp;quot;global&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
       PreferredSource=&lt;br /&gt;
           The preferred source address of the route. The address must be in the format described&lt;br /&gt;
           in inet_pton(3).&lt;br /&gt;
&lt;br /&gt;
       Table=num&lt;br /&gt;
           The table identifier for the route (a number between 1 and 4294967295, or 0 to unset).&lt;br /&gt;
           The table can be retrieved using ip route show table num.&lt;br /&gt;
&lt;br /&gt;
       Protocol=&lt;br /&gt;
           The Protocol identifier for the route. Takes a number between 0 and 255 or the special&lt;br /&gt;
           values &amp;quot;kernel&amp;quot;, &amp;quot;boot&amp;quot; and &amp;quot;static&amp;quot;. Defaults to &amp;quot;static&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
       Type=&lt;br /&gt;
           The Type identifier for special route types, which can be &amp;quot;unicast&amp;quot; route to a&lt;br /&gt;
           destination network address which describes the path to the destination, &amp;quot;blackhole&amp;quot;&lt;br /&gt;
           packets are discarded silently, &amp;quot;unreachable&amp;quot; packets are discarded and the ICMP&lt;br /&gt;
           message host unreachable is generated, &amp;quot;prohibit&amp;quot; packets are discarded and the ICMP&lt;br /&gt;
           message communication administratively prohibited is generated. Defaults to &amp;quot;unicast&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
       InitialCongestionWindow=&lt;br /&gt;
           The TCP initial congestion window is used during the start of a TCP connection. During&lt;br /&gt;
           the start of a TCP session, when a client requests a resource, the server&#039;s initial&lt;br /&gt;
           congestion window determines how many data bytes will be sent during the initial burst&lt;br /&gt;
           of data. Takes a size in bytes between 1 and 4294967295 (2^32 - 1). The usual suffixes&lt;br /&gt;
           K, M, G are supported and are understood to the base of 1024. Defaults to unset.&lt;br /&gt;
&lt;br /&gt;
       InitialAdvertisedReceiveWindow=&lt;br /&gt;
           The TCP initial advertised receive window is the amount of receive data (in bytes)&lt;br /&gt;
           that can initally be buffered at one time on a connection. The sending host can send&lt;br /&gt;
           only that amount of data before waiting for an acknowledgment and window update from&lt;br /&gt;
           the receiving host. Takes a size in bytes between 1 and 4294967295 (2^32 - 1). The&lt;br /&gt;
           usual suffixes K, M, G are supported and are understood to the base of 1024. Defaults&lt;br /&gt;
           to unset.&lt;br /&gt;
&lt;br /&gt;
       QuickAck=&lt;br /&gt;
           Takes a boolean argument. When true enables TCP quick ack mode for the route. Defaults&lt;br /&gt;
           to unset.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== [DHCP] section ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 The &amp;quot;[DHCP]&amp;quot; section configures the DHCPv4 and DHCP6 client, if it is enabled with the&lt;br /&gt;
       DHCP= setting described above:&lt;br /&gt;
&lt;br /&gt;
       UseDNS=&lt;br /&gt;
           When true (the default), the DNS servers received from the DHCP server will be used&lt;br /&gt;
           and take precedence over any statically configured ones.&lt;br /&gt;
&lt;br /&gt;
           This corresponds to the nameserver option in resolv.conf(5).&lt;br /&gt;
&lt;br /&gt;
       UseNTP=&lt;br /&gt;
           When true (the default), the NTP servers received from the DHCP server will be used by&lt;br /&gt;
           systemd-timesyncd and take precedence over any statically configured ones.&lt;br /&gt;
&lt;br /&gt;
       UseMTU=&lt;br /&gt;
           When true, the interface maximum transmission unit from the DHCP server will be used&lt;br /&gt;
           on the current link. Defaults to false.&lt;br /&gt;
&lt;br /&gt;
       Anonymize=&lt;br /&gt;
           Takes a boolean argument. When true, the options sent to the DHCP server will follow&lt;br /&gt;
           the RFC 7844[13] (Anonymity Profiles for DHCP Clients) to minimize disclosure of&lt;br /&gt;
           identifying information. Defaults to false.&lt;br /&gt;
&lt;br /&gt;
           This option should only be set to true when MACAddressPolicy= is set to &amp;quot;random&amp;quot; (see&lt;br /&gt;
           systemd.link(5)).&lt;br /&gt;
&lt;br /&gt;
           Note that this configuration will overwrite others. In concrete, the following&lt;br /&gt;
           variables will be ignored: SendHostname=, ClientIdentifier=, UseRoutes=,&lt;br /&gt;
           SendHostname=, UseMTU=, VendorClassIdentifier=, UseTimezone=.&lt;br /&gt;
&lt;br /&gt;
       SendHostname=&lt;br /&gt;
           When true (the default), the machine&#039;s hostname will be sent to the DHCP server.&lt;br /&gt;
&lt;br /&gt;
       UseHostname=&lt;br /&gt;
           When true (the default), the hostname received from the DHCP server will be set as the&lt;br /&gt;
           transient hostname of the system&lt;br /&gt;
&lt;br /&gt;
       Hostname=&lt;br /&gt;
           Use this value for the hostname which is sent to the DHCP server, instead of machine&#039;s&lt;br /&gt;
           hostname.&lt;br /&gt;
&lt;br /&gt;
       UseDomains=&lt;br /&gt;
           Takes a boolean argument, or the special value &amp;quot;route&amp;quot;. When true, the domain name&lt;br /&gt;
           received from the DHCP server will be used as DNS search domain over this link,&lt;br /&gt;
           similar to the effect of the Domains= setting. If set to &amp;quot;route&amp;quot;, the domain name&lt;br /&gt;
           received from the DHCP server will be used for routing DNS queries only, but not for&lt;br /&gt;
           searching, similar to the effect of the Domains= setting when the argument is prefixed&lt;br /&gt;
           with &amp;quot;~&amp;quot;. Defaults to true on Ubuntu.&lt;br /&gt;
&lt;br /&gt;
           It is recommended to enable this option only on trusted networks, as setting this&lt;br /&gt;
           affects resolution of all host names, in particular of single-label names. It is&lt;br /&gt;
           generally safer to use the supplied domain only as routing domain, rather than as&lt;br /&gt;
           search domain, in order to not have it affect local resolution of single-label names.&lt;br /&gt;
&lt;br /&gt;
           When set to true, this setting corresponds to the domain option in resolv.conf(5).&lt;br /&gt;
&lt;br /&gt;
       UseRoutes=&lt;br /&gt;
           When true (the default), the static routes will be requested from the DHCP server and&lt;br /&gt;
           added to the routing table with a metric of 1024, and a scope of &amp;quot;global&amp;quot;, &amp;quot;link&amp;quot; or&lt;br /&gt;
           &amp;quot;host&amp;quot;, depending on the route&#039;s destination and gateway. If the destination is on the&lt;br /&gt;
           local host, e.g., 127.x.x.x, or the same as the link&#039;s own address, the scope will be&lt;br /&gt;
           set to &amp;quot;host&amp;quot;. Otherwise if the gateway is null (a direct route), a &amp;quot;link&amp;quot; scope will&lt;br /&gt;
           be used. For anything else, scope defaults to &amp;quot;global&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
       UseTimezone=&lt;br /&gt;
           When true, the timezone received from the DHCP server will be set as timezone of the&lt;br /&gt;
           local system. Defaults to &amp;quot;no&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
       CriticalConnection=&lt;br /&gt;
           When true, the connection will never be torn down even if the DHCP lease expires. This&lt;br /&gt;
           is contrary to the DHCP specification, but may be the best choice if, say, the root&lt;br /&gt;
           filesystem relies on this connection. Defaults to false.&lt;br /&gt;
&lt;br /&gt;
       ClientIdentifier=&lt;br /&gt;
           The DHCPv4 client identifier to use. Either &amp;quot;mac&amp;quot; to use the MAC address of the link&lt;br /&gt;
           or &amp;quot;duid&amp;quot; (the default, see below) to use an RFC4361-compliant Client ID.&lt;br /&gt;
&lt;br /&gt;
       VendorClassIdentifier=&lt;br /&gt;
           The vendor class identifier used to identify vendor type and configuration.&lt;br /&gt;
&lt;br /&gt;
       DUIDType=&lt;br /&gt;
           Override the global DUIDType setting for this network. See networkd.conf(5) for a&lt;br /&gt;
           description of possible values.&lt;br /&gt;
&lt;br /&gt;
       DUIDRawData=&lt;br /&gt;
           Override the global DUIDRawData setting for this network. See networkd.conf(5) for a&lt;br /&gt;
           description of possible values.&lt;br /&gt;
&lt;br /&gt;
       IAID=&lt;br /&gt;
           The DHCP Identity Association Identifier (IAID) for the interface, a 32-bit unsigned&lt;br /&gt;
           integer.&lt;br /&gt;
&lt;br /&gt;
       RequestBroadcast=&lt;br /&gt;
           Request the server to use broadcast messages before the IP address has been&lt;br /&gt;
           configured. This is necessary for devices that cannot receive RAW packets, or that&lt;br /&gt;
           cannot receive packets at all before an IP address has been configured. On the other&lt;br /&gt;
           hand, this must not be enabled on networks where broadcasts are filtered out.&lt;br /&gt;
&lt;br /&gt;
       RouteMetric=&lt;br /&gt;
           Set the routing metric for routes specified by the DHCP server.&lt;br /&gt;
&lt;br /&gt;
       RouteTable=num&lt;br /&gt;
           The table identifier for DHCP routes (a number between 1 and 4294967295, or 0 to&lt;br /&gt;
           unset). The table can be retrieved using ip route show table num.&lt;br /&gt;
&lt;br /&gt;
           When used in combination with VRF= the VRF&#039;s routing table is used unless this&lt;br /&gt;
           parameter is specified.&lt;br /&gt;
&lt;br /&gt;
       ListenPort=&lt;br /&gt;
           Allow setting custom port for the DHCP client to listen on.&lt;br /&gt;
&lt;br /&gt;
       RapidCommit=&lt;br /&gt;
           A boolean. The DHCPv6 client can obtain configuration parameters from a DHCPv6 server&lt;br /&gt;
           through a rapid two-message exchange (solicit and reply). When the rapid commit option&lt;br /&gt;
           is enabled by both the DHCPv6 client and the DHCPv6 server, the two-message exchange&lt;br /&gt;
           is used, rather than the default four-method exchange (solicit, advertise, request,&lt;br /&gt;
           and reply). The two-message exchange provides faster client configuration and is&lt;br /&gt;
           beneficial in environments in which networks are under a heavy load. See RFC 3315[14]&lt;br /&gt;
           for details. Defaults to true.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== [IPv6Acceptra] Section ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 The &amp;quot;[IPv6AcceptRA]&amp;quot; section configures the IPv6 Router Advertisement (RA) client, if it&lt;br /&gt;
       is enabled with the IPv6AcceptRA= setting described above:&lt;br /&gt;
&lt;br /&gt;
       UseDNS=&lt;br /&gt;
           When true (the default), the DNS servers received in the Router Advertisement will be&lt;br /&gt;
           used and take precedence over any statically configured ones.&lt;br /&gt;
&lt;br /&gt;
           This corresponds to the nameserver option in resolv.conf(5).&lt;br /&gt;
&lt;br /&gt;
       UseDomains=&lt;br /&gt;
           Takes a boolean argument, or the special value &amp;quot;route&amp;quot;. When true, the domain name&lt;br /&gt;
           received via IPv6 Router Advertisement (RA) will be used as DNS search domain over&lt;br /&gt;
           this link, similar to the effect of the Domains= setting. If set to &amp;quot;route&amp;quot;, the&lt;br /&gt;
           domain name received via IPv6 RA will be used for routing DNS queries only, but not&lt;br /&gt;
           for searching, similar to the effect of the Domains= setting when the argument is&lt;br /&gt;
           prefixed with &amp;quot;~&amp;quot;. Defaults to true on Ubuntu.&lt;br /&gt;
&lt;br /&gt;
           It is recommended to enable this option only on trusted networks, as setting this&lt;br /&gt;
           affects resolution of all host names, in particular of single-label names. It is&lt;br /&gt;
           generally safer to use the supplied domain only as routing domain, rather than as&lt;br /&gt;
           search domain, in order to not have it affect local resolution of single-label names.&lt;br /&gt;
&lt;br /&gt;
           When set to true, this setting corresponds to the domain option in resolv.conf(5).&lt;br /&gt;
&lt;br /&gt;
       RouteTable=num&lt;br /&gt;
           The table identifier for the routes received in the Router Advertisement (a number&lt;br /&gt;
           between 1 and 4294967295, or 0 to unset). The table can be retrieved using ip route&lt;br /&gt;
           show table num.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== [DHCPServer] Section ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 The &amp;quot;[DHCPServer]&amp;quot; section contains settings for the DHCP server, if enabled via the&lt;br /&gt;
       DHCPServer= option described above:&lt;br /&gt;
&lt;br /&gt;
       PoolOffset=, PoolSize=&lt;br /&gt;
           Configures the pool of addresses to hand out. The pool is a contiguous sequence of IP&lt;br /&gt;
           addresses in the subnet configured for the server address, which does not include the&lt;br /&gt;
           subnet nor the broadcast address.  PoolOffset= takes the offset of the pool from the&lt;br /&gt;
           start of subnet, or zero to use the default value.  PoolSize= takes the number of IP&lt;br /&gt;
           addresses in the pool or zero to use the default value. By default, the pool starts at&lt;br /&gt;
           the first address after the subnet address and takes up the rest of the subnet,&lt;br /&gt;
           excluding the broadcast address. If the pool includes the server address (the&lt;br /&gt;
           default), this is reserved and not handed out to clients.&lt;br /&gt;
&lt;br /&gt;
       DefaultLeaseTimeSec=, MaxLeaseTimeSec=&lt;br /&gt;
           Control the default and maximum DHCP lease time to pass to clients. These settings&lt;br /&gt;
           take time values in seconds or another common time unit, depending on the suffix. The&lt;br /&gt;
           default lease time is used for clients that did not ask for a specific lease time. If&lt;br /&gt;
           a client asks for a lease time longer than the maximum lease time, it is automatically&lt;br /&gt;
           shortened to the specified time. The default lease time defaults to 1h, the maximum&lt;br /&gt;
           lease time to 12h. Shorter lease times are beneficial if the configuration data in&lt;br /&gt;
           DHCP leases changes frequently and clients shall learn the new settings with shorter&lt;br /&gt;
           latencies. Longer lease times reduce the generated DHCP network traffic.&lt;br /&gt;
&lt;br /&gt;
       EmitDNS=, DNS=&lt;br /&gt;
           Configures whether the DHCP leases handed out to clients shall contain DNS server&lt;br /&gt;
           information. The EmitDNS= setting takes a boolean argument and defaults to &amp;quot;yes&amp;quot;. The&lt;br /&gt;
           DNS servers to pass to clients may be configured with the DNS= option, which takes a&lt;br /&gt;
           list of IPv4 addresses. If the EmitDNS= option is enabled but no servers configured,&lt;br /&gt;
           the servers are automatically propagated from an &amp;quot;uplink&amp;quot; interface that has&lt;br /&gt;
           appropriate servers set. The &amp;quot;uplink&amp;quot; interface is determined by the default route of&lt;br /&gt;
           the system with the highest priority. Note that this information is acquired at the&lt;br /&gt;
           time the lease is handed out, and does not take uplink interfaces into account that&lt;br /&gt;
           acquire DNS or NTP server information at a later point. DNS server propagation does&lt;br /&gt;
           not take /etc/resolv.conf into account. Also, note that the leases are not refreshed&lt;br /&gt;
           if the uplink network configuration changes. To ensure clients regularly acquire the&lt;br /&gt;
           most current uplink DNS server information, it is thus advisable to shorten the DHCP&lt;br /&gt;
           lease time via MaxLeaseTimeSec= described above.&lt;br /&gt;
&lt;br /&gt;
       EmitNTP=, NTP=&lt;br /&gt;
           Similar to the EmitDNS= and DNS= settings described above, these settings configure&lt;br /&gt;
           whether and what NTP server information shall be emitted as part of the DHCP lease.&lt;br /&gt;
           The same syntax, propagation semantics and defaults apply as for EmitDNS= and DNS=.&lt;br /&gt;
&lt;br /&gt;
       EmitRouter=&lt;br /&gt;
           Similar to the EmitDNS= setting described above, this setting configures whether the&lt;br /&gt;
           DHCP lease should contain the router option. The same syntax, propagation semantics&lt;br /&gt;
           and defaults apply as for EmitDNS=.&lt;br /&gt;
&lt;br /&gt;
       EmitTimezone=, Timezone=&lt;br /&gt;
           Configures whether the DHCP leases handed out to clients shall contain timezone&lt;br /&gt;
           information. The EmitTimezone= setting takes a boolean argument and defaults to &amp;quot;yes&amp;quot;.&lt;br /&gt;
           The Timezone= setting takes a timezone string (such as &amp;quot;Europe/Berlin&amp;quot; or &amp;quot;UTC&amp;quot;) to&lt;br /&gt;
           pass to clients. If no explicit timezone is set, the system timezone of the local host&lt;br /&gt;
           is propagated, as determined by the /etc/localtime symlink.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== [IPv6PrefixDelegation] section ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
The &amp;quot;[IPv6PrefixDelegation]&amp;quot; section contains settings for sending IPv6 Router&lt;br /&gt;
       Advertisements and whether to act as a router, if enabled via the IPv6PrefixDelegation=&lt;br /&gt;
       option described above. IPv6 network prefixes are defined with one or more &amp;quot;[IPv6Prefix]&amp;quot;&lt;br /&gt;
       sections.&lt;br /&gt;
&lt;br /&gt;
       Managed=, OtherInformation=&lt;br /&gt;
           Controls whether a DHCPv6 server is used to acquire IPv6 addresses on the network link&lt;br /&gt;
           when Managed= boolean is set to &amp;quot;true&amp;quot; or if only additional network information can&lt;br /&gt;
           be obtained via DHCPv6 for the network link when OtherInformation= boolean is set to&lt;br /&gt;
           &amp;quot;true&amp;quot;. Both settings default to &amp;quot;false&amp;quot;, which means that a DHCPv6 server is not&lt;br /&gt;
           being used.&lt;br /&gt;
&lt;br /&gt;
       RouterLifetimeSec=&lt;br /&gt;
           Configures the IPv6 router lifetime in seconds. If set, this host also announces&lt;br /&gt;
           itself in Router Advertisements as an IPv6 router for the network link. Defaults to&lt;br /&gt;
           unset, which means the host is not acting as a router.&lt;br /&gt;
&lt;br /&gt;
       RouterPreference=&lt;br /&gt;
           Configures IPv6 router preference if RouterLifetimeSec= is non-zero. Valid values are&lt;br /&gt;
           &amp;quot;high&amp;quot;, &amp;quot;medium&amp;quot; and &amp;quot;low&amp;quot;, with &amp;quot;normal&amp;quot; and &amp;quot;default&amp;quot; added as synonyms for &amp;quot;medium&amp;quot;&lt;br /&gt;
           just to make configuration easier. See RFC 4191[12] for details. Defaults to &amp;quot;medium&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
       EmitDNS=, DNS=&lt;br /&gt;
           DNS= specifies a list of recursive DNS server IPv6 addresses that distributed via&lt;br /&gt;
           Router Advertisement messages when EmitDNS= is true. If DNS= is empty, DNS servers are&lt;br /&gt;
           read from the &amp;quot;[Network]&amp;quot; section. If the &amp;quot;[Network]&amp;quot; section does not contain any DNS&lt;br /&gt;
           servers either, DNS servers from the uplink with the highest priority default route&lt;br /&gt;
           are used. When EmitDNS= is false, no DNS server information is sent in Router&lt;br /&gt;
           Advertisement messages.  EmitDNS= defaults to true.&lt;br /&gt;
&lt;br /&gt;
       EmitDomains=, Domains=&lt;br /&gt;
           A list of DNS search domains distributed via Router Advertisement messages when&lt;br /&gt;
           EmitDomains= is true. If Domains= is empty, DNS search domains are read from the&lt;br /&gt;
           &amp;quot;[Network]&amp;quot; section. If the &amp;quot;[Network]&amp;quot; section does not contain any DNS search&lt;br /&gt;
           domains either, DNS search domains from the uplink with the highest priority default&lt;br /&gt;
           route are used. When EmitDomains= is false, no DNS search domain information is sent&lt;br /&gt;
           in Router Advertisement messages.  EmitDomains= defaults to true.&lt;br /&gt;
&lt;br /&gt;
       DNSLifetimeSec=&lt;br /&gt;
           Lifetime in seconds for the DNS server addresses listed in DNS= and search domains&lt;br /&gt;
           listed in Domains=.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== [IPv6Prefix] Section ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  One or more &amp;quot;[IPv6Prefix]&amp;quot; sections contain the IPv6 prefixes that are announced via&lt;br /&gt;
       Router Advertisements. See RFC 4861[15] for further details.&lt;br /&gt;
&lt;br /&gt;
       AddressAutoconfiguration=, OnLink=&lt;br /&gt;
           Boolean values to specify whether IPv6 addresses can be autoconfigured with this&lt;br /&gt;
           prefix and whether the prefix can be used for onlink determination. Both settings&lt;br /&gt;
           default to &amp;quot;true&amp;quot; in order to ease configuration.&lt;br /&gt;
&lt;br /&gt;
       Prefix=&lt;br /&gt;
           The IPv6 prefix that is to be distributed to hosts. Similarly to configuring static&lt;br /&gt;
           IPv6 addresses, the setting is configured as an IPv6 prefix and its prefix length,&lt;br /&gt;
           separated by a &amp;quot;/&amp;quot; character. Use multiple &amp;quot;[IPv6Prefix]&amp;quot; sections to configure&lt;br /&gt;
           multiple IPv6 prefixes since prefix lifetimes, address autoconfiguration and onlink&lt;br /&gt;
           status may differ from one prefix to another.&lt;br /&gt;
&lt;br /&gt;
       PreferredLifetimeSec=, ValidLifetimeSec=&lt;br /&gt;
           Preferred and valid lifetimes for the prefix measured in seconds.&lt;br /&gt;
           PreferredLifetimeSec= defaults to 604800 seconds (one week) and ValidLifetimeSec=&lt;br /&gt;
           defaults to 2592000 seconds (30 days).&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== [Bridge] Section ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  The &amp;quot;[Bridge]&amp;quot; section accepts the following keys.&lt;br /&gt;
&lt;br /&gt;
       UnicastFlood=&lt;br /&gt;
           A boolean. Controls whether the bridge should flood traffic for which an FDB entry is&lt;br /&gt;
           missing and the destination is unknown through this port. Defaults to on.&lt;br /&gt;
&lt;br /&gt;
       HairPin=&lt;br /&gt;
           A boolean. Configures whether traffic may be sent back out of the port on which it was&lt;br /&gt;
           received. By default, this flag is false, and the bridge will not forward traffic back&lt;br /&gt;
           out of the receiving port.&lt;br /&gt;
&lt;br /&gt;
       UseBPDU=&lt;br /&gt;
           A boolean. Configures whether STP Bridge Protocol Data Units will be processed by the&lt;br /&gt;
           bridge port. Defaults to yes.&lt;br /&gt;
&lt;br /&gt;
       FastLeave=&lt;br /&gt;
           A boolean. This flag allows the bridge to immediately stop multicast traffic on a port&lt;br /&gt;
           that receives an IGMP Leave message. It is only used with IGMP snooping if enabled on&lt;br /&gt;
           the bridge. Defaults to off.&lt;br /&gt;
&lt;br /&gt;
       AllowPortToBeRoot=&lt;br /&gt;
           A boolean. Configures whether a given port is allowed to become a root port. Only used&lt;br /&gt;
           when STP is enabled on the bridge. Defaults to on.&lt;br /&gt;
&lt;br /&gt;
       Cost=&lt;br /&gt;
           Sets the &amp;quot;cost&amp;quot; of sending packets of this interface. Each port in a bridge may have a&lt;br /&gt;
           different speed and the cost is used to decide which link to use. Faster interfaces&lt;br /&gt;
           should have lower costs. It is an integer value between 1 and 65535.&lt;br /&gt;
&lt;br /&gt;
       Priority=&lt;br /&gt;
           Sets the &amp;quot;priority&amp;quot; of sending packets on this interface. Each port in a bridge may&lt;br /&gt;
           have a different priority which is used to decide which link to use. Lower value means&lt;br /&gt;
           higher priority. It is an integer value between 0 to 63. Networkd does not set any&lt;br /&gt;
           default, meaning the kernel default value of 32 is used.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== [BridgeFDB] section ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 The &amp;quot;[BridgeFDB]&amp;quot; section manages the forwarding database table of a port and accepts the&lt;br /&gt;
       following keys. Specify several &amp;quot;[BridgeFDB]&amp;quot; sections to configure several static MAC&lt;br /&gt;
       table entries.&lt;br /&gt;
&lt;br /&gt;
       MACAddress=&lt;br /&gt;
           As in the &amp;quot;[Network]&amp;quot; section. This key is mandatory.&lt;br /&gt;
&lt;br /&gt;
       VLANId=&lt;br /&gt;
           The VLAN ID for the new static MAC table entry. If omitted, no VLAN ID information is&lt;br /&gt;
           appended to the new static MAC table entry.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== [BridgeVLAN] section ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
The &amp;quot;[BridgeVLAN]&amp;quot; section manages the VLAN ID configuration of a bridge port and accepts&lt;br /&gt;
       the following keys. Specify several &amp;quot;[BridgeVLAN]&amp;quot; sections to configure several VLAN&lt;br /&gt;
       entries. The VLANFiltering= option has to be enabled, see &amp;quot;[Bridge]&amp;quot; section in&lt;br /&gt;
       systemd.netdev(5).&lt;br /&gt;
&lt;br /&gt;
       VLAN=&lt;br /&gt;
           The VLAN ID allowed on the port. This can be either a single ID or a range M-N. VLAN&lt;br /&gt;
           IDs are valid from 1 to 4094.&lt;br /&gt;
&lt;br /&gt;
       EgressUntagged=&lt;br /&gt;
           The VLAN ID specified here will be used to untag frames on egress. Configuring&lt;br /&gt;
           EgressUntagged= implicates the use of VLAN= above and will enable the VLAN ID for&lt;br /&gt;
           ingress as well. This can be either a single ID or a range M-N.&lt;br /&gt;
&lt;br /&gt;
       PVID=&lt;br /&gt;
           The Port VLAN ID specified here is assigned to all untagged frames at ingress.  PVID=&lt;br /&gt;
           can be used only once. Configuring PVID= implicates the use of VLAN= above and will&lt;br /&gt;
           enable the VLAN ID for ingress as well.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
       Example 1. Static network configuration&lt;br /&gt;
&lt;br /&gt;
           # /etc/systemd/network/50-static.network&lt;br /&gt;
           [Match]&lt;br /&gt;
           Name=enp2s0&lt;br /&gt;
&lt;br /&gt;
           [Network]&lt;br /&gt;
           Address=192.168.0.15/24&lt;br /&gt;
           Gateway=192.168.0.1&lt;br /&gt;
&lt;br /&gt;
       This brings interface &amp;quot;enp2s0&amp;quot; up with a static address. The specified gateway will be&lt;br /&gt;
       used for a default route.&lt;br /&gt;
&lt;br /&gt;
       Example 2. DHCP on ethernet links&lt;br /&gt;
&lt;br /&gt;
           # /etc/systemd/network/80-dhcp.network&lt;br /&gt;
           [Match]&lt;br /&gt;
           Name=en*&lt;br /&gt;
&lt;br /&gt;
           [Network]&lt;br /&gt;
           DHCP=yes&lt;br /&gt;
&lt;br /&gt;
       This will enable DHCPv4 and DHCPv6 on all interfaces with names starting with &amp;quot;en&amp;quot; (i.e.&lt;br /&gt;
       ethernet interfaces).&lt;br /&gt;
&lt;br /&gt;
       Example 3. A bridge with two enslaved links&lt;br /&gt;
&lt;br /&gt;
           # /etc/systemd/network/25-bridge-static.network&lt;br /&gt;
           [Match]&lt;br /&gt;
           Name=bridge0&lt;br /&gt;
&lt;br /&gt;
           [Network]&lt;br /&gt;
           Address=192.168.0.15/24&lt;br /&gt;
           Gateway=192.168.0.1&lt;br /&gt;
           DNS=192.168.0.1&lt;br /&gt;
&lt;br /&gt;
           # /etc/systemd/network/25-bridge-slave-interface-1.network&lt;br /&gt;
           [Match]&lt;br /&gt;
           Name=enp2s0&lt;br /&gt;
&lt;br /&gt;
           [Network]&lt;br /&gt;
           Bridge=bridge0&lt;br /&gt;
&lt;br /&gt;
           # /etc/systemd/network/25-bridge-slave-interface-2.network&lt;br /&gt;
           [Match]&lt;br /&gt;
           Name=wlp3s0&lt;br /&gt;
&lt;br /&gt;
           [Network]&lt;br /&gt;
           Bridge=bridge0&lt;br /&gt;
&lt;br /&gt;
       This creates a bridge and attaches devices &amp;quot;enp2s0&amp;quot; and &amp;quot;wlp3s0&amp;quot; to it. The bridge will&lt;br /&gt;
       have the specified static address and network assigned, and a default route via the&lt;br /&gt;
       specified gateway will be added. The specified DNS server will be added to the global list&lt;br /&gt;
       of DNS resolvers.&lt;br /&gt;
&lt;br /&gt;
       Example 4.&lt;br /&gt;
&lt;br /&gt;
           # /etc/systemd/network/20-bridge-slave-interface-vlan.network&lt;br /&gt;
           [Match]&lt;br /&gt;
           Name=enp2s0&lt;br /&gt;
&lt;br /&gt;
           [Network]&lt;br /&gt;
           Bridge=bridge0&lt;br /&gt;
&lt;br /&gt;
           [BridgeVLAN]&lt;br /&gt;
           VLAN=1-32&lt;br /&gt;
           PVID=42&lt;br /&gt;
           EgressUntagged=42&lt;br /&gt;
&lt;br /&gt;
           [BridgeVLAN]&lt;br /&gt;
           VLAN=100-200&lt;br /&gt;
&lt;br /&gt;
           [BridgeVLAN]&lt;br /&gt;
           EgressUntagged=300-400&lt;br /&gt;
&lt;br /&gt;
       This overrides the configuration specified in the previous example for the interface&lt;br /&gt;
       &amp;quot;enp2s0&amp;quot;, and enables VLAN on that bridge port. VLAN IDs 1-32, 42, 100-400 will be&lt;br /&gt;
       allowed. Packets tagged with VLAN IDs 42, 300-400 will be untagged when they leave on this&lt;br /&gt;
       interface. Untagged packets which arrive on this interface will be assigned VLAN ID 42.&lt;br /&gt;
&lt;br /&gt;
       Example 5. Various tunnels&lt;br /&gt;
&lt;br /&gt;
           /etc/systemd/network/25-tunnels.network&lt;br /&gt;
           [Match]&lt;br /&gt;
           Name=ens1&lt;br /&gt;
&lt;br /&gt;
           [Network]&lt;br /&gt;
           Tunnel=ipip-tun&lt;br /&gt;
           Tunnel=sit-tun&lt;br /&gt;
           Tunnel=gre-tun&lt;br /&gt;
           Tunnel=vti-tun&lt;br /&gt;
&lt;br /&gt;
           /etc/systemd/network/25-tunnel-ipip.netdev&lt;br /&gt;
           [NetDev]&lt;br /&gt;
           Name=ipip-tun&lt;br /&gt;
           Kind=ipip&lt;br /&gt;
&lt;br /&gt;
           /etc/systemd/network/25-tunnel-sit.netdev&lt;br /&gt;
           [NetDev]&lt;br /&gt;
           Name=sit-tun&lt;br /&gt;
           Kind=sit&lt;br /&gt;
&lt;br /&gt;
           /etc/systemd/network/25-tunnel-gre.netdev&lt;br /&gt;
           [NetDev]&lt;br /&gt;
           Name=gre-tun&lt;br /&gt;
           Kind=gre&lt;br /&gt;
&lt;br /&gt;
           /etc/systemd/network/25-tunnel-vti.netdev&lt;br /&gt;
           [NetDev]&lt;br /&gt;
           Name=vti-tun&lt;br /&gt;
           Kind=vti&lt;br /&gt;
&lt;br /&gt;
       This will bring interface &amp;quot;ens1&amp;quot; up and create an IPIP tunnel, a SIT tunnel, a GRE tunnel,&lt;br /&gt;
       and a VTI tunnel using it.&lt;br /&gt;
&lt;br /&gt;
       Example 6. A bond device&lt;br /&gt;
&lt;br /&gt;
           # /etc/systemd/network/30-bond1.network&lt;br /&gt;
           [Match]&lt;br /&gt;
           Name=bond1&lt;br /&gt;
&lt;br /&gt;
           [Network]&lt;br /&gt;
           DHCP=ipv6&lt;br /&gt;
&lt;br /&gt;
           # /etc/systemd/network/30-bond1.netdev&lt;br /&gt;
           [NetDev]&lt;br /&gt;
           Name=bond1&lt;br /&gt;
           Kind=bond&lt;br /&gt;
&lt;br /&gt;
           # /etc/systemd/network/30-bond1-dev1.network&lt;br /&gt;
           [Match]&lt;br /&gt;
           MACAddress=52:54:00:e9:64:41&lt;br /&gt;
&lt;br /&gt;
           [Network]&lt;br /&gt;
           Bond=bond1&lt;br /&gt;
&lt;br /&gt;
           # /etc/systemd/network/30-bond1-dev2.network&lt;br /&gt;
           [Match]&lt;br /&gt;
           MACAddress=52:54:00:e9:64:42&lt;br /&gt;
&lt;br /&gt;
           [Network]&lt;br /&gt;
           Bond=bond1&lt;br /&gt;
&lt;br /&gt;
       This will create a bond device &amp;quot;bond1&amp;quot; and enslave the two devices with MAC addresses&lt;br /&gt;
       52:54:00:e9:64:41 and 52:54:00:e9:64:42 to it. IPv6 DHCP will be used to acquire an&lt;br /&gt;
       address.&lt;br /&gt;
&lt;br /&gt;
       Example 7. Virtual Routing and Forwarding (VRF)&lt;br /&gt;
&lt;br /&gt;
       Add the &amp;quot;bond1&amp;quot; interface to the VRF master interface &amp;quot;vrf1&amp;quot;. This will redirect routes&lt;br /&gt;
       generated on this interface to be within the routing table defined during VRF creation.&lt;br /&gt;
       For kernels before 4.8 traffic won&#039;t be redirected towards the VRFs routing table unless&lt;br /&gt;
       specific ip-rules are added.&lt;br /&gt;
&lt;br /&gt;
           # /etc/systemd/network/25-vrf.network&lt;br /&gt;
           [Match]&lt;br /&gt;
           Name=bond1&lt;br /&gt;
&lt;br /&gt;
           [Network]&lt;br /&gt;
           VRF=vrf1&lt;br /&gt;
&lt;br /&gt;
       Example 8. MacVTap&lt;br /&gt;
&lt;br /&gt;
       This brings up a network interface &amp;quot;macvtap-test&amp;quot; and attaches it to &amp;quot;enp0s25&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
           # /lib/systemd/network/25-macvtap.network&lt;br /&gt;
           [Match]&lt;br /&gt;
           Name=enp0s25&lt;br /&gt;
&lt;br /&gt;
           [Network]&lt;br /&gt;
           MACVTAP=macvtap-test&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=First_principles&amp;diff=41</id>
		<title>First principles</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=First_principles&amp;diff=41"/>
		<updated>2023-01-15T12:33:07Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Using ifconfig ==&lt;br /&gt;
&lt;br /&gt;
=== Show interface configuration ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ifconfig eno1&lt;br /&gt;
eno1: flags=4163&amp;lt;UP,BROADCAST,RUNNING,MULTICAST&amp;gt;  mtu 1500&lt;br /&gt;
        inet 192.168.1.79  netmask 255.255.255.0  broadcast 192.168.1.255&lt;br /&gt;
        inet6 fe80::a6a5:87ad:cb7a:6cad  prefixlen 64  scopeid 0x20&amp;lt;link&amp;gt;&lt;br /&gt;
        ether 50:eb:f6:3f:27:61  txqueuelen 1000  (Ethernet)&lt;br /&gt;
        RX packets 137223  bytes 104941638 (104.9 MB)&lt;br /&gt;
        RX errors 0  dropped 0  overruns 0  frame 0&lt;br /&gt;
        TX packets 91146  bytes 22484489 (22.4 MB)&lt;br /&gt;
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0&lt;br /&gt;
        device interrupt 16  memory 0xa1400000-a1420000  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Show All interfaces&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ifconfig&lt;br /&gt;
br0: flags=4163&amp;lt;UP,BROADCAST,RUNNING,MULTICAST&amp;gt;  mtu 1500&lt;br /&gt;
        inet 192.168.2.1  netmask 255.255.255.0  broadcast 192.168.2.255&lt;br /&gt;
        ether 92:51:fc:1b:36:38  txqueuelen 1000  (Ethernet)&lt;br /&gt;
        RX packets 277  bytes 28650 (28.6 KB)&lt;br /&gt;
        RX errors 0  dropped 0  overruns 0  frame 0&lt;br /&gt;
        TX packets 899  bytes 129148 (129.1 KB)&lt;br /&gt;
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0&lt;br /&gt;
&lt;br /&gt;
br-b737ea16f9fc: flags=4099&amp;lt;UP,BROADCAST,MULTICAST&amp;gt;  mtu 1500&lt;br /&gt;
        inet 172.25.0.1  netmask 255.255.0.0  broadcast 172.25.255.255&lt;br /&gt;
        ether 02:42:79:64:bc:e2  txqueuelen 0  (Ethernet)&lt;br /&gt;
        RX packets 0  bytes 0 (0.0 B)&lt;br /&gt;
        RX errors 0  dropped 0  overruns 0  frame 0&lt;br /&gt;
        TX packets 0  bytes 0 (0.0 B)&lt;br /&gt;
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0&lt;br /&gt;
&lt;br /&gt;
docker0: flags=4099&amp;lt;UP,BROADCAST,MULTICAST&amp;gt;  mtu 1500&lt;br /&gt;
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255&lt;br /&gt;
        ether 02:42:db:62:09:42  txqueuelen 0  (Ethernet)&lt;br /&gt;
.....&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Add ip alias ===&lt;br /&gt;
$ ifconfig eth0:1 10.10.20.218 netmask 255.255.255.0   broadcast 10.10.20.255&lt;br /&gt;
&lt;br /&gt;
== Using ip ==&lt;br /&gt;
&lt;br /&gt;
=== ip Usage ===&lt;br /&gt;
&lt;br /&gt;
==== ip help ====&lt;br /&gt;
&lt;br /&gt;
==== ip link show ====&lt;br /&gt;
&lt;br /&gt;
=== add ip alias ===&lt;br /&gt;
$ ip a add 192.168.178.2/24 dev eth0&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=First_principles&amp;diff=40</id>
		<title>First principles</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=First_principles&amp;diff=40"/>
		<updated>2023-01-15T12:13:25Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Using ifconfig ==&lt;br /&gt;
&lt;br /&gt;
=== Show interface configuration ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ifconfig eno1&lt;br /&gt;
eno1: flags=4163&amp;lt;UP,BROADCAST,RUNNING,MULTICAST&amp;gt;  mtu 1500&lt;br /&gt;
        inet 192.168.1.79  netmask 255.255.255.0  broadcast 192.168.1.255&lt;br /&gt;
        inet6 fe80::a6a5:87ad:cb7a:6cad  prefixlen 64  scopeid 0x20&amp;lt;link&amp;gt;&lt;br /&gt;
        ether 50:eb:f6:3f:27:61  txqueuelen 1000  (Ethernet)&lt;br /&gt;
        RX packets 137223  bytes 104941638 (104.9 MB)&lt;br /&gt;
        RX errors 0  dropped 0  overruns 0  frame 0&lt;br /&gt;
        TX packets 91146  bytes 22484489 (22.4 MB)&lt;br /&gt;
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0&lt;br /&gt;
        device interrupt 16  memory 0xa1400000-a1420000  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Show All interfaces&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ifconfig&lt;br /&gt;
br0: flags=4163&amp;lt;UP,BROADCAST,RUNNING,MULTICAST&amp;gt;  mtu 1500&lt;br /&gt;
        inet 192.168.2.1  netmask 255.255.255.0  broadcast 192.168.2.255&lt;br /&gt;
        ether 92:51:fc:1b:36:38  txqueuelen 1000  (Ethernet)&lt;br /&gt;
        RX packets 277  bytes 28650 (28.6 KB)&lt;br /&gt;
        RX errors 0  dropped 0  overruns 0  frame 0&lt;br /&gt;
        TX packets 899  bytes 129148 (129.1 KB)&lt;br /&gt;
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0&lt;br /&gt;
&lt;br /&gt;
br-b737ea16f9fc: flags=4099&amp;lt;UP,BROADCAST,MULTICAST&amp;gt;  mtu 1500&lt;br /&gt;
        inet 172.25.0.1  netmask 255.255.0.0  broadcast 172.25.255.255&lt;br /&gt;
        ether 02:42:79:64:bc:e2  txqueuelen 0  (Ethernet)&lt;br /&gt;
        RX packets 0  bytes 0 (0.0 B)&lt;br /&gt;
        RX errors 0  dropped 0  overruns 0  frame 0&lt;br /&gt;
        TX packets 0  bytes 0 (0.0 B)&lt;br /&gt;
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0&lt;br /&gt;
&lt;br /&gt;
docker0: flags=4099&amp;lt;UP,BROADCAST,MULTICAST&amp;gt;  mtu 1500&lt;br /&gt;
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255&lt;br /&gt;
        ether 02:42:db:62:09:42  txqueuelen 0  (Ethernet)&lt;br /&gt;
.....&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Add ip alias ===&lt;br /&gt;
$ ifconfig eth0:1 10.10.20.218 netmask 255.255.255.0   broadcast 10.10.20.255&lt;br /&gt;
&lt;br /&gt;
== Using ip ==&lt;br /&gt;
&lt;br /&gt;
=== add ip alias ===&lt;br /&gt;
$ ip a add 192.168.178.2/24 dev eth0&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Working_with_network_interfaces&amp;diff=39</id>
		<title>Working with network interfaces</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Working_with_network_interfaces&amp;diff=39"/>
		<updated>2023-01-15T12:10:46Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[first principles | first principles and tools ]]&lt;br /&gt;
&lt;br /&gt;
[[Network-Centos 8|Centos 8]] (System V)&lt;br /&gt;
&lt;br /&gt;
[[Network-Debian | Generic Debian ]] &lt;br /&gt;
&lt;br /&gt;
[[Network - Ubuntu 22.04|ubuntu 22.04]] (Network Manager)&lt;br /&gt;
&lt;br /&gt;
[[Network-networkd | Systemd/Networkd]] (Systemd based)&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Network-networkd&amp;diff=38</id>
		<title>Network-networkd</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Network-networkd&amp;diff=38"/>
		<updated>2023-01-15T12:08:28Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Setup for Networkd==&lt;br /&gt;
&lt;br /&gt;
===Switching to Networkd ===&lt;br /&gt;
&amp;lt;pre&amp;gt;$ systemctl stop NetworkManager &lt;br /&gt;
$ systemctl disable NetworkManager &lt;br /&gt;
$ systemctl enable systemd-networkd&lt;br /&gt;
$ systemctl enable systemd-resolved&lt;br /&gt;
$ systemctl start systemd-resolved&lt;br /&gt;
$ rm /etc/resolv.conf&lt;br /&gt;
$ ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf&lt;br /&gt;
$ mkdir -p /etc/systemd/network&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Configuring Networkd===&lt;br /&gt;
&lt;br /&gt;
====What interfaces do we have====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# networkctl&lt;br /&gt;
IDX LINK            TYPE     OPERATIONAL SETUP    &lt;br /&gt;
  1 lo              loopback carrier     unmanaged&lt;br /&gt;
  2 eno1            ether    routable    unmanaged&lt;br /&gt;
  3 br0             bridge   routable    unmanaged&lt;br /&gt;
  4 virbr0          bridge   no-carrier  unmanaged&lt;br /&gt;
  5 docker0         bridge   no-carrier  unmanaged&lt;br /&gt;
  6 br-b737ea16f9fc bridge   no-carrier  unmanaged&lt;br /&gt;
  7 vnet0           ether    degraded    unmanaged&lt;br /&gt;
&lt;br /&gt;
7 links listed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Configuring en01 - static====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cat &amp;gt;&amp;gt; /etc/systemd/network/00-eno1.network &amp;lt;&amp;lt; EOF&lt;br /&gt;
[Match]&lt;br /&gt;
Name=enp3s0&lt;br /&gt;
&lt;br /&gt;
[Network]&lt;br /&gt;
Address=192.168.1.50/24&lt;br /&gt;
Gateway=192.168.1.1&lt;br /&gt;
DNS=192.168.1.1&lt;br /&gt;
EOF&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Configuring en01 - dhcp====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cat &amp;gt;&amp;gt; /etc/systemd/network/00-eno1.network &amp;lt;&amp;lt; EOF&lt;br /&gt;
[Match]&lt;br /&gt;
Name=enp3s0&lt;br /&gt;
&lt;br /&gt;
[Network]&lt;br /&gt;
DHCP=yes&lt;br /&gt;
EOF&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Controlling interfaces ===&lt;br /&gt;
==== Full Restart ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ systemctl restart systemd-network&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Interface only ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ networkctl up eno1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ networkctl down eno1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==IP Alias for Networkd==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cat &amp;gt;&amp;gt; /etc/systemd/network/00-eno1.network &amp;lt;&amp;lt; EOF&lt;br /&gt;
[Match]&lt;br /&gt;
Name=enp3s0&lt;br /&gt;
[Network]&lt;br /&gt;
Address=192.168.1.50/24&lt;br /&gt;
Address=172.14.0.50/24&lt;br /&gt;
Gateway=192.168.1.1&lt;br /&gt;
DNS=192.168.1.1&lt;br /&gt;
EOF&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Network-networkd&amp;diff=37</id>
		<title>Network-networkd</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Network-networkd&amp;diff=37"/>
		<updated>2023-01-15T12:05:34Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Setup for Networkd==&lt;br /&gt;
&lt;br /&gt;
===Switching to Networkd ===&lt;br /&gt;
&amp;lt;pre&amp;gt;$ systemctl stop NetworkManager &lt;br /&gt;
$ systemctl disable NetworkManager &lt;br /&gt;
$ systemctl enable systemd-networkd&lt;br /&gt;
$ systemctl enable systemd-resolved&lt;br /&gt;
$ systemctl start systemd-resolved&lt;br /&gt;
$ rm /etc/resolv.conf&lt;br /&gt;
$ ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf&lt;br /&gt;
$ mkdir -p /etc/systemd/network&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Configuring Networkd===&lt;br /&gt;
&lt;br /&gt;
====What interfaces do we have====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# networkctl&lt;br /&gt;
IDX LINK            TYPE     OPERATIONAL SETUP    &lt;br /&gt;
  1 lo              loopback carrier     unmanaged&lt;br /&gt;
  2 eno1            ether    routable    unmanaged&lt;br /&gt;
  3 br0             bridge   routable    unmanaged&lt;br /&gt;
  4 virbr0          bridge   no-carrier  unmanaged&lt;br /&gt;
  5 docker0         bridge   no-carrier  unmanaged&lt;br /&gt;
  6 br-b737ea16f9fc bridge   no-carrier  unmanaged&lt;br /&gt;
  7 vnet0           ether    degraded    unmanaged&lt;br /&gt;
&lt;br /&gt;
7 links listed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Configuring en01 - static====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cat &amp;gt;&amp;gt; /etc/systemd/network/00-eno1.network &amp;lt;&amp;lt; EOF&lt;br /&gt;
[Match]&lt;br /&gt;
Name=enp3s0&lt;br /&gt;
&lt;br /&gt;
[Network]&lt;br /&gt;
Address=192.168.1.50/24&lt;br /&gt;
Gateway=192.168.1.1&lt;br /&gt;
DNS=192.168.1.1&lt;br /&gt;
EOF&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Configuring en01 - dhcp====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cat &amp;gt;&amp;gt; /etc/systemd/network/00-eno1.network &amp;lt;&amp;lt; EOF&lt;br /&gt;
[Match]&lt;br /&gt;
Name=enp3s0&lt;br /&gt;
&lt;br /&gt;
[Network]&lt;br /&gt;
DHCP=yes&lt;br /&gt;
EOF&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Controlling interfaces ===&lt;br /&gt;
==== Full Restart ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ systemctl restart systemd-network&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Interface only ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ networkctl up eno1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ networkctl down eno1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==IP Alias for Networkd==&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Network-networkd&amp;diff=36</id>
		<title>Network-networkd</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Network-networkd&amp;diff=36"/>
		<updated>2023-01-15T11:53:21Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Switching to Networkd===&lt;br /&gt;
$ sudo systemctl stop NetworkManager &lt;br /&gt;
&lt;br /&gt;
$ sudo systemctl disable NetworkManager &lt;br /&gt;
&lt;br /&gt;
$ sudo systemctl enable systemd-networkd&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Network-networkd&amp;diff=35</id>
		<title>Network-networkd</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Network-networkd&amp;diff=35"/>
		<updated>2023-01-15T11:51:31Z</updated>

		<summary type="html">&lt;p&gt;Mike: Created page with &amp;quot;Switching to Networkd&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Switching to Networkd&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Network_-_Ubuntu_22.04&amp;diff=34</id>
		<title>Network - Ubuntu 22.04</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Network_-_Ubuntu_22.04&amp;diff=34"/>
		<updated>2023-01-15T11:50:40Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Adding an alias ===&lt;br /&gt;
# nmcli connection show&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
NAME                   UUID                                  TYPE      DEVICE          &lt;br /&gt;
Ethernet connection 1  bb928bec-bfb0-45d9-9b58-84d6832cb485  ethernet  eno1            &lt;br /&gt;
br0                    8c929bd9-a291-4278-a2e3-28f5b6820066  bridge    br0             &lt;br /&gt;
.....&lt;br /&gt;
&amp;lt;/pre&amp;gt;NetworkManager doesn&#039;t really support such aliases. It supports connection profiles (that basically correspond to a regular ifcfg file), and it supports multiple IP addresses per profile. But you can&#039;t split one profile into multiple parts, like what initscripts&#039; aliases are.&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
	<entry>
		<id>https://wiki.ttsh.dk/index.php?title=Network-Debian&amp;diff=33</id>
		<title>Network-Debian</title>
		<link rel="alternate" type="text/html" href="https://wiki.ttsh.dk/index.php?title=Network-Debian&amp;diff=33"/>
		<updated>2023-01-15T11:48:35Z</updated>

		<summary type="html">&lt;p&gt;Mike: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Adding an IP alias===&lt;br /&gt;
$ vi /etc/network/interfaces&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#secondary ip address&lt;br /&gt;
auto eth0:0&lt;br /&gt;
iface eth0:0 inet static&lt;br /&gt;
address 10.10.1.100&lt;br /&gt;
netmask 255.255.255.0&amp;lt;/pre&amp;gt;$ ifup eth0:0&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
$ service networking restart&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
</feed>