| InHisName | I just rebooted and machine came up with NEW IP address 192.168.101.107 it used to be 106. How to tell dhcp to use 106 and NOT make it static ? | 06:39 |
|---|---|---|
| JonathanD | InHisName: create a reservation | 10:19 |
| rmg51 | Morning | 10:27 |
| JonathanD | Morning rmg51 | 10:50 |
| rmg51 | o/ | 11:15 |
| teddy-dbear | Morning peoples, dogs, turkeys, hamsters and everything else | 13:05 |
| InHisName | JonathanD: it uses something called dnsmasq but cannot find notes on creating reservation. Guide me to where to find instructions. The word reservation is not in man page dnsmasq | 13:06 |
| rmg51 | https://help.ubuntu.com/community/Dnsmasq | 13:29 |
| * InHisName asks for forgiveness in first asking a question rather than the standard 'good morning'. | 13:29 | |
| teddy-dbear | no | 13:38 |
| === Pici` is now known as Pici | ||
| InHisName | does dnsmasq support reservations ? | 14:00 |
| === InHisName is now known as HowdyDoody | ||
| === InHisName1 is now known as InHisName | ||
| InHisName | I managed somehow to force dnsmasq to use 106 instead of 107. | 15:05 |
| InHisName | Stopped service, edit dnsmasq.leases file and canged 107 to 106 saved it. Then started service again. Booted the 106 machine. It got it. | 15:06 |
| InHisName | I googled til the turnips bled, but never saw those kinds of notes. | 15:07 |
| InHisName | Did I cheat something or other ? | 15:07 |
| JonathanD | InHisName: where did you find .leases? | 15:08 |
| InHisName | Now I have 192.1368.101.106 and all is working great once again. | 15:08 |
| InHisName | /var/db/dhcmasq.leases was linked to /mnt/kd/dhcmasq.leases. I changed that one. It seems to re-write an update to it every few minutes. So I stopped dnsmasq, made chages, saved. Then started it again. | 15:10 |
| JonathanD | huh. | 15:11 |
| JonathanD | I don't know about dnsmasq, but .leases is generally a generated file. | 15:11 |
| JonathanD | so your change will eventually be thrown away. | 15:11 |
| InHisName | It's on my 'router' an astlinux system | 15:11 |
| InHisName | Seems to be generated all the time, but appears to be read once when starting. | 15:12 |
| InHisName | It's been over 15 minutes, I'll check it now to see what's changed in .leases file | 15:12 |
| JonathanD | InHisName: it'll still be wiped out eventually. | 15:13 |
| JonathanD | so it'll break again. | 15:13 |
| JonathanD | you need to edit dnsmasq.conf | 15:13 |
| JonathanD | # Always allocate the host with Ethernet address 11:22:33:44:55:66 | 15:13 |
| JonathanD | # The IP address 192.168.0.60 | 15:13 |
| JonathanD | #dhcp-host=11:22:33:44:55:66,192.168.0.60 | 15:13 |
| === argv_tur1 is now known as argv_turk | ||
| InHisName | It has re-witten the file once a minute. Each time STILL has the 192.168.101.106 and it appears to NOT be changing back to the bogus 107 number. the IP of this machine is still 192.168.101.106 also. | 15:18 |
| InHisName | Looks to me that dnsmasq reads the last written .leases file for its starup and goes with what it read in. | 15:19 |
| JonathanD | InHisName: .leases is a state file. | 15:21 |
| JonathanD | InHisName: it's where dnsmasq writes it's states... the reason it reads it on startup is to get back into the orig state on restart. | 15:21 |
| JonathanD | InHisName: but when the lease expires, and your box asks for a new ip, it may or may not give it the same one unless you set the config file to do so. | 15:22 |
| InHisName | It was maintaning 106 for 6-8 years. Then with this power outage for 38 hours. It changed it. I think I forced to back to stay. | 15:24 |
| JonathanD | *shrugs* until the next power outage. | 15:25 |
| InHisName | What command to use to see the time remaining on the lease ? | 15:25 |
| JonathanD | usually you'll get the same ip if you still have it when yours expires. | 15:25 |
| JonathanD | whihc is why a power outage can break things, if it's down past the expire point. | 15:25 |
| InHisName | That's what I am hoping | 15:25 |
| JonathanD | InHisName: if it's not in the leases I'm not sure. | 15:26 |
| JonathanD | InHisName: if you set it in the config file, though, it will always get the same ip, no matter what. | 15:26 |
| InHisName | It is NOT static | 15:26 |
| JonathanD | that wouldn't make it static, just statically assigned dhcp. | 15:27 |
| JonathanD | it just means when such and such mac addy asks for an address, always give them the same one. | 15:27 |
| InHisName | I changed the startup script to do 71 hours instead of 24. No clue in ifconfig | 15:27 |
| InHisName | getting the same one, life is good..... | 15:28 |
| JonathanD | InHisName: you'll be fine unless the box is down longer than that | 15:39 |
| HowdyDoody | Windows shows lease obtained and expires with ipconfig, but ifconfig apparently does not. Is there commd to see lease obtained and expiry ? | 16:28 |
| square-r00t | grep -iHnR dhc /var/log/* | 17:42 |
| InHisName | 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 | 21:21 |
| InHisName | sdfl'gjkasdf;lkgfjasd | 21:21 |
| InHisName | asd | 21:21 |
| InHisName | fasd | 21:21 |
| InHisName | gkladfglk'zdhjfg | 21:21 |
| * waltman waves to InHisName's cat | 21:22 | |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!