From 573b8779409ed39ee08f5f4f2d835a48be1d3f51 Mon Sep 17 00:00:00 2001
From: Trent Palmer
Date: Sat, 22 Jul 2017 11:21:17 -0700
Subject: [PATCH] new docs/how_to_reassign_a_static_ip_address_with_dnsmasq.md
---
...assign_a_static_ip_address_with_dnsmasq.md | 28 +++
docs/index.md | 1 +
mkdocs.yml | 1 +
site/arch_postgresql_nspawn/index.html | 5 +
site/arch_redis_nspawn/index.html | 5 +
.../index.html | 5 +
.../index.html | 5 +
site/freebsd_jails_on_freenas/index.html | 5 +
.../index.html | 213 ++++++++++++++++++
site/index.html | 8 +-
.../index.html | 9 +-
site/mastodon_on_arch/index.html | 5 +
site/mkdocs/search_index.json | 14 +-
site/nspawn/index.html | 5 +
site/search.html | 5 +
site/self_signed_certs/index.html | 5 +
.../index.html | 9 +-
site/sitemap.xml | 30 ++-
18 files changed, 340 insertions(+), 18 deletions(-)
create mode 100644 docs/how_to_reassign_a_static_ip_address_with_dnsmasq.md
create mode 100644 site/how_to_reassign_a_static_ip_address_with_dnsmasq/index.html
diff --git a/docs/how_to_reassign_a_static_ip_address_with_dnsmasq.md b/docs/how_to_reassign_a_static_ip_address_with_dnsmasq.md
new file mode 100644
index 0000000..856ff25
--- /dev/null
+++ b/docs/how_to_reassign_a_static_ip_address_with_dnsmasq.md
@@ -0,0 +1,28 @@
+# How To Reassign a Static ip address with dnsmasq
+
+On your router you can assign static ip addresses for various machines
+in your network, by writing the reservations in the file `/etc/dnsmasq.conf`.
+
+These will be in the form as below.
+
+`dhcp-host=,`
+
+So here's how you transfer an existing static ip address assignment to
+a new client machine. Begin by editting the file `/etc/dnsmasq.conf` on
+your router, and update the mac address associated with the intended
+ip address.
+
+Next, temporarily stop dnsmasq.
+
+```bash
+systemctl stop dnsmasq
+```
+
+Next shutdown networking on the new client machine. Shutting the machine down might work,
+or the command `dhclient -v -r` might get the job done (you will lose the connection).
+
+Now on the router, edit the file `/var/lib/misc/dnsmasq.leases`, and delete the pre-existing
+lease for the old client machine that will no longer exist.
+
+Restart dnsmasq on the router,
+and then restart networking on the new client machine.
diff --git a/docs/index.md b/docs/index.md
index f292152..38777b2 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -4,6 +4,7 @@ Obviously, the commit history will reflect the time when these documents are wri
* [Serve And Share Apps From Your Phone With Fdroid](serve_and_share_apps_from_your_phone_with_fdroid.md)
* [LXD Container Home Server Networking For Dummies](lxd_container_home_server_networking_for_dummies.md)
+* [How To Reassign A Static Ip Address with dnsmasq](how_to_reassign_a_static_ip_address_with_dnsmasq.md)
* [Nspawn Containers](nspawn.md)
* [Mastodon on Arch](mastodon_on_arch.md)
* [Debian Nspawn Container On Arch For Testing Apache Configurations](debian_nspawn_container_on_arch_for_testing_apache_configurations.md)
diff --git a/mkdocs.yml b/mkdocs.yml
index 0c2d65f..e63d1ff 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -5,6 +5,7 @@ theme: readthedocs
pages:
- 'Home': index.md
- 'LXD Container Home Server Networking For Dummies': lxd_container_home_server_networking_for_dummies.md
+ - 'How To Reassign A Static Ip Address with dnsmasq': how_to_reassign_a_static_ip_address_with_dnsmasq.md
- 'Serve And Share Apps From Your Phone With Fdroid': serve_and_share_apps_from_your_phone_with_fdroid.md
- 'Nspawn': nspawn.md
- 'Mastodon on Arch': mastodon_on_arch.md
diff --git a/site/arch_postgresql_nspawn/index.html b/site/arch_postgresql_nspawn/index.html
index 4b3f194..a0e66d3 100644
--- a/site/arch_postgresql_nspawn/index.html
+++ b/site/arch_postgresql_nspawn/index.html
@@ -59,6 +59,11 @@
On your router you can assign static ip addresses for various machines
+in your network, by writing the reservations in the file /etc/dnsmasq.conf.
+
These will be in the form as below.
+
dhcp-host=<mac address>,<ip address>
+
So here's how you transfer an existing static ip address assignment to
+a new client machine. Begin by editting the file /etc/dnsmasq.conf on
+your router, and update the mac address associated with the intended
+ip address.
+
Next, temporarily stop dnsmasq.
+
systemctl stop dnsmasq
+
+
+
Next shutdown networking on the new client machine. Shutting the machine down might work,
+or the command dhclient -v -r might get the job done (you will lose the connection).
+
Now on the router, edit the file /var/lib/misc/dnsmasq.leases, and delete the pre-existing
+lease for the old client machine that will no longer exist.
+
Restart dnsmasq on the router,
+and then restart networking on the new client machine.
diff --git a/site/mkdocs/search_index.json b/site/mkdocs/search_index.json
index f4f1c1a..0c89be3 100644
--- a/site/mkdocs/search_index.json
+++ b/site/mkdocs/search_index.json
@@ -2,7 +2,7 @@
"docs": [
{
"location": "/",
- "text": "Welcome to Trent Docs\n\n\nGit Repo For These Docs\n\n\nObviously, the commit history will reflect the time when these documents are written.\n\n\n\n\nServe And Share Apps From Your Phone With Fdroid\n\n\nLXD Container Home Server Networking For Dummies\n\n\nNspawn Containers\n\n\nMastodon on Arch\n\n\nDebian Nspawn Container On Arch For Testing Apache Configurations\n\n\nDynamic Cacheing Nginx Reverse Proxy For Pacman\n\n\nFreeBSD Jails on FreeNAS\n \n\n\nQuick Dirty Redis Nspawn Container on Arch Linux\n\n\nQuick Dirty Postgresql Nspawn Container on Arch Linux\n\n\nSelf Signed Certs",
+ "text": "Welcome to Trent Docs\n\n\nGit Repo For These Docs\n\n\nObviously, the commit history will reflect the time when these documents are written.\n\n\n\n\nServe And Share Apps From Your Phone With Fdroid\n\n\nLXD Container Home Server Networking For Dummies\n\n\nHow To Reassign A Static Ip Address with dnsmasq\n\n\nNspawn Containers\n\n\nMastodon on Arch\n\n\nDebian Nspawn Container On Arch For Testing Apache Configurations\n\n\nDynamic Cacheing Nginx Reverse Proxy For Pacman\n\n\nFreeBSD Jails on FreeNAS\n \n\n\nQuick Dirty Redis Nspawn Container on Arch Linux\n\n\nQuick Dirty Postgresql Nspawn Container on Arch Linux\n\n\nSelf Signed Certs",
"title": "Home"
},
{
@@ -12,7 +12,7 @@
},
{
"location": "/#git-repo-for-these-docs",
- "text": "Obviously, the commit history will reflect the time when these documents are written. Serve And Share Apps From Your Phone With Fdroid LXD Container Home Server Networking For Dummies Nspawn Containers Mastodon on Arch Debian Nspawn Container On Arch For Testing Apache Configurations Dynamic Cacheing Nginx Reverse Proxy For Pacman FreeBSD Jails on FreeNAS Quick Dirty Redis Nspawn Container on Arch Linux Quick Dirty Postgresql Nspawn Container on Arch Linux Self Signed Certs",
+ "text": "Obviously, the commit history will reflect the time when these documents are written. Serve And Share Apps From Your Phone With Fdroid LXD Container Home Server Networking For Dummies How To Reassign A Static Ip Address with dnsmasq Nspawn Containers Mastodon on Arch Debian Nspawn Container On Arch For Testing Apache Configurations Dynamic Cacheing Nginx Reverse Proxy For Pacman FreeBSD Jails on FreeNAS Quick Dirty Redis Nspawn Container on Arch Linux Quick Dirty Postgresql Nspawn Container on Arch Linux Self Signed Certs",
"title": "Git Repo For These Docs"
},
{
@@ -90,6 +90,16 @@
"text": "Once you assign the containers static ip addresses for their eth1 \ninterfaces, you can use the /etc/hosts file on each container to make them\naware of where the other containers and the host machine are. For instance, if you want the container quick-joey to talk directly\nto the host machine, which will be at the ip address of lxdbr1 , start a shell\non the container quick-joey lxc exec quick-joey bash and edit /etc/hosts # /etc/hosts\n10.151.18.1 mothership Or you have a container named fat-cinderella , that needs to be able to talk\ndirectly quick-joey . lxc exec fat-cinderella bash\nvim /etc/hosts # /etc/hosts\n10.151.18.123 quick-joey etcetera",
"title": "the /etc/hosts file"
},
+ {
+ "location": "/how_to_reassign_a_static_ip_address_with_dnsmasq/",
+ "text": "How To Reassign a Static ip address with dnsmasq\n\n\nOn your router you can assign static ip addresses for various machines\nin your network, by writing the reservations in the file \n/etc/dnsmasq.conf\n.\n\n\nThese will be in the form as below.\n\n\ndhcp-host=,\n\n\nSo here's how you transfer an existing static ip address assignment to\na new client machine. Begin by editting the file \n/etc/dnsmasq.conf\n on\nyour router, and update the mac address associated with the intended\nip address.\n\n\nNext, temporarily stop dnsmasq.\n\n\nsystemctl stop dnsmasq\n\n\n\n\nNext shutdown networking on the new client machine. Shutting the machine down might work,\nor the command \ndhclient -v -r\n might get the job done (you will lose the connection).\n\n\nNow on the router, edit the file \n/var/lib/misc/dnsmasq.leases\n, and delete the pre-existing\nlease for the old client machine that will no longer exist.\n\n\nRestart dnsmasq on the router,\n\nand then restart networking on the new client machine.",
+ "title": "How To Reassign A Static Ip Address with dnsmasq"
+ },
+ {
+ "location": "/how_to_reassign_a_static_ip_address_with_dnsmasq/#how-to-reassign-a-static-ip-address-with-dnsmasq",
+ "text": "On your router you can assign static ip addresses for various machines\nin your network, by writing the reservations in the file /etc/dnsmasq.conf . These will be in the form as below. dhcp-host=, So here's how you transfer an existing static ip address assignment to\na new client machine. Begin by editting the file /etc/dnsmasq.conf on\nyour router, and update the mac address associated with the intended\nip address. Next, temporarily stop dnsmasq. systemctl stop dnsmasq Next shutdown networking on the new client machine. Shutting the machine down might work,\nor the command dhclient -v -r might get the job done (you will lose the connection). Now on the router, edit the file /var/lib/misc/dnsmasq.leases , and delete the pre-existing\nlease for the old client machine that will no longer exist. Restart dnsmasq on the router, \nand then restart networking on the new client machine.",
+ "title": "How To Reassign a Static ip address with dnsmasq"
+ },
{
"location": "/serve_and_share_apps_from_your_phone_with_fdroid/",
"text": "Serve And Share Apps From Your Phone With Fdroid\n\n\nThis can speed up the process of updating apps on your devices, especially if fdroid is slow. \n\n\nStep 3: you are born on third base, find the menu item for \nSwap apps\n on phone one\n\n\nOpen fdroid, and navigate to the menu by touching three dots in upper right hand corner of the screen. Select \nSwap apps\n.\n\n\n\n\nStep 4: enable the repo server on phone one\n\n\nOn the next screen toggle on \nVisible via Wi-Fi\n\n\n\n\nStep 5: a small step for your android\n\n\nAt the bottom of the screen select \nSCAN QR CODE\n\n\n\n\nStep 6: choose which apps to serve from phone one\n\n\nAt the next screen \nChoose Apps\n you want to xerve I mean serve and then touch the -> right arrow to proceed\n\n\n\n\nStep 7: another small step for your android\n\n\nTouch the -> right arrow again, do it.\n\n\n\n\nOcho: <- this means step eight\n\n\nTouch the -> right arrow until you are coming here\n\n\n\nNotice you can use either a qr code or a local url, so grab one of your other phones.\n\n\nPrivacy Friendly Qr Scanner\n appears to be a good Qr scanner,\nbut of course you can key in the url by hand too.\n\n\nStep 9: find the menu item for \nRepositories\n on phone two\n\n\nOn your other phone open fdroid, navigate to menu by selecting the 3 dots in the upper right hand corner and choose \nRepositories\n\n\n\n\nStep 10: (temporarily) toggle off the remote repos on phone two\n\n\nToggle all the current repos off and then if you want to key in the new local repo url by hand touch the + plus in the upper right hand corner\n\n\n\n\nStep 11 A: key in the local repo url by hand on phone two\n\n\nAfter touching the + plus button in \nStep Ten\n on phone two, you can fill in the url address that corresponds to the photo in \nOcho\n\n\n\n\nStep 12 A: or scan in the local repo url with qr code on phone two\n\n\nIf you prefer not to key in the url by hand, on phone two touch the\nhome button and then open your qr-scanning application and scan the\nqr code on phone one, as seen in photo \nOcho\n. The qr-scanning\napp will direct you to open fdroid, and your result will be the same as\nthe photo in \nStep Eleven A\n\n\nStep 13: profit from moar faster local downloads\n\n\nOn phone two you can now download and install apps and updates from phone one, and the download speed will be much faster than from the internet.\n\n\n\n\nStep 14: how to remember all this?\n\n\nYou can bookmark.\n\n\nIn fact, you can add a shortcut icon directly to \n\nthis page\n,\non your home screen,\nas seen here with IceCat, a debranded build of the latest extended-support-release\nof FireFox for Android.\n\n\nOr you can clone \nthe git repo\n\nwhich this site automatically builds itself from.",
diff --git a/site/nspawn/index.html b/site/nspawn/index.html
index 3288a32..9a025d2 100644
--- a/site/nspawn/index.html
+++ b/site/nspawn/index.html
@@ -59,6 +59,11 @@