› VitalPBX Community Support › General Discussion › configure VitalPBX as a DHCP server › Reply To: RE: configure VitalPBX as a DHCP server
-
- September 22, 2018 at 11:33 pm
Hello Gary, I set it up already after some Google research. It’s a Linux network question. I didn’t do it from the ADMIN- SYSTEM SETTINGS – DHCP SETTINGS from the panel. I do it all from the command line. It involves two parts: 1, set up DHCP. 2, set up routing.
1, For DHCP, you need to install it first. Then configure the dhcpd.conf file. Also you have to make sure information in the config file match the eth1 subnet.
# yum install dhcp
# cp /usr/share/doc/dhcp-4.2.5/dhcpd.conf.example /etc/dhcp/dhcpd.conf
#vi /etc/dhcp/dhcpd.conf
#systemctl enable dhcpd
https://www.youtube.com/watch?v=NIcVO_F0YTg
2, After setting up the DHCP, we need to set up the routing part.
#sysctl -w net.ipv4.ip_forward=1
# echo “net.ipv4.ip_forward = 1” >> /etc/sysctl.d/ip_forward.conf
# firewall-cmd –permanent –direct –passthrough ipv4 -t nat -I POSTROUTING -o eth0 -j MASQUERADE -s 192.168.5.0/24
# firewall-cmd –reloadhttps://www.youtube.com/watch?v=X3QTqdGxXHQ
https://devops.profitbricks.com/tutorials/deploy-outbound-nat-gateway-on-centos-7/
0