Vyos Configure DHCP Server
-
Below are the errors I'm receiving when I attempt to commit these changes, being this is the first time I've setup VyOS (or any router from the ground up guidance is appreciated)
commit [ service dhcp-server ] No DHCP address range or active static-mapping set for subnet 10.200.1.0/24! [[service dhcp-server]] failed [ service dns forwarding ] Error: DNS forwarding requires a listen-address
-
I'm not free enough right now to spin up a VyOS VM to re-familiarize myself, but perhaps something was left out when you were entering your
set service dhcp-server
commands. -
@EddieJennings his second error is related to DNS.
This is a working DNS setup.
set service dns forwarding cache-size 150 set service dns forwarding listen-on eth7 set service dns forwarding listen-on eth7.2 set service dns forwarding name-server 1.1.1.1 set service dns forwarding name-server 8.8.8.8 set service dns forwarding options server=/domain.local/10.202.0.21 set service dns forwarding options server=/domain/10.202.0.21
-
Your DHCP error is likely a typo someplace.
I'm not sure how much VyOS and EdgeOS have diverged, but here is my DHCP setup at home.
set service dhcp-server shared-network-name LAN authoritative disable set service dhcp-server shared-network-name LAN description 'LAN eth7' set service dhcp-server shared-network-name LAN subnet 10.254.103.0/24 default-router 10.254.103.1 set service dhcp-server shared-network-name LAN subnet 10.254.103.0/24 dns-server 10.254.103.4 set service dhcp-server shared-network-name LAN subnet 10.254.103.0/24 dns-server 10.254.103.1 set service dhcp-server shared-network-name LAN subnet 10.254.103.0/24 domain-name jaredbusch.com set service dhcp-server shared-network-name LAN subnet 10.254.103.0/24 lease 28800 set service dhcp-server shared-network-name LAN subnet 10.254.103.0/24 ntp-server 10.254.103.1 set service dhcp-server shared-network-name LAN subnet 10.254.103.0/24 start 10.254.103.31 stop 10.254.103.254 set service dhcp-server shared-network-name LAN subnet 10.254.103.0/24 static-mapping ext103 ip-address 10.254.103.10 set service dhcp-server shared-network-name LAN subnet 10.254.103.0/24 static-mapping ext103 mac-address '00:15:65:64:93:46' set service dhcp-server shared-network-name LAN subnet 10.254.103.0/24 static-mapping kvm ip-address 10.254.103.5 set service dhcp-server shared-network-name LAN subnet 10.254.103.0/24 static-mapping kvm mac-address '18:03:73:e2:21:47' set service dhcp-server shared-network-name LAN subnet 10.254.103.0/24 static-mapping plex ip-address 10.254.103.6 set service dhcp-server shared-network-name LAN subnet 10.254.103.0/24 static-mapping plex mac-address '52:54:00:b0:8f:e1' set service dhcp-server shared-network-name LAN subnet 10.254.103.0/24 tftp-server-name 'http://pbx.bundystl.com:84' set service dhcp-server shared-network-name LAN subnet 10.254.103.0/24 time-server 10.254.103.1 set service dhcp-server shared-network-name LAN subnet 10.254.103.0/24 unifi-controller 207.244.223.13
-
Thanks guys I'll take a look once I'm free, dad duties have me tied up
-
@JaredBusch said in Vyos Configure DHCP Server:
@EddieJennings his second error is related to DNS.
This is a working DNS setup.
set service dns forwarding cache-size 150 set service dns forwarding listen-on eth7 set service dns forwarding listen-on eth7.2 set service dns forwarding name-server 1.1.1.1 set service dns forwarding name-server 8.8.8.8 set service dns forwarding options server=/domain.local/10.202.0.21 set service dns forwarding options server=/domain/10.202.0.21
Correct. I gambled from his title the immediate interest was DHCP. I lost.