Debian Bullseye Netzwerk Interface eno1 ipv4 / v6

Althir81

Lieutenant
Registriert
Dez. 2002
Beiträge
537
Hallo Community,

ich betreibe inzwischen einen HP EliteDesk als Linux Server. Warum auch immer, hat sich mein eno1 Interface verabschiedet...
Ich kam, nach Hause, Client nicht mehr anpingbar. Nur durch das setzen einer statischen IP war er wieder zu erreichen....

Jetzt habe ich das interface wieder Standard konfiguriert...

Code:
# The primary network interface
allow-hotplug eno1
iface eno1 inet dhcp

nun erhält er folgendes....

Code:
ip addr show eno1
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether f8:b4:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
    altname enp0s31f6
    inet 10.10.1.242/24 brd 10.10.1.255 scope global noprefixroute eno1
       valid_lft forever preferred_lft forever
    inet 10.10.1.243/24 brd 10.10.1.255 scope global secondary dynamic eno1
       valid_lft 691172sec preferred_lft 691172sec

Ich benötige die .242 IP als default ebenso fehlt mir hier nun IPv6 dass ich per Prefix Delegation verteile.

Wie sollte ich vorgehen?! Die Flut an Informationen im WWW überfordert etwas....

Danke & Gruß
Oliver
 
Zuletzt bearbeitet:
wo exakt hast du das konfiguriert und wann und mit welchem release hast du Debian aufgesetzt?

was du da schreibst sieht stark nach /etc/network/interfaces aus - Debian nutzt jedoch inzwischen netplan als Config frontend.
zeig mal bitte die /etc/netplan/config.yaml

Das setzen einer statischen IP funktioniert so in netplan"
JSON:
network:
  version: 2
  renderer: networkd
  ethernets:
    eno1:
     dhcp4: no
     addresses: [192.168.1.222/24]
     gateway4: 192.168.1.1
     nameservers:
       addresses: [8.8.8.8,8.8.4.4]

So sieht die DHCP config aus:
JSON:
network:
  version: 2
  renderer: networkd
  ethernets:
    eno1:
      dhcp4: yes

und: wie sah das interace aus, als der server nicht mehr antwortete? Wer macht bei dir im Netz DHCP? hattest du evtl. auf einmal eine falsche IP auf dem Interface?

Was IPv6 Prefix delegation angeht: Wer soll den DHCP Server machen? Dein server oder jemand anders im netz - wie sieht da die config Serverseitig aus?
hier findest du eine ganz gute netplan loesung:
https://www.medo64.com/2020/07/ipv6-prefix-delegation-with-netplan/
 
  • Gefällt mir
Reaktionen: Malaclypse17
madmax2010 schrieb:
Debian nutzt jedoch inzwischen netplan als Config frontend.
Das wär mir neu.
Seit welcher Version soll das der Fall sein? Hast du für diese Behauptung eine Quelle?
 
  • Gefällt mir
Reaktionen: madmax2010
@up.whatever ARGH - du hast recht. Da habe ich mich selbst verarscht, weil es immer so ist wenn ich debian nutze.
Da Ubuntu es nutzt und ich YAML ohnehin uebrall nutze, lasse ich packer mein Debian Baseimage damit direkt bauen. Hab vergessen, dass ich das dort eingetragen hatte und irgendwie im Kopf, das Debian das nun von sich aus macht :)

@Althir81
Wie auch immer - Du hast da gerade den Server, der seine IPs via DHCP bekommt.
Soll das so, oder soll er statische haben?

wo ich gerade eh nochmal hier bin - deinen Satz zu IPV6 habe ich vorhin falsch verstanden. Mit der config, bekommst du so keine v6 adresse - sowas fehlt dir:
iface eno1 inet6 dhcp request_prefix 1
 
  • Gefällt mir
Reaktionen: PERKELE
Morgen,

Danke für den ersten Input.

Genau /etc/network/interfaces, wurde auf eine statische IP angepasst. Dann war er wieder erreichbar und ich habe den Ursprungszustand hergestellt.

JSON:
# The primary network interface
allow-hotplug eno1
iface eno1 inet dhcp

Netplan prüfe ich gleich einmal, das System wurde mit Bullseye vor ein paar Monaten aufgesetzt.

DHCP-Server: spielt eine Unifi Dreammachine Pro, diverse VLAN's, usw. Aber das fluppt für alle Clients.
IPv6 PD, macht die Dreammachine auch und funktioniert auch für alle konfigurierten VLAN Netzwerke.

Der Problem-Server hat seine IP durch den DHCP-Server erhalten, dort war eine feste IP für den Client definiert. Im Grunde ist es mir egal, ob eine feste konfiguriert hat oder über den DHCP.

Nachtrag: Die Netplan Config ist nicht vorhanden. (/etc/netplan/config.yaml)
Also bleibt es bei dem 2-Zeiler in der /etc/network/interfaces.

Aktuell würde ich sagen, ich lösche die 243er IP. Aber brauche dann noch IPv6 auf dem Interface.
Die anderen Interfaces (Docker-Container, besitzen IPv4 und IPv6 Adressen. Nur das "Host"-Interface eno1 nicht mehr...

Daher eine blöde Frage, einfach die Zeile um eine zweite ergänzen ?! Sollte doch so fluppen oder?

JSON:
source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

allow-hotplug eno1
iface eno1 inet dhcp
iface eno1 inet6 dhcp

Resultat: weiterhin keine IPv6 Adresse(n) auf dem Interface...

Gruß
Oliver
 
Zuletzt bearbeitet:
Ich würde inet6 nicht auf "dhcp" sondern auf "auto" setzen. Dann akzeptiert das Interface auch Router Advertisements.
 
  • Gefällt mir
Reaktionen: Althir81
riversource schrieb:
Ich würde inet6 nicht auf "dhcp" sondern auf "auto" setzen. Dann akzeptiert das Interface auch Router Advertisements.

JSON:
source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

auto eno1
iface eno1 inet dhcp
iface eno1 inet6 auto

auch keine IPv6 auf dem Interface...
Ergänzung ()

so.... der Network-Manager übernimmt wohl die Arbeit...
Anbei mal die Configdateien.... Jetzt die Frage was ist "falsch" :-)

Zum testen habe ich die zweite IP in der ersten Configdatei gelöscht, nach einem Neustart wieder da...
Diverse abfragen mittels nmcli, bringen mir auch keinen Hinweis...

1651564153357.png


1651564212818.png


Supervisor #1
JSON:
[connection]
id=Supervisor eno1
uuid=XXXXXXXXXXXXXXXXXXXXXX
type=ethernet
interface-name=eno1
llmnr=2
mdns=2
permissions=

[ethernet]
cloned-mac-address=preserve
mac-address-blacklist=

[ipv4]
address1=10.10.1.242/24,10.10.1.1
address2=10.10.1.243/24
dns-search=
method=manual

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=disabled

[proxy]

Supervisor #2
JSON:
[connection]
id=Supervisor eno1
uuid=XXXXXXXXXXXXXXXXX
type=ethernet
interface-name=eno1
llmnr=2
mdns=2
permissions=

[ethernet]
cloned-mac-address=preserve
mac-address-blacklist=

[ipv4]
address1=10.10.1.242/24,10.10.1.1
dns-search=
method=manual

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=disabled

[proxy]

Supervisor eno1.nmconnection
JSON:
%
[connection]
id=Supervisor eno1
uuid=XXXXXXXXXXXXXXX
type=ethernet
interface-name=eno1
llmnr=2
mdns=2
permissions=

[ethernet]
cloned-mac-address=preserve
mac-address-blacklist=

[ipv4]
dns-search=
method=disabled

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=auto

[proxy]
 
Zuletzt bearbeitet:
JSON:
root@ALTHIR-SERVER:/home/althir# nmcli connection show 'Supervisor eno1'
connection.id:                          Supervisor eno1
connection.uuid:                        651859fa-f1d6-46a8-a270-45a6ee1a356f
connection.stable-id:                   --
connection.type:                        802-3-ethernet
connection.interface-name:              eno1
connection.autoconnect:                 ja
connection.autoconnect-priority:        0
connection.autoconnect-retries:         -1 (default)
connection.multi-connect:               0 (default)
connection.auth-retries:                -1
connection.timestamp:                   1651567030
connection.read-only:                   nein
connection.permissions:                 --
connection.zone:                        --
connection.master:                      --
connection.slave-type:                  --
connection.autoconnect-slaves:          -1 (default)
connection.secondaries:                 --
connection.gateway-ping-timeout:        0
connection.metered:                     unbekannt
connection.lldp:                        default
connection.mdns:                        2 (yes)
connection.llmnr:                       2 (yes)
connection.wait-device-timeout:         -1
802-3-ethernet.port:                    --
802-3-ethernet.speed:                   0
802-3-ethernet.duplex:                  --
802-3-ethernet.auto-negotiate:          nein
802-3-ethernet.mac-address:             --
802-3-ethernet.cloned-mac-address:      preserve
802-3-ethernet.generate-mac-address-mask:--
802-3-ethernet.mac-address-blacklist:   --
802-3-ethernet.mtu:                     auto
802-3-ethernet.s390-subchannels:        --
802-3-ethernet.s390-nettype:            --
802-3-ethernet.s390-options:            --
802-3-ethernet.wake-on-lan:             default
802-3-ethernet.wake-on-lan-password:    --
ipv4.method:                            manual
ipv4.dns:                               --
ipv4.dns-search:                        --
ipv4.dns-options:                       --
ipv4.dns-priority:                      0
ipv4.addresses:                         10.10.1.242/24, 10.10.1.243/24
ipv4.gateway:                           10.10.1.1
ipv4.routes:                            --
ipv4.route-metric:                      -1
ipv4.route-table:                       0 (unspec)
ipv4.routing-rules:                     --
ipv4.ignore-auto-routes:                nein
ipv4.ignore-auto-dns:                   nein
ipv4.dhcp-client-id:                    --
ipv4.dhcp-iaid:                         --
ipv4.dhcp-timeout:                      0 (default)
ipv4.dhcp-send-hostname:                ja
ipv4.dhcp-hostname:                     --
ipv4.dhcp-fqdn:                         --
ipv4.dhcp-hostname-flags:               0x0 (none)
ipv4.never-default:                     nein
ipv4.may-fail:                          ja
ipv4.dad-timeout:                       -1 (default)
ipv4.dhcp-vendor-class-identifier:      --
ipv4.dhcp-reject-servers:               --
ipv6.method:                            disabled
ipv6.dns:                               --
ipv6.dns-search:                        --
ipv6.dns-options:                       --
ipv6.dns-priority:                      0
ipv6.addresses:                         --
ipv6.gateway:                           --
ipv6.routes:                            --
ipv6.route-metric:                      -1
ipv6.route-table:                       0 (unspec)
ipv6.routing-rules:                     --
ipv6.ignore-auto-routes:                nein
ipv6.ignore-auto-dns:                   nein
ipv6.never-default:                     nein
ipv6.may-fail:                          ja
ipv6.ip6-privacy:                       -1 (unknown)
ipv6.addr-gen-mode:                     stable-privacy
ipv6.ra-timeout:                        0 (default)
ipv6.dhcp-duid:                         --
ipv6.dhcp-iaid:                         --
ipv6.dhcp-timeout:                      0 (default)
ipv6.dhcp-send-hostname:                ja
ipv6.dhcp-hostname:                     --
ipv6.dhcp-hostname-flags:               0x0 (none)
ipv6.token:                             --
proxy.method:                           none
proxy.browser-only:                     nein
proxy.pac-url:                          --
proxy.pac-script:                       --
GENERAL.NAME:                           Supervisor eno1
GENERAL.UUID:                           651859fa-f1d6-46a8-a270-45a6ee1a356f
GENERAL.DEVICES:                        eno1
GENERAL.IP-IFACE:                       eno1
GENERAL.STATE:                          aktiviert
GENERAL.DEFAULT:                        ja
GENERAL.DEFAULT6:                       nein
GENERAL.SPEC-OBJECT:                    --
GENERAL.VPN:                            nein
GENERAL.DBUS-PATH:                      /org/freedesktop/NetworkManager/ActiveConnection/2
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/Settings/1
GENERAL.ZONE:                           --
GENERAL.MASTER-PATH:                    --
IP4.ADDRESS[1]:                         10.10.1.242/24
IP4.ADDRESS[2]:                         10.10.1.243/24
IP4.GATEWAY:                            10.10.1.1
IP4.ROUTE[1]:                           dst = 10.10.1.0/24, nh = 0.0.0.0, mt = 100
IP4.ROUTE[2]:                           dst = 10.10.1.0/24, nh = 0.0.0.0, mt = 100
IP4.ROUTE[3]:                           dst = 0.0.0.0/0, nh = 10.10.1.1, mt = 100

connection.id:                          Supervisor eno1
connection.uuid:                        2ed3e11b-2a4a-3653-a94e-f1a9620d82e8
connection.stable-id:                   --
connection.type:                        802-3-ethernet
connection.interface-name:              eno1
connection.autoconnect:                 ja
connection.autoconnect-priority:        0
connection.autoconnect-retries:         -1 (default)
connection.multi-connect:               0 (default)
connection.auth-retries:                -1
connection.timestamp:                   1651505985
connection.read-only:                   nein
connection.permissions:                 --
connection.zone:                        --
connection.master:                      --
connection.slave-type:                  --
connection.autoconnect-slaves:          -1 (default)
connection.secondaries:                 --
connection.gateway-ping-timeout:        0
connection.metered:                     unbekannt
connection.lldp:                        default
connection.mdns:                        2 (yes)
connection.llmnr:                       2 (yes)
connection.wait-device-timeout:         -1
802-3-ethernet.port:                    --
802-3-ethernet.speed:                   0
802-3-ethernet.duplex:                  --
802-3-ethernet.auto-negotiate:          nein
802-3-ethernet.mac-address:             --
802-3-ethernet.cloned-mac-address:      preserve
802-3-ethernet.generate-mac-address-mask:--
802-3-ethernet.mac-address-blacklist:   --
802-3-ethernet.mtu:                     auto
802-3-ethernet.s390-subchannels:        --
802-3-ethernet.s390-nettype:            --
802-3-ethernet.s390-options:            --
802-3-ethernet.wake-on-lan:             default
802-3-ethernet.wake-on-lan-password:    --
ipv4.method:                            disabled
ipv4.dns:                               --
ipv4.dns-search:                        --
ipv4.dns-options:                       --
ipv4.dns-priority:                      0
ipv4.addresses:                         --
ipv4.gateway:                           --
ipv4.routes:                            --
ipv4.route-metric:                      -1
ipv4.route-table:                       0 (unspec)
ipv4.routing-rules:                     --
ipv4.ignore-auto-routes:                nein
ipv4.ignore-auto-dns:                   nein
ipv4.dhcp-client-id:                    --
ipv4.dhcp-iaid:                         --
ipv4.dhcp-timeout:                      0 (default)
ipv4.dhcp-send-hostname:                ja
ipv4.dhcp-hostname:                     --
ipv4.dhcp-fqdn:                         --
ipv4.dhcp-hostname-flags:               0x0 (none)
ipv4.never-default:                     nein
ipv4.may-fail:                          ja
ipv4.dad-timeout:                       -1 (default)
ipv4.dhcp-vendor-class-identifier:      --
ipv4.dhcp-reject-servers:               --
ipv6.method:                            auto
ipv6.dns:                               --
ipv6.dns-search:                        --
ipv6.dns-options:                       --
ipv6.dns-priority:                      0
ipv6.addresses:                         --
ipv6.gateway:                           --
ipv6.routes:                            --
ipv6.route-metric:                      -1
ipv6.route-table:                       0 (unspec)
ipv6.routing-rules:                     --
ipv6.ignore-auto-routes:                nein
ipv6.ignore-auto-dns:                   nein
ipv6.never-default:                     nein
ipv6.may-fail:                          ja
ipv6.ip6-privacy:                       -1 (unknown)
ipv6.addr-gen-mode:                     stable-privacy
ipv6.ra-timeout:                        0 (default)
ipv6.dhcp-duid:                         --
ipv6.dhcp-iaid:                         --
ipv6.dhcp-timeout:                      0 (default)
ipv6.dhcp-send-hostname:                ja
ipv6.dhcp-hostname:                     --
ipv6.dhcp-hostname-flags:               0x0 (none)
ipv6.token:                             --
proxy.method:                           none
proxy.browser-only:                     nein
proxy.pac-url:                          --
proxy.pac-script:                       --

