New DHCP roles - how to change it?


#1

Hi there,

I update my vyos from 1.2.0-rolling+201809050337 to 1.2.0-rolling+201809111051

the DHCP is not working now, Only the reserved adresses. I read your blog that you change the syntax the DHCP commands.

Now i use this one:

set service dhcp-server shared-network-name LAN subnet 192.168.31.0/24 default-router '192.168.31.1'
set service dhcp-server shared-network-name LAN subnet 192.168.31.0/24 dns-server '192.168.31.1'
set service dhcp-server shared-network-name LAN subnet 192.168.31.0/24 domain-name 'internal-network'
set service dhcp-server shared-network-name LAN subnet 192.168.31.0/24 lease '86400'
set service dhcp-server shared-network-name LAN subnet 192.168.31.0/24 range 0 start '192.168.31.100'
set service dhcp-server shared-network-name LAN subnet 192.168.31.0/24 range 0 stop '192.168.31.254'
set service dhcp-server shared-network-name LAN subnet 192.168.31.0/24 static-mapping asztali ip-address '192.168.31.102'
set service dhcp-server shared-network-name LAN subnet 192.168.31.0/24 static-mapping asztali mac-address ''
set service dhcp-server shared-network-name LAN subnet 192.168.31.0/24 static-mapping libreelec ip-address '192.168.31.106'
set service dhcp-server shared-network-name LAN subnet 192.168.31.0/24 static-mapping libreelec mac-address ''
set service dhcp-server shared-network-name LAN subnet 192.168.31.0/24 static-mapping mikrotik_cap_ac ip-address '192.168.31.101'
set service dhcp-server shared-network-name LAN subnet 192.168.31.0/24 static-mapping mikrotik_cap_ac mac-address ''
set service dhcp-server shared-network-name LAN subnet 192.168.31.0/24 static-mapping redmi_note_3 ip-address '192.168.31.104'
set service dhcp-server shared-network-name LAN subnet 192.168.31.0/24 static-mapping redmi_note_3 mac-address ''
set service dhcp-server shared-network-name LAN subnet 192.168.31.0/24 static-mapping samsung_tv ip-address '192.168.31.103'
set service dhcp-server shared-network-name LAN subnet 192.168.31.0/24 static-mapping samsung_tv mac-address ''
set service dhcp-server shared-network-name LAN subnet 192.168.31.0/24 static-mapping ubuntu ip-address '192.168.31.105'
set service dhcp-server shared-network-name LAN subnet 192.168.31.0/24 static-mapping ubuntu mac-address ''

my question that how to change it, that working again?


#3

In the latest image the syntax of some statements has changed, but static mappings should be the same.

I’ve tested it in latest image and it seems to work fine.
I used these commands:

set service dhcp-server shared-network-name LAN subnet 10.10.10.0/24 static-mapping Test ip-address 10.10.10.40
set service dhcp-server shared-network-name LAN subnet 10.10.10.0/24 static-mapping Test mac-address 00:aa:bb:cc:dd:ee

and the dhcpd.conf statement it produces seems fine:

host LAN_Test {
        fixed-address 10.10.10.40;
        hardware ethernet 00:aa:bb:cc:dd:ee;
    }

please upgrade to the latest image and if it still doesn’t work for you, tell us what the errors are.


#4

I install the latest one, now working well, thanks!


#5

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.