Closed d78ui98 closed 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
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".
You should also configure NAT on the DHCP server, since it is also the gateway. But maybe on another PR?
vagrant boxes are by default configured with NAT.
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?
iptables-save
gives no output.
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.
Okay. Thanks for the links. I will take a good look and try to implement it.
This may also help: https://www.youtube.com/watch?v=4cc-SNuf-B8
@dashohoxha in the above comment you said configure NAT on dhcp server on another PR. So should we merge this one?
Vagrantfile
andinstall.sh
now loadsNETWORK
fromsettings.sh