connection.id:                          Supervisor eno1
connection.uuid:                        87638fe9-ef45-4206-aec3-f50c15c493a6
connection.stable-id:                   --
connection.type:                        802-3-ethernet
connection.interface-name:              eno1
connection.autoconnect:                 ja
connection.autoconnect-priority:        0
connection.autoconnect-retries:         -1 (default)
connection.multi-connect:               0 (default)
connection.auth-retries:                -1
connection.timestamp:                   1651506167
connection.read-only:                   nein
connection.permissions:                 --
connection.zone:                        --
connection.master:                      --
connection.slave-type:                  --
connection.autoconnect-slaves:          -1 (default)
connection.secondaries:                 --
connection.gateway-ping-timeout:        0
connection.metered:                     unbekannt
connection.lldp:                        default
connection.mdns:                        2 (yes)
connection.llmnr:                       2 (yes)
connection.wait-device-timeout:         -1
802-3-ethernet.port:                    --
802-3-ethernet.speed:                   0
802-3-ethernet.duplex:                  --
802-3-ethernet.auto-negotiate:          nein
802-3-ethernet.mac-address:             --
802-3-ethernet.cloned-mac-address:      preserve
802-3-ethernet.generate-mac-address-mask:--
802-3-ethernet.mac-address-blacklist:   --
802-3-ethernet.mtu:                     auto
802-3-ethernet.s390-subchannels:        --
802-3-ethernet.s390-nettype:            --
802-3-ethernet.s390-options:            --
802-3-ethernet.wake-on-lan:             default
802-3-ethernet.wake-on-lan-password:    --
ipv4.method:                            manual
ipv4.dns:                               --
ipv4.dns-search:                        --
ipv4.dns-options:                       --
ipv4.dns-priority:                      0
ipv4.addresses:                         10.10.1.242/24
ipv4.gateway:                           10.10.1.1
ipv4.routes:                            --
ipv4.route-metric:                      -1
ipv4.route-table:                       0 (unspec)
ipv4.routing-rules:                     --
ipv4.ignore-auto-routes:                nein
ipv4.ignore-auto-dns:                   nein
ipv4.dhcp-client-id:                    --
ipv4.dhcp-iaid:                         --
ipv4.dhcp-timeout:                      0 (default)
ipv4.dhcp-send-hostname:                ja
ipv4.dhcp-hostname:                     --
ipv4.dhcp-fqdn:                         --
ipv4.dhcp-hostname-flags:               0x0 (none)
ipv4.never-default:                     nein
ipv4.may-fail:                          ja
ipv4.dad-timeout:                       -1 (default)
ipv4.dhcp-vendor-class-identifier:      --
ipv4.dhcp-reject-servers:               --
ipv6.method:                            disabled
ipv6.dns:                               --
ipv6.dns-search:                        --
ipv6.dns-options:                       --
ipv6.dns-priority:                      0
ipv6.addresses:                         --
ipv6.gateway:                           --
ipv6.routes:                            --
ipv6.route-metric:                      -1
ipv6.route-table:                       0 (unspec)
ipv6.routing-rules:                     --
ipv6.ignore-auto-routes:                nein
ipv6.ignore-auto-dns:                   nein
ipv6.never-default:                     nein
ipv6.may-fail:                          ja
ipv6.ip6-privacy:                       -1 (unknown)
ipv6.addr-gen-mode:                     stable-privacy
ipv6.ra-timeout:                        0 (default)
ipv6.dhcp-duid:                         --
ipv6.dhcp-iaid:                         --
ipv6.dhcp-timeout:                      0 (default)
ipv6.dhcp-send-hostname:                ja
ipv6.dhcp-hostname:                     --
ipv6.dhcp-hostname-flags:               0x0 (none)
ipv6.token:                             --
proxy.method:                           none
proxy.browser-only:                     nein
proxy.pac-url:                          --
proxy.pac-script:                       --

Anbei einmal die Settings von "Supervisor eno1"
Ergänzung ()

Vermute einmal die ipv6.method muss umgestellt werden...

von "nmtui" hätte ich gern schon einmal gewusst...
Hab es jetzt über nmcli gesetzt und mit nmtui überprüft...
Neustart und das interface hat wieder ipv6 adressen ... wohoo ;-)


Secondary IPv4 bekomme ich über nmtui nicht gelöscht -.-

https://linuxhint.com/restart_networking_debian_linux/
 
Zuletzt bearbeitet:
Zurück
Oben