On OpenWRT, you can assign the same IP to two different MAC addresses, i.e. when using a computer with both WiFi and ethernet.
Is this possible on Gargoyle?
Assigning same IP to different MAC addresses?
Moderator: Moderators
Re: Assigning same IP to different MAC addresses?
It should be possible, althrough not from web interface.
Look here:
http://wiki.openwrt.org/doc/uci/dhcp#st ... s.hot.swap
Look here:
http://wiki.openwrt.org/doc/uci/dhcp#st ... s.hot.swap
Re: Assigning same IP to different MAC addresses?
Thanks for that.
I've looked at the site and I really have no idea how I would configure it. Can you help me out perhaps?
I've looked at the site and I really have no idea how I would configure it. Can you help me out perhaps?
Re: Assigning same IP to different MAC addresses?
It should be the same procedure you would use on Openwrt.AlecR wrote:Thanks for that.
I've looked at the site and I really have no idea how I would configure it. Can you help me out perhaps?
if you manage to do it on Openwrt, you should be able to do that on Gargoyle in the same way.
Eric Wong
PM me if you need to buy Gargoyle router in Australia/NZ, willing to pay me to help you on your Gargoyle configurations or build custom configured ROM with pre-installed app or try to fix your bricked router. Yes, I am looking for job/work.
PM me if you need to buy Gargoyle router in Australia/NZ, willing to pay me to help you on your Gargoyle configurations or build custom configured ROM with pre-installed app or try to fix your bricked router. Yes, I am looking for job/work.
Re: Assigning same IP to different MAC addresses?
I would have no idea how to do it on OpenWRT either (even after looking at the site you linked). Can you help me out? 

Re: Assigning same IP to different MAC addresses?
You can use these commands:AlecR wrote:I would have no idea how to do it on OpenWRT either (even after looking at the site you linked). Can you help me out?
Code: Select all
uci add dhcp host
uci set dhcp.@host[-1].name=example-host
uci set dhcp.@host[-1].mac="00:a0:24:5a:33:69 00:11:22:33:44:55"
uci set dhcp.@host[-1].ip=192.168.1.230
uci commit
/etc/init.d/dnsmasq restart
Re: Assigning same IP to different MAC addresses?
Thanks a lot 
I don't suppose you know how to set custom DNS servers for only one client, without needing to set the DNS manually on said client? I.e. a DHCP-assigned custom DNS for only one client?

I don't suppose you know how to set custom DNS servers for only one client, without needing to set the DNS manually on said client? I.e. a DHCP-assigned custom DNS for only one client?
Re: Assigning same IP to different MAC addresses?
It is possible by using iptables. Assign it a static IP address.AlecR wrote:Thanks a lot
I don't suppose you know how to set custom DNS servers for only one client, without needing to set the DNS manually on said client? I.e. a DHCP-assigned custom DNS for only one client?
Code: Select all
iptables -t nat -A PREROUTING -s 4.4.4.4 -p udp --dport 53 -j DNAT --to 8.8.8.8
iptables -t nat -A PREROUTING -s 4.4.4.4 -p tcp --dport 53 -j DNAT --to 8.8.8.8
Report back
