docker-scripts-archived / dev--LTSP

Virtual LTSP server with vagrant and/or docker-scripts.
GNU General Public License v3.0
7 stars 6 forks source link

fixed dhcp server #38

Closed d78ui98 closed 6 years ago

d78ui98 commented 6 years ago
d78ui98 commented 6 years ago

I have hardcoded .234 in the dhcp address like this -

DHCP_ADDRESS = NETWORK+".234"

another option could be to add a line in settings.sh for dhcp address and then use it in Vagrantfile Let me know if you any other better idea

dashohoxha commented 6 years ago

Why not NETWORK+".1"? The DHCP server in this case is also the gateway of the LAN, and usually the IP address of the gateway ends with ".1".

dashohoxha commented 6 years ago

You should also configure NAT on the DHCP server, since it is also the gateway. But maybe on another PR?

d78ui98 commented 6 years ago

vagrant boxes are by default configured with NAT.

dashohoxha commented 6 years ago

vagrant boxes are by default configured with NAT

I think that we are talking about two different things. Can you run iptables-save inside the box and show the output?

d78ui98 commented 6 years ago

iptables-save gives no output.

dashohoxha commented 6 years ago

iptables-save gives no output

Then you don't have NAT installed. The NAT that you mention is the one that VirtualBox uses to allow your box to access the internet. The one that I am talking about is the one that allows the client to access internet through your dhcp box.

d78ui98 commented 6 years ago

Okay. Thanks for the links. I will take a good look and try to implement it.

dashohoxha commented 6 years ago

This may also help: https://www.youtube.com/watch?v=4cc-SNuf-B8

d78ui98 commented 6 years ago

@dashohoxha in the above comment you said configure NAT on dhcp server on another PR. So should we merge this one?