[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bookworm and network connections



On 2023-09-01, D. R. Evans wrote:

> The machine has two ethernet ports, which used to be eth0 and eth1 in the old
> days, but are now magically called "Wired connection enp11s0(eth0)" and "Wired
> connection enp12s0(eth1)".

If you want old names put in /etc/default/grub

GRUB_CMDLINE_LINUX="net.ifnames=0"

(add other parameters if you have some)
and do update-grub

> zserver# nmcli networking connectivity
> full

network manager is good for changing networks. For a server the network
must not change normally. So you could put configuration in
/etc/network/interfaces.d/ with something like :

auto enp11s0
iface enp11s0 inet static
   mtu 1500
   metric 101
   address 209.97.232.18/24
   netmask 255.255.255.0
   gateway 209.97.232.1

auto enp12s0
iface enp12s0 inet static
   mtu 1500
   metric 100
   address 192.168.0.1/24
   netmask 255.255.0.0

auto lo
iface lo inet loopback

I you want IPv6 add :

iface enp11s0 inet6 auto
iface enp12s0 inet6 auto

Once it works you can then remove network manager


Reply to: