Posted: Fri Sep 14, 2018 0:27 Post subject: Assign different IP ranges for eth and wifi
I've a netgear WNDR4000 with latest DD-WRT firmware. My scenario is: only 1 host will connect with ethernet, all other hosts will connect via wifi. I want to assign static IP to eth host. I won't know what will be host's MAC address. I'm using dnsmasq with this config:
But it doesn't work. For wifi it assign correct range ip, for eth it always gives me 192.168.0.27.
I tried br0 or using interface=* before each dhcp-range command. I restarted dnsmasq service as well, but it didn't work!
I don't want to change anything on host pc, I was wondering if I could assign a static IP with dnsmasq.
1. You could create a new bridge in Setup>>Networking.
2. Then allocate the ethernet to this bridge. Give the bridge a new subnet IP like 192.168.2.1
3. At the bottom of the same page, under DHCPD - give a start IP address (eg 192.168.2.50) and under max, type 1. This means the DHCPD will allocate only one IP address.
Joined: 18 Mar 2014 Posts: 12834 Location: Netherlands
Posted: Mon Sep 17, 2018 16:47 Post subject:
That wiki is rather old a lot can be done via the GUI nowadays and DDWRT is in most cases smart enough so that you do not need all those firewall rules (less is more )
That wiki is rather old a lot can be done via the GUI nowadays and DDWRT is in most cases smart enough so that you do not need all those firewall rules (less is more )
But that is only necessary if you are using the router as a Wireless Access Point
That is there ... 4th line.
I did not separate the br0 and br1 here because that has no purpose. He probably will need to access the router from this LAN port.