trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: April 2020

Re: [trinity-users] setting static ip in network

From: "Marvin Jones via trinity-users" <trinity-users@...>
Date: Sat, 18 Apr 2020 14:48:23 -0600 (MDT)
On Sat, 18 Apr 2020, Michael Howard via trinity-users wrote:

> On 18/04/2020 21:00, Marvin Jones via trinity-users wrote:
>> Years go by between the times I install a new Ubuntu/Trinty.
>> It is now time again -- this time to build a machine
>> to replace my wife's antique Win XP.
>>
>> I just did the install with Trinity's CD image Ubuntu 18.02/Trinity 14.07.
>>
>> I want to set a static IP for the box -- and get rid of the DHCP crap.
>>
>> All the searching either shows
>>
>> Make changes to the /etc/netplan yaml file
>> 	-- there isn't any - just an empty directory!
>>
>>  -or-
>>
>> "Click on top right network icon and select settings corresponding to
>> the network interface you wish to assign with the static IP address."
>> 	--- ya, well, this is Trinity.
>>
>> ..and, of course NONE of this resembles anything I remember from
>> hacking my Ubuntu 16.04 with Trinity from a WAY LONG time ago.
>>
>> Could someone please point me where to start?
>>
>> Thank you!
>> Jonesy
> Well, setting your ip isn't specifically a TDE job, more an OS task.
>
> If you wand a static IP, set it in the '/etc/network/interfaces' file. You can
> access it from the desktop if you wish but easier from the command line.
>
> Edit the file with your favourite editor. On the line for the interface you are
> interested in, change 'dhcp' to 'static' then add something like the following
> immediately after that line (but change to suit your network);
>
> address 192.168.1.5
> netmask 255.255.255.0
> gateway 192.168.1.254

It's never easy.....

 |bea@nix-bea:~$ cat /etc/network/interfaces
 |# interfaces(5) file used by ifup(8) and ifdown(8)
 |auto lo
 |iface lo inet loopback
 |bea@nix-bea:~$

Do you mean add at the bottom:

dhcp static
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.254

... using my network's values....?

Jonesy