Look in the config file for the DHCP server.
You should find something like this:
# Fixed IP addresses can also be specified for hosts.

Then, you can use the MAC address of the console and whatever IP you wish 
it to have.
Just be aware that the fixed IP has to be outside the DHCP range, so you'd 
have to edit the range when you assign the IP.

For me, I didn't do that as I've never seen a device get a completely 
different IP through normal expire/renew.
Especially if it the the only device on the network.

On Saturday, January 5, 2019 at 8:34:57 PM UTC-5, Zsolt Máté wrote:
>
> The issue is not the eth0, that I've reserved in my router.
> The problem could be the indoor unit, that connects to wlan0 and receives 
> the 10.*.*.* IP address.
>
> On Sunday, January 6, 2019 at 12:24:48 PM UTC+13, Scott Grayban wrote:
>>
>> Glad you got it working !!
>>
>> Most routers have reserve DHCP settings. So I'm sure yours does also.
>>
>> On Saturday, January 5, 2019 at 3:18:33 PM UTC-8, Zsolt Máté wrote:
>>>
>>> That's what I'm researching right now.
>>>
>>> On Sunday, January 6, 2019 at 12:11:31 PM UTC+13, Scott Grayban wrote:
>>>>
>>>> Use reserved DHCP then.
>>>>
>>>> On Saturday, January 5, 2019 at 3:09:42 PM UTC-8, Zsolt Máté wrote:
>>>>>
>>>>> If you're asking me, yes, I did. After reading your reply, I switched 
>>>>> to su and ran the command as root. Tanks for the tutorial.
>>>>>
>>>>> The only thing I don't like (but I can live with it) is the DHCP. In 
>>>>> case the indoor unit looses DC power for any reason, it may receive a new 
>>>>> IP address. Then someone has to either sniff the network for the new IP 
>>>>> or 
>>>>> log into the Pi to find it out.
>>>>>
>>>>> On Sunday, January 6, 2019 at 9:15:31 AM UTC+13, Scott Grayban wrote:
>>>>>>
>>>>>> Did you get it working ?
>>>>>>
>>>>>> On Friday, January 4, 2019 at 7:21:17 PM UTC-8, Zsolt Máté wrote:
>>>>>>>
>>>>>>> Thanks, I was running it with sudo.
>>>>>>>
>>>>>>> On Saturday, January 5, 2019 at 4:17:32 PM UTC+13, Scott Grayban 
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> Run that as root
>>>>>>>> On Jan 4, 2019, at 7:15 PM, "Zsolt Máté" <lop...@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>> I can't execute sudo iptables-save > /etc/iptables.ipv4.nat
>>>>>>>>> It returns:  -bash: /etc/iptables.ipv4.nat: Permission denied
>>>>>>>>>
>>>>>>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to