N
nikr
Guest
Is it possible to change hostnames for Guest clients using YazFi?
Just an FYI if following those directions (from the YazFi Github Wiki post). If one has a problem with the static/fixed IP address not being assigned to the YazFi client(s). Reverse the [DESIRED HOSTNAME],[DESIRED IP ADDRESS] so it's [DESIRED IP ADDRESS],[DESIRED HOSTNAME] and see if that fixes the issue.Seems like I found the solution while reading about something else.
<snip>
#!/bin/sh
source /usr/sbin/helper.sh
CONFIG=$1
#Set IP reservation
pc_append "dhcp-host=AB:CD:EF:12:34:56,set:AB:CD:EF:12:34:56,192.168.5.101,devive1" $CONFIG
#Set Hostname
pc_append "dhcp-host=AB:CD:EF:12:34:56,device1" $CONFIG
pc_append "dhcp-host=AC:63:BE:5A:B5:28,192.168.6.10,AmazonEcho" $CONFIG
#!/bin/sh
CONFIG=$1
source /usr/sbin/helper.sh
pc_append "dhcp-host=AC:63:BE:5A:B5:28,192.168.6.10,AmazonEcho" $CONFIG
cat /jffs/addons/YazFi.d/.dnsmasq >> /etc/dnsmasq.conf # YazFi
#Set IP reservation
pc_append "dhcp-host=AB:CD:EF:12:34:56,set:AB:CD:EF:12:34:56,192.168.5.101,device1" $CONFIG
#Set Hostname
pc_append "dhcp-host=AB:CD:EF:12:34:56,device1" $CONFIG
cat /jffs/addons/YazFi.d/.dnsmasq >> /etc/dnsmasq.conf # YazFi
chmod +xxx /jffs/scripts/dnsmasq.postconf
interface=wl0.3
dhcp-range=wl0.3,10.20.31.2,10.20.31.254,255.255.255.0,86400s
dhcp-option=wl0.3,3,10.20.31.1
dhcp-option=wl0.3,6,10.20.30.11,10.20.30.22
YazFi generally doesn't define or assign a client's hostname. It simply pulls that information from the underlying system (dnsmasq). One can change those hostnames so the system uses the user defined name. One way to do so with YazFi is to assign YazFi clients manual IP addresses using theI have Yazfi installed and I am not sure where it is getting the Hostnames from.
/jffs/scripts/dnsmasq.postconf
file. See the following for more information on how to set manual reservations for YazFi clients:YazFi generally doesn't define or assign a client's hostname. It simply pulls that information from the underlying system (dnsmasq). One can change those hostnames so the system uses the user defined name. One way to do so with YazFi is to assign YazFi clients manual IP addresses using the/jffs/scripts/dnsmasq.postconf
file. See the following for more information on how to set manual reservations for YazFi clients:
https://github.com/jackyaz/YazFi/wi...verse-DNS-records#a-note-on-dhcp-reservations
https://www.snbforums.com/threads/y...inc-ssid-vpn-client.45924/page-32#post-473403
Have you checked the device themselves (if IoT devices check via their app)? Its possible the device itself is assigning the name your seeing. Its also possible there is some left over bits being picked up by the router if you moved houses and didn't reset the router when setting it up at the new house and configuring new names.Thanks for the info I am just confused as to where it is getting the names from. They are Unique names that I used in my old house.
WeMo - Living Room Light 1 for example. I know I did set up that name in the past just can't figure out where or what file I put it in.
Have you checked the device themselves (if IoT devices check via their app)? Its possible the device itself is assigning the name your seeing. Its also possible there is some left over bits being picked up by the router if you moved houses and didn't reset the router when setting it up at the new house and configuring new names.
I did but I removed them awhile ago after installing YazFi. I am wondering if that is where they are stuck? is there a file I can check to see or just in GUI. I remember manually adding these to a file a long time ago but can't remember where for the life of me.Did you previously assign manual IP addresses to these devices via the DHCP Server page? If so are they still there? If they are, you could try removing them, applying the setting change, rebooting the router to see if the hostnames change (or are removed).
One place to check for static DHCP reservations (assumes you are not using YazDHCP) isI did but I removed them awhile ago after installing YazFi. I am wondering if that is where they are stuck? is there a file I can check to see or just in GUI. I remember manually adding these to a file a long time ago but can't remember where for the life of me.
Before I installed YazFi I had assigned manual IP addresses to all my devices.
/jffs/nvram/dhcp_staticlist
file and /jffs/nvram/custom_clientlist
file using SSH.nvram show 2>/dev/null | grep "dhcp_staticlist="
and nvram show 2>/dev/null | grep "custom_clientlist="
.Thakns but no luck, I ran "nano /jffs/nvram/dhcp_staticlist" and the file was blank.One place to check for static DHCP reservations (assumes you are not using YazDHCP) is/jffs/nvram/dhcp_staticlist
file and/jffs/nvram/custom_clientlist
file using SSH.
Another place to look is in the NVRAM to see if anything is saved there. Via SSH issue a command like the following:nvram show 2>/dev/null | grep "dhcp_staticlist="
andnvram show 2>/dev/null | grep "custom_clientlist="
.
Post edit
See my post edit above, there are two other places to check, custom clients.Thakns but no luck, I ran "nano /jffs/nvram/dhcp_staticlist" and the file was blank.
ran the second commad and nothing happened.
i Wasn't using YazDHCP but I did install it to see if that would fix anyting.One place to check for static DHCP reservations (assumes you are not using YazDHCP) is/jffs/nvram/dhcp_staticlist
file and/jffs/nvram/custom_clientlist
file using SSH.
Another place to look is in the NVRAM to see if anything is saved there. Via SSH issue a command like the following:nvram show 2>/dev/null | grep "dhcp_staticlist="
andnvram show 2>/dev/null | grep "custom_clientlist="
.
Post edit
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!