:: Re: [DNG] Refracta have a static IP
Top Page
Delete this message
Reply to this message
Author: Ralph Ronnquist
Date:  
To: dng
Subject: Re: [DNG] Refracta have a static IP
On Tue, 13 Jul 2021 16:41:06 -0400
Steve Litt <slitt@???> wrote:

> Hi all,
>
> I'm trying to make my new Chimera based Refracta have a static IP
> address at 192.168.0.199/24, in order that every other computer on the
> 192.168.0.0/24 subnet can easily access it, and so I can put it on my
> LAN DNS.
>
> So I made my /etc/network/interfaces look like the following, which
> follows the guidelines of "man interfaces":
>
> =======================================
> auto lo
> iface lo inet loopback
>
> allow-hotplug eth0
> iface eth0 inet static
> address 192.168.0.199
> gateway 192.168.0.1
> =======================================
>
> Unfortunately, instead of the IP address being 192.168.0.199, it's a
> DHCP supplied 192.168.0.204 . What additional steps must I take to get
> my desired 192.168.0.199?
>
> Additional note: When I used 192.168.0.40, which I KNOW is not in my
> leased DHCP range, the result was the same. What must I do to get a
> static IP at 192.168.0.199/24 ?


Maybe you didn't uninstall connman? It has a default setup to use DHCP
for the Ethernet cable, and that's presumably what is helpful here.

According to the connmanctl man page you may reconfigure connman
either to ignore eth0 (which it calls Ethernet_46ea672351_cable, or
something like that), or to use static IP for it.

As far as I can gather, connman calls it a "service", and you would
inspect current operational state with "connmanctl services", followed
by "connmanct services Ethernet_46ea672351_cable" to hone in on its
setup for eth0 (note the name).

Then there is the alternative of purging connman and stay with
ifupdown; if I were to try to advice you, then that would be it.

Ralph.