fabiosantos
19-02-2005, 16:08
Hey folks,
I've been looking for a way to have some static ip hosts on dnsmasq, but it seems that this method changed since 1.7.x.x.
In order to use static leases/hosts you will need to perform this steps:
1. Connect to router using telnet;
2. Write the static hosts count & entries to the flash (use /etc/hosts format)
nvram set etc_hosts=3
nvram set etc_hosts0="192.168.1.1 wl500g"
nvram set etc_hosts1="192.168.1.2 laptop"
nvram set etc_hosts2="192.168.1.3 foo"
I'm not planning to use dhcp just some entries on /etc/hosts !!!
Someone know how to do this?
Fábio.
Ps: I'm using 1.9.2.7-3c
I've been looking for a way to have some static ip hosts on dnsmasq, but it seems that this method changed since 1.7.x.x.
In order to use static leases/hosts you will need to perform this steps:
1. Connect to router using telnet;
2. Write the static hosts count & entries to the flash (use /etc/hosts format)
nvram set etc_hosts=3
nvram set etc_hosts0="192.168.1.1 wl500g"
nvram set etc_hosts1="192.168.1.2 laptop"
nvram set etc_hosts2="192.168.1.3 foo"
I'm not planning to use dhcp just some entries on /etc/hosts !!!
Someone know how to do this?
Fábio.
Ps: I'm using 1.9.2.7-3c