/srv/irclogs.ubuntu.com/2014/02/17/#ubuntu-us-pa.txt

InHisNameI 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
JonathanDInHisName: create a reservation10:19
rmg51Morning10:27
JonathanDMorning rmg5110:50
rmg51o/11:15
teddy-dbearMorning peoples, dogs, turkeys, hamsters and everything else13:05
InHisNameJonathanD: 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 dnsmasq13:06
rmg51https://help.ubuntu.com/community/Dnsmasq13:29
* InHisName asks for forgiveness in first asking a question rather than the standard 'good morning'.13:29
teddy-dbearno13:38
=== Pici` is now known as Pici
InHisNamedoes dnsmasq support reservations ?14:00
=== InHisName is now known as HowdyDoody
=== InHisName1 is now known as InHisName
InHisNameI managed somehow to force dnsmasq to use 106 instead of 107.15:05
InHisNameStopped 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
InHisNameI googled til the turnips bled, but never saw those kinds of notes.15:07
InHisNameDid I cheat something or other ?15:07
JonathanDInHisName: where did you find .leases?15:08
InHisNameNow 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
JonathanDhuh.15:11
JonathanDI don't know about dnsmasq, but .leases is generally a generated file.15:11
JonathanDso your change will eventually be thrown away.15:11
InHisNameIt's on my 'router' an astlinux system15:11
InHisNameSeems to be generated all the time, but appears to be read once when starting.15:12
InHisNameIt's been over 15 minutes, I'll check it now to see what's changed in .leases file15:12
JonathanDInHisName: it'll still be wiped out eventually.15:13
JonathanDso it'll break again.15:13
JonathanDyou need to edit dnsmasq.conf15:13
JonathanD# Always allocate the host with Ethernet address 11:22:33:44:55:6615:13
JonathanD# The IP address 192.168.0.6015:13
JonathanD#dhcp-host=11:22:33:44:55:66,192.168.0.6015:13
=== argv_tur1 is now known as argv_turk
InHisNameIt 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
InHisNameLooks to me that dnsmasq reads the last written .leases file for its starup and goes with what it read in.15:19
JonathanDInHisName: .leases is a state file.15:21
JonathanDInHisName: 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
JonathanDInHisName: 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
InHisNameIt 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
InHisNameWhat command to use to see the time remaining on the lease ?15:25
JonathanDusually you'll get the same ip if you still have it when yours expires.15:25
JonathanDwhihc is why a power outage can break things, if it's down past the expire point.15:25
InHisNameThat's what I am hoping15:25
JonathanDInHisName: if it's not in the leases I'm not sure.15:26
JonathanDInHisName: if you set it in the config file, though, it will always get the same ip, no matter what.15:26
InHisNameIt is NOT static15:26
JonathanDthat wouldn't make it static, just statically assigned dhcp.15:27
JonathanDit just means when such and such mac addy asks for an address, always give them the same one.15:27
InHisNameI changed the startup script to do 71 hours instead of 24.   No clue in ifconfig15:27
InHisNamegetting the same one, life is good.....15:28
JonathanDInHisName: you'll be fine unless the box is down longer than that15:39
HowdyDoodyWindows shows lease obtained and expires with ipconfig, but ifconfig apparently does not.  Is there commd to see lease obtained and expiry ?16:28
square-r00tgrep -iHnR dhc /var/log/*17:42
InHisName11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111121:21
InHisNamesdfl'gjkasdf;lkgfjasd21:21
InHisNameasd21:21
InHisNamefasd21:21
InHisNamegkladfglk'zdhjfg21:21
* waltman waves to InHisName's cat21:22

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!