The issue is with the parameter name. In VyOS, use mac instead of mac-address. Here’s the correct syntax:
configure
# Static mapping for dmz-host-11
set service dhcp-server shared-network-name DMZ subnet 192.168.100.0/24 static-mapping dmz-host-11 mac bc:24:11:35:a9:01
set service dhcp-server shared-network-name DMZ subnet 192.168.100.0/24 static-mapping dmz-host-11 ip-address 192.168.100.11
# Static mapping for dmz-host-12
set service dhcp-server shared-network-name DMZ subnet 192.168.100.0/24 static-mapping dmz-host-12 mac bc:24:11:35:a9:02
set service dhcp-server shared-network-name DMZ subnet 192.168.100.0/24 static-mapping dmz-host-12 ip-address 192.168.100.12
commit
save
exit
Key difference: Use mac instead of mac-address
You can verify the configuration with:
show service dhcp-server shared-network-name DMZ
And check active leases with:
show dhcp server leases
Be First to Comment