1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

DNSmasq - assign dhcp-range for mac addresses?

Discussion in 'Asuswrt-Merlin' started by busch09, Mar 22, 2019.

Tags:
  1. busch09

    busch09 Occasional Visitor

    Joined:
    May 6, 2013
    Messages:
    40
    Hi,

    I want to assign my virtual machines to a certain dhcp range.
    I have been playing around with dnsmasq.conf.add but cant get it to work.

    This is what i took from the dnsmasq man page:

    dhcp-host=00:15:23:*:*:*,net:VM
    dhcp-host=2a:11:11:*:*:*,net:VM
    dhcp-range=red,192.168.0.50,192.168.0.150
    Does anyone know how to do this properly?

    thans
    chris
     
  2. PeterV

    PeterV Regular Contributor

    Joined:
    Nov 5, 2013
    Messages:
    60
    Location:
    Ukraine, Kyiv
    I don't tested it, but, as I can understand, you have to tag the hosts, and after apply the range on appropriate tag
    Similar like:
    dhcp-host=00:15:23:*:*:*,set:vmnet
    dhcp-range=tag:vmnet,192.168.0.50,192.168.0.150
     
  3. busch09

    busch09 Occasional Visitor

    Joined:
    May 6, 2013
    Messages:
    40
    Solved it:

    dhcp-host=02:11:32:*:*:*,2m,set:vmnet
    dhcp-host=00:15:5D:*:*:*,2m,set:vmnet
    dhcp-host=9C:8E:CD:*:*:*,2m,set:ipcam
    dhcp-host=60:38:E0:*:*:*,2m,set:wemo

    dhcp-range=tag:lan,192.168.1.200,192.168.1.254,255.255.255.0,2m
    dhcp-range=tag:lankids,192.168.1.220,192.168.1.229,255.255.255.0,2m
    dhcp-range=tag:vmnet,192.168.1.130,192.168.1.160,255.255.255.0,2m
    dhcp-range=tag:ipcam,192.168.1.170,192.168.1.199,255.255.255.0,2m
    dhcp-range=tag:wemo,192.168.1.20,192.168.1.39,255.255.255.0,2m
     
    quant88, L&LD and Xentrk like this.