Debian also now adopted netplan for network interface management
- after this #wtf moment (now all users have to re learn how to set ip addresses X-D) lets conf
- unless the device is a directly-to-internet-connecting-router for UNIX KISS (if it can be simplified, let’s simplify it) sake it is usually a good idea to switch of ipv6
how to set +fixed_ip +gateway +dns_servers +disable_ipv6
hostnamectl; # tested on
Static hostname: rockpie1
Operating System: Armbian 24.11.2 noble
Kernel: Linux 6.6.63-current-rockchip64
Architecture: arm64
su - root
apt install neofetch; # on this hardware
# check what interfaces are there
apt install lshw
lshw -class network
*-network:0
description: Ethernet interface
physical id: 9
logical name: end0
serial: 5e:4d:7e:a7:d2:95
size: 1Gbit/s
capacity: 1Gbit/s
capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=st_gmac driverversion=6.6.63-current-rockchip64 duplex=full ip=192.168.0.65 link=yes multicast=yes port=twisted pair speed=1Gbit/s
*-network:1
description: Ethernet interface
physical id: a
logical name: end1
serial: 5e:4d:7e:a7:d2:b5
capacity: 100Mbit/s
capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=st_gmac driverversion=6.6.63-current-rockchip64 link=no multicast=yes port=twisted pair
ip -c a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: end0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 5e:4d:7e:a7:d2:95 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.65/24 brd 192.168.0.255 scope global dynamic end0
valid_lft 84528sec preferred_lft 84528sec
inet6 fe80::5c4d:7eff:fea7:d295/64 scope link tentative <- ipv6
valid_lft forever preferred_lft forever
3: end1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 5e:4d:7e:a7:d2:b5 brd ff:ff:ff:ff:ff:ff
# check what config files are already there
find /etc -iname *yaml
# make backup
cp -rv /etc/netplan/00-default-use-network-manager.yaml /etc/netplan/00-default-use-network-manager.yaml.backup
# edit the config
vim /etc/netplan/00-default-use-network-manager.yaml
network:
ethernets:
#fixed ip for this interface
end0:
link-local: [ ipv4 ]
dhcp4: no
addresses: [192.168.0.65/24]
routes:
- to: default
via: 192.168.0.1
nameservers:
addresses: [192.168.0.1, 81.3.27.54, 1.1.1.1, 8.8.8.8]
version: 2
# one smart feature of netplan is try config
netplan try
Do you want to keep these settings?
Press ENTER before the timeout to accept the new configuration
Changes will revert in 112 seconds
# confirm ipv6 is gone
ip -c a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: end0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 5e:4d:7e:a7:d2:95 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.65/24 brd 192.168.0.255 scope global dynamic end0
valid_lft 84406sec preferred_lft 84406sec
3: end1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 5e:4d:7e:a7:d2:b5 brd ff:ff:ff:ff:ff:ff
Links:
- only together we can create a truly free world
- plz support dwaves to keep it up & running!
- (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
- really really hate advertisement
- contribute: whenever a solution was found, blog about it for others to find!
- talk about, recommend & link to this blog and articles
- thanks to all who contribute!