Difference between revisions of "Transition to Amahi"

From Amahi Wiki
Jump to: navigation, search
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  
Probably one of the most difficult part of transitioning to using your Amahi HDA with the full recommended experience is to get all systems to use your HDA for DNS.
+
Probably one of the most difficult parts of transitioning to using your Amahi HDA with the recommended setup is to get all systems to use your HDA for DNS.
  
 
A typical symptom is that either accessing the dashboard as
 
A typical symptom is that either accessing the dashboard as
 
  http://hda
 
  http://hda
or apps that have a web interface (or both) are not reachable and leads to some site on the internet (like amahi.net).
+
or apps that have a web interface (or both) are not reachable and leads to a site outside your network, on the internet (like amahi.net)
  
 
For best results, we recommend that you fully transition your network to using your Amahi server at least for DNS.
 
For best results, we recommend that you fully transition your network to using your Amahi server at least for DNS.
 +
 +
<b>NOTE:</b>  .
 +
{{MessageBox|backgroundcolor = #FBB|
 +
image =Warning.png|
 +
heading =WARNING|
 +
message = Turning off the DHCP in your router is the last step you take after installing Amahi. It should <b>ONLY</b> be done if your HDA is FULLY WORKING, otherwise you may be locked out without Internet in your own network.}}
  
 
The easiest and simplest way to do this is to do these things in the following order:
 
The easiest and simplest way to do this is to do these things in the following order:
  
# turn off any other DHCP server in your network, typically in your router/gateway
+
:1. [[Turning_off_DHCP_in_your_router|turn off any other DHCP server]] in your network (typically in your router/gateway) and let Amahi handle DHCP so that DNS falls into place automatically.
# restart the networking (or the whole device) in your client device. Turn off WiFi and turn it on if it has WiFi, or simply reboot
+
 +
:2. [[RenewIP|renew Client IP Address]] or reboot '''all''' your client devices. You can do this by turning off the network and turn it back on after a few seconds on your clients (or unplugging it or turning off WiFi for a few seconds, then), so they get a DHCP lease from your HDA, which includes DNS.
 +
 
 +
:3. sometimes the clients machine also cache DNS in browsers. To avoid this, you can hard-refresh the browser, or simply reboot the machine.
 +
 
 +
If you have any fixed IP devices in your network from your router settings, these may not pick up a DHCP lease. You may set them up in your HDA under [http://hda/tab/network/hosts Setup > Networking > Fixed IPs].
 +
 
 +
== An Alternative ==
 +
 
 +
Alternatively, if you cannot or do not want to turn off your router DHCP, you can still use the DNS server in your HDA. Here are the [http://www.amahi.org/faq/is-dhcp-server-required tradeoffs of not using the fully recommended configuration]
 +
 
 +
To do this, since the the DNS settings for the DHCP server in your router and fill them (both primary server and secondary) to be the IP of your HDA.
 +
 
 +
You should set them both to the IP of the HDA, so that the HDA is your DNS server for all your devices.  You will need to still [[RenewIP|renew Client IP Address]] or reboot '''all''' your client devices to pick these new settings up.
  
If you have any fixed IP devices in your network from your router settings, you can also set them in your HDA under Setup > Networking.
+
This way, your clients will still use your router for DHCP, but DNS from your Amahi HDA, hence accessing the apps via the short URLs will work.
  
Alternatively, you can set the DNS settings in your router to be the IP of your HDA (both primary and secondary). This way, your clients will still use your router for DHCP, but DNS from your Amahi HDA, hence accessing the apps via the short URLs will work.
+
The last step is to [[Turning_off_DHCP|turn off the DHCP server]] in your HDA under [http://hda/tab/network/settings Setup > Networking > Settings]. For this menu to show, you have to enable [[Advanced Settings]] under [http://hda/tab/settings Setup > Settings].
  
 
If you have further networking trouble, consult the [[Network Troubleshooting]] page.
 
If you have further networking trouble, consult the [[Network Troubleshooting]] page.

Latest revision as of 00:55, 26 October 2017

Probably one of the most difficult parts of transitioning to using your Amahi HDA with the recommended setup is to get all systems to use your HDA for DNS.

A typical symptom is that either accessing the dashboard as

http://hda

or apps that have a web interface (or both) are not reachable and leads to a site outside your network, on the internet (like amahi.net)

For best results, we recommend that you fully transition your network to using your Amahi server at least for DNS.

NOTE: .

Warning.png WARNING
Turning off the DHCP in your router is the last step you take after installing Amahi. It should ONLY be done if your HDA is FULLY WORKING, otherwise you may be locked out without Internet in your own network.



The easiest and simplest way to do this is to do these things in the following order:

1. turn off any other DHCP server in your network (typically in your router/gateway) and let Amahi handle DHCP so that DNS falls into place automatically.
2. renew Client IP Address or reboot all your client devices. You can do this by turning off the network and turn it back on after a few seconds on your clients (or unplugging it or turning off WiFi for a few seconds, then), so they get a DHCP lease from your HDA, which includes DNS.
3. sometimes the clients machine also cache DNS in browsers. To avoid this, you can hard-refresh the browser, or simply reboot the machine.

If you have any fixed IP devices in your network from your router settings, these may not pick up a DHCP lease. You may set them up in your HDA under Setup > Networking > Fixed IPs.

An Alternative

Alternatively, if you cannot or do not want to turn off your router DHCP, you can still use the DNS server in your HDA. Here are the tradeoffs of not using the fully recommended configuration

To do this, since the the DNS settings for the DHCP server in your router and fill them (both primary server and secondary) to be the IP of your HDA.

You should set them both to the IP of the HDA, so that the HDA is your DNS server for all your devices. You will need to still renew Client IP Address or reboot all your client devices to pick these new settings up.

This way, your clients will still use your router for DHCP, but DNS from your Amahi HDA, hence accessing the apps via the short URLs will work.

The last step is to turn off the DHCP server in your HDA under Setup > Networking > Settings. For this menu to show, you have to enable Advanced Settings under Setup > Settings.

If you have further networking trouble, consult the Network Troubleshooting page.