toot.wales is one of the many independent Mastodon servers you can use to participate in the fediverse.
We are the Mastodon social network for Wales and the Welsh, at home and abroad! Y rhwydwaith cymdeithasol annibynnol i Gymru, wedi'i bweru gan Mastodon!

Administered by:

Server stats:

679
active users

Giles Goat

.. what's the easiest way on a Debian linux to set the 'eth0' to a static IP ? .. I have the ethtool package and then net-tools pacakge installed .. basically I just want to give it a static IP, a subnet mask and a gateway/dns .. IPV4 .. so classic 192.168.0.xxx

@gilesgoat

You might be able do this directly in your router, I think, via the settings menus on it.

If that is the case, it would take zero tools on your computer, other than a browser. And it wouldn't matter what your OS was either.

Have you tried that?

@gilesgoat take down the interface, ifdown eth0, edit /etc/networking/interfaces, set your ip, gateway there, bring the interface back up, ifup eth0.

If your connection to the server is an ssh through eth0 (instead of a console) then I don't remember a way to do it.

@gilesgoat

controlling the interfaces from /etc/network/interfaces

wiki.debian.org/NetworkConfigu…

I also recommend to disable non-sensical systemshit NIC name...

unix.stackexchange.com/questio…

wiki.debian.orgNetworkConfiguration - Debian Wiki

@gilesgoat If you control the router, sometimes it is easiest to just configure your router to always assign the same IP address to the machine's MAC address. It used to be easier to do it on the machine itself but that's before they started using this netplan crap.

@gilesgoat Server or Desktop? I like the `ifupdown` method using `/etc/network/interfaces` file.

```
...
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.2/24
gateway 192.168.1.1
...
```

wiki.debian.org/NetworkConfigu

wiki.debian.orgNetworkConfiguration - Debian Wiki