… or it will end up like USB mess of standards:

USB Cable Salad of Madness – USB 3.0 and WiFi interference – Micro-USB USB-C mess has finally arrived


in general syntax is:

ifconfig <interface> <ip_address> netmask <netmask>
ip a add <ip_addr>/<mask> dev <interface>

let’s go then:

# become root
su - root
# install ifconfig legacy tool
apt update; apt install net-tools;
# checkout what interfaces exist
ip -c a
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000

# this will simply OVERWRITE the current ip setting of interface
# and test ping the system trying to be reached 3x times
while true; do ifconfig enp2s0 up; ip -c a; ping -c3; sleep 1; clear; done

# this will ADD additional "virtualinterface:0" fixed ip to interface
# so the interface will keep it's dhcp acquired ip plus the fixed ip, cool eh?
while true; do ifconfig enp2s0:0 up; ip -c a; ping -c3; sleep 1; clear; done

this kind of bruteforce way of overwriting things can also be done for DNS: (there should be only ONE config file to config this /etc/resolv.conf, keep the standard!)

GNU Linux – network config madness – the (ever changing) basics – how to (try to) set fixed & dynamic ip & dns per interface