[gons@phoenix ~]$ ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=0.022 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=0.021 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=64 time=0.034 ms
64 bytes from 192.168.0.1: icmp_seq=4 ttl=64 time=0.021 ms
^C
--- 192.168.0.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3052ms
rtt min/avg/max/mdev = 0.021/0.024/0.034/0.005 ms

Fehlermeldung:

[gons@phoenix ~]$ ping 192.168.0.2
PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
^C
--- 192.168.0.2 ping statistics ---
21 packets transmitted, 0 received, 100% packet loss, time 20264ms

[gons@phoenix ~]$ 

Deiner Beschreibung nach sieht dein Netzwerkaufbau wie folgt aus:

Internet
 └─ (W-LAN) Router
     └─ Linux PC              {192.168.0.1}
         └─ Netzwerkdrucker   {192.168.0.2}

Ich würde den Netzwerkdrucker direkt an den (W-LAN) Router anschließen, und diesem im Router eine statische IP zuweisen.

Internet
 └─ (W-LAN) Router
     ├─ Linux PC          {192.168.0.1}
     └─ Netzwerkdrucker   {192.168.0.2}

Ich habe keinen (W-LAN) Router.
Mein Rechner (Linux PC) hat zwei Netzwerkanschlüsse:
enp3s0 (mit der Adresse 192.168.0.1)
enp4s0 (mit der Adresse 192.166.0.3)
An den Anschluss enp3s0 ist das Netzwerkkabel vom Drucker mit der Adresse 192.168.0.2 angeschlossen.

Für die direkte Verbindung zwischen zwei Netwerk-Devices brauchst du entweder ein spezielles Crossover-Kabel, oder beide Devices müssen Auto-MDI/MDI-X unterstützen (ab Gigabit-Karten wohl Standard, kann mit dem Tool ethtool vom gleichnamigen Paket abgefragt werden, z.B.: ethtool enp3s0 Setting für MDI_X. Bei meiner Gigabit-Karte wird dort Unknown angezeigt, ggf. weil eben kein Crossover-Status besteht).

Ping:
Funktioniert der Ping unter Angabe des richtigen Devices? Also:
ping -I enp3s0 192.168.0.2
(großes i)
Ein Ping ohne diese Angabe dürfte über die andere Karte rausgehen und dann bei deinem Router/Switch landen.

Du müßtest dauerhaft also eine eigene Host-Route zur Drucker-IP über enp3s0 hinzufügen.
Falls der Drucker an deinem PC auch von anderen Rechnern im LAN erreichbar sein soll dann mußt du noch ip_forwarding für ipv4 zulassen (Status mit: sysctl net.ipv4.ip_forward, Ändern auch mittels sysctl).

[gons@phoenix etc]$ ethtool enp3s0
Settings for enp3s0:
	Supported ports: [ TP ]
	Supported link modes:   10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	                        1000baseT/Half 1000baseT/Full
	Supported pause frame use: No
	Supports auto-negotiation: Yes
	Supported FEC modes: Not reported
	Advertised link modes:  10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	                        1000baseT/Half 1000baseT/Full
	Advertised pause frame use: No
	Advertised auto-negotiation: No
	Advertised FEC modes: Not reported
	Speed: Unknown!
	Duplex: Unknown! (255)
	Auto-negotiation: on
	Port: Twisted Pair
	PHYAD: 0
	Transceiver: internal
	MDI-X: Unknown
netlink error: Operation not permitted
        Current message level: 0x000000ff (255)
                               drv probe link timer ifdown ifup rx_err tx_err
	Link detected: no
[gons@phoenix etc]$ 

[gons@phoenix ~]$ ping -I enp3s0 192.168.0.2
PING 192.168.0.2 (192.168.0.2) from 192.168.0.1 enp3s0: 56(84) bytes of data.
From 192.168.0.1 icmp_seq=1 Destination Host Unreachable
From 192.168.0.1 icmp_seq=2 Destination Host Unreachable
From 192.168.0.1 icmp_seq=3 Destination Host Unreachable
^C
--- 192.168.0.2 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4060ms
pipe 3
[gons@phoenix ~]$

Das Drucken funktioniert auf OpenSuSE 15.0 und auf Ubuntu 18.04, auf OpenSuSE 15.4 und Ubuntu 20.04 dagegen nicht. Das Netzwerk-Verbindungkabel zw. Linux PC und Drucker müsste daher das richtige sein.

schard wie ist die exakte Netzwerkkonfiguration (Netzwerke, Routen, etc.) von deinem Computer und dem Drucker?

...

Wie @schard anmerkte kann es nicht schaden, mal die Ausgaben von:

ip a
ip l
ip r

zusehen. Wobei ich die Ursache auf einem anderen Layer vermute.

Laut ethtool besteht kein Link zwischen beiden Geräten, quasi wie "Kabel ab". Die beiden können sich nicht verständigen bzw. aushandeln was gemeinsamer Nenner ist. Ohne das (auf MAC-Adressen-Ebene) kein Ping oder Drucken.

Unter den funktionierenden Linuxen: Es wird die gleiche Konfiguration (also Kabel, Netzkarten) verwendet ohne etwas zu ändern? Dann wären obige Grund-Netzwerkkonfigs von einem von beiden auch noch mal interessant.
Weiterhin: von diesen Systemen kann der Drucker auch angepingt werden?
Ist ethtool auf einem der Systeme verfügbar bzw. installierbar? Dann wäre die Ausgabe für die Netzkarte an die der Drucker hängt auch noch mal wichtig zum Vergleich.

Auch nochmal: Auf den ebenfalls nicht funktionierenden Suse/Ubuntu-Versionen: klappt dort ebenfalls kein Ping und hat ethtool dort die gleiche Ausgabe (also kein Link)?

//Edit: Bitte auch nochmal zum Vergleich jeweils von einem der funktionierenden Systeme und dem aktuellen Archlinux:
lspci -v | grep Ethernet -A 8

Konfiguration des Druckers in Firefox:

localhost:631
AppSocket/HP JetDirect -> socet://192.168.0.2:9100

Konfiguration des Druckers mit system-config-printer:
bloss bei Ubuntu 18.04 und OpenSuSE 15.0 wird der Netzwerkdrucker gefunden.

[gons@phoenix etc]$ ip 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: enp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:23:54:44:61:ff brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.3/32 scope global enp4s0
       valid_lft forever preferred_lft forever
3: enp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether 00:23:54:44:63:08 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.1/32 scope global enp3s0
       valid_lft forever preferred_lft forever
4: enp0s29f7u5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:1e:10:1f:00:00 brd ff:ff:ff:ff:ff:ff
    inet 192.168.8.107/24 brd 192.168.8.255 scope global dynamic noprefixroute enp0s29f7u5
       valid_lft 82201sec preferred_lft 82201sec
    inet6 2a02:3038:414:a983:10:2030:4050:2/128 scope global dynamic noprefixroute 
       valid_lft 6454sec preferred_lft 2854sec
    inet6 2a02:3038:414:a983:9656:161e:7406:8015/64 scope global dynamic noprefixroute 
       valid_lft 7151sec preferred_lft 3551sec
    inet6 fe80::574a:62d2:9356:17df/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
[gons@phoenix etc]$ ip l
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 00:23:54:44:61:ff brd ff:ff:ff:ff:ff:ff
3: enp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:23:54:44:63:08 brd ff:ff:ff:ff:ff:ff
4: enp0s29f7u5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 00:1e:10:1f:00:00 brd ff:ff:ff:ff:ff:ff
[gons@phoenix etc]$ ip r
default via 192.168.8.1 dev enp0s29f7u5 proto dhcp src 192.168.8.107 metric 100 
192.168.8.0/24 dev enp0s29f7u5 proto kernel scope link src 192.168.8.107 metric 100 
[gons@phoenix etc]$ 
  • GerBra hat auf diesen Beitrag geantwortet.

    ArchLinux

    [gons@phoenix ~]$ ping 192.168.0.1
    PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
    64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=0.021 ms
    64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=0.027 ms
    --- 192.168.0.1 ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 1027ms
    rtt min/avg/max/mdev = 0.021/0.024/0.027/0.003 ms
    [gons@phoenix ~]$ ping 192.168.0.3
    PING 192.168.0.3 (192.168.0.3) 56(84) bytes of data.
    --- 192.168.0.3 ping statistics ---
    2 packets transmitted, 0 received, 100% packet loss, time 1026ms
    
    [gons@phoenix ~]$ ping 192.168.0.2
    PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
    --- 192.168.0.2 ping statistics ---
    3 packets transmitted, 0 received, 100% packet loss, time 2036ms
    
    [gons@phoenix ~]$ ethtool enp3s0
    Settings for enp3s0:
    	Supported ports: [ TP ]
    	Supported link modes:   10baseT/Half 10baseT/Full
    	                        100baseT/Half 100baseT/Full
    	                        1000baseT/Half 1000baseT/Full
    	Supported pause frame use: No
    	Supports auto-negotiation: Yes
    	Supported FEC modes: Not reported
    	Advertised link modes:  10baseT/Half 10baseT/Full
    	                        100baseT/Half 100baseT/Full
    	                        1000baseT/Half 1000baseT/Full
    	Advertised pause frame use: No
    	Advertised auto-negotiation: No
    	Advertised FEC modes: Not reported
    	Speed: Unknown!
    	Duplex: Unknown! (255)
    	Auto-negotiation: on
    	Port: Twisted Pair
    	PHYAD: 0
    	Transceiver: internal
    	MDI-X: Unknown
    netlink error: Operation not permitted
            Current message level: 0x000000ff (255)
                                   drv probe link timer ifdown ifup rx_err tx_err
    	Link detected: no
    [gons@phoenix ~]$ ethtool enp4s0
    Settings for enp4s0:
    	Supported ports: [ TP ]
    	Supported link modes:   10baseT/Half 10baseT/Full
    	                        100baseT/Half 100baseT/Full
    	                        1000baseT/Half 1000baseT/Full
    	Supported pause frame use: No
    	Supports auto-negotiation: Yes
    	Supported FEC modes: Not reported
    	Advertised link modes:  10baseT/Half 10baseT/Full
    	                        100baseT/Half 100baseT/Full
    	                        1000baseT/Half 1000baseT/Full
    	Advertised pause frame use: No
    	Advertised auto-negotiation: No
    	Advertised FEC modes: Not reported
    	Speed: 100Mb/s
    	Duplex: Full
    	Auto-negotiation: on
    	Port: Twisted Pair
    	PHYAD: 0
    	Transceiver: internal
    	MDI-X: Unknown
    netlink error: Operation not permitted
            Current message level: 0x000000ff (255)
                                   drv probe link timer ifdown ifup rx_err tx_err
    	Link detected: yes
    [gons@phoenix ~]$ lspci -v|grep Ethernet -A 8
    03:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)
    	Subsystem: ASUSTeK Computer Inc. Motherboard
    	Flags: bus master, fast devsel, latency 0, IRQ 27
    	Memory at fe9fc000 (64-bit, non-prefetchable) [size=16K]
    	I/O ports at c800 \[size=256]
    	Expansion ROM at fe9c0000 [disabled] [size=128K]
    	Capabilities: <access denied>
    	Kernel driver in use: sky2
    	Kernel modules: sky2
    04:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)
    	Subsystem: ASUSTeK Computer Inc. Motherboard
    	Flags: bus master, fast devsel, latency 0, IRQ 26
    	Memory at feafc000 (64-bit, non-prefetchable) [size=16K]
    	I/O ports at d800 \[size=256]
    	Expansion ROM at feac0000 [disabled] [size=128K]
    	Capabilities: <access denied>
    	Kernel driver in use: sky2
    	Kernel modules: sky2
    [gons@phoenix ~]$

    OpenSuSE 15.0

    gons@linux-3gyz:~> ping 192.168.0.1                
    PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
    64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=0.054 ms
    64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=0.078 ms
    --- 192.168.0.1 ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 1011ms
    rtt min/avg/max/mdev = 0.054/0.066/0.078/0.012 ms
    gons@linux-3gyz:~> ping 192.168.0.3
    PING 192.168.0.3 (192.168.0.3) 56(84) bytes of data.
    --- 192.168.0.3 ping statistics ---
    2 packets transmitted, 0 received, 100% packet loss, time 1029ms
    
    gons@linux-3gyz:~> ping 192.168.0.2
    PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
    64 bytes from 192.168.0.2: icmp_seq=1 ttl=64 time=6.92 ms
    64 bytes from 192.168.0.2: icmp_seq=2 ttl=64 time=6.13 ms
    --- 192.168.0.2 ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 1000ms
    rtt min/avg/max/mdev = 6.139/6.533/6.927/0.394 ms
    gons@linux-3gyz:~> sudo ethtool eth0                    
    [sudo] Passwort für root: 
    Settings for eth0:
            Supported ports: [ TP ]
            Supported link modes:   10baseT/Half 10baseT/Full 
                                    100baseT/Half 100baseT/Full 
                                    1000baseT/Half 1000baseT/Full 
            Supported pause frame use: No
            Supports auto-negotiation: Yes
            Advertised link modes:  10baseT/Half 10baseT/Full 
                                    100baseT/Half 100baseT/Full 
                                    1000baseT/Half 1000baseT/Full 
            Advertised pause frame use: No
            Advertised auto-negotiation: No
            Speed: 100Mb/s
            Duplex: Full
            Port: Twisted Pair
            PHYAD: 0
            Transceiver: internal                                                                                 
            Auto-negotiation: on                                                                                  
            MDI-X: Unknown                                                                                        
            Supports Wake-on: pg                                                                                  
            Wake-on: d                                                                                            
            Current message level: 0x000000ff (255)                                                               
                                   drv probe link timer ifdown ifup rx_err tx_err                                 
            Link detected: yes                                                                                    
    gons@linux-3gyz:~> sudo ethtool eth1                                                         
    Settings for eth1:                                                                                            
            Supported ports: [ TP ]                                                                               
            Supported link modes:   10baseT/Half 10baseT/Full                                                     
                                    100baseT/Half 100baseT/Full                                                   
                                    1000baseT/Half 1000baseT/Full                                                 
            Supported pause frame use: No                                                                         
            Supports auto-negotiation: Yes                                                                        
            Advertised link modes:  10baseT/Half 10baseT/Full                                                     
                                    100baseT/Half 100baseT/Full                                                   
                                    1000baseT/Half 1000baseT/Full                                                 
            Advertised pause frame use: No                                                                        
            Advertised auto-negotiation: No                                                                       
            Speed: Unknown!                                                                                       
            Duplex: Unknown! (255)                                                                                
            Port: Twisted Pair                                                                                    
            PHYAD: 0                                                                                              
            Transceiver: internal
            Auto-negotiation: on
            MDI-X: Unknown
            Supports Wake-on: pg
            Wake-on: d
            Current message level: 0x000000ff (255)
                                   drv probe link timer ifdown ifup rx_err tx_err
            Link detected: no
    gons@linux-3gyz:~> sudo lspci -v|grep Ethernet -A 8
    03:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)
            Subsystem: ASUSTeK Computer Inc. Motherboard
            Flags: bus master, fast devsel, latency 0, IRQ 31
            Memory at fe9fc000 (64-bit, non-prefetchable) [size=16K]
            I/O ports at c800 \[size=256]
            Expansion ROM at fe9c0000 [disabled] [size=128K]
            Capabilities: [48] Power Management version 3
            Capabilities: [50] Vital Product Data
            Capabilities: [5c] MSI: Enable+ Count=1/1 Maskable- 64bit+
    04:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)
            Subsystem: ASUSTeK Computer Inc. Motherboard
            Flags: bus master, fast devsel, latency 0, IRQ 30
            Memory at feafc000 (64-bit, non-prefetchable) [size=16K]
            I/O ports at d800 \[size=256]
            Expansion ROM at feac0000 [disabled] [size=128K]
            Capabilities: [48] Power Management version 3
            Capabilities: [50] Vital Product Data
            Capabilities: [5c] MSI: Enable+ Count=1/1 Maskable- 64bit+
    gons@linux-3gyz:~>

    OpenSuSE 15.4

    gons@localhost:~> ping 192.168.0.1
    PING 192.168.0.1 (192.168.0.1) 56(84) Bytes an Daten.
    64 Bytes von 192.168.0.1: icmp_seq=1 ttl=64 Zeit=0.089 ms
    64 Bytes von 192.168.0.1: icmp_seq=2 ttl=64 Zeit=0.064 ms
    --- 192.168.0.1 ping-Statistik ---
    2 Pakete übertragen, 2 empfangen, 0% packet loss, time 1029ms
    rtt min/avg/max/mdev = 0.064/0.076/0.089/0.012 ms
    gons@localhost:~> ping 192.168.0.3
    PING 192.168.0.3 (192.168.0.3) 56(84) Bytes an Daten.
    --- 192.168.0.3 ping-Statistik ---
    2 Pakete übertragen, 0 empfangen, 100% packet loss, time 1006ms
    
    gons@localhost:~> ping 192.168.0.2
    PING 192.168.0.2 (192.168.0.2) 56(84) Bytes an Daten.
    --- 192.168.0.2 ping-Statistik ---
    2 Pakete übertragen, 0 empfangen, 100% packet loss, time 1021ms
    
    gons@localhost:~> sudo ethtool eth0
    [sudo] Passwort für root:
    Settings for eth0:
            Supported ports: [ TP ]
            Supported link modes:   10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Half 1000baseT/Full
            Supported pause frame use: No
            Supports auto-negotiation: Yes
            Supported FEC modes: Not reported
            Advertised link modes:  10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Half 1000baseT/Full
            Advertised pause frame use: No
            Advertised auto-negotiation: No
            Advertised FEC modes: Not reported
            Speed: 100Mb/s
            Duplex: Full
            Auto-negotiation: on
            Port: Twisted Pair
            PHYAD: 0
            Transceiver: internal
            MDI-X: Unknown
            Supports Wake-on: pg
            Wake-on: d
            Current message level: 0x000000ff (255)
                                   drv probe link timer ifdown ifup rx_err tx_err
            Link detected: yes
    gons@localhost:~> sudo ethtool eth1
    Settings for eth1:
            Supported ports: [ TP ]
            Supported link modes:   10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Half 1000baseT/Full
            Supported pause frame use: No
            Supports auto-negotiation: Yes
            Supported FEC modes: Not reported
            Advertised link modes:  10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Half 1000baseT/Full
            Advertised pause frame use: No
            Advertised auto-negotiation: No
            Advertised FEC modes: Not reported
            Speed: Unknown!
            Duplex: Unknown! (255)
            Auto-negotiation: on
            Port: Twisted Pair
            PHYAD: 0
            Transceiver: internal
            MDI-X: Unknown
            Supports Wake-on: pg
            Wake-on: d
            Current message level: 0x000000ff (255)
                                   drv probe link timer ifdown ifup rx_err tx_err
            Link detected: no
    gons@localhost:~> sudo lspci -v|grep Ethernet -A 8
    03:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)
            Subsystem: ASUSTeK Computer Inc. Motherboard
            Flags: bus master, fast devsel, latency 0, IRQ 27
            Memory at fe9fc000 (64-bit, non-prefetchable) [size=16K]
            I/O ports at c800 \[size=256]
            Expansion ROM at fe9c0000 [disabled] [size=128K]
            Capabilities: [48] Power Management version 3
            Capabilities: [50] Vital Product Data
            Capabilities: [5c] MSI: Enable+ Count=1/1 Maskable- 64bit+
    04:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)
            Subsystem: ASUSTeK Computer Inc. Motherboard
            Flags: bus master, fast devsel, latency 0, IRQ 26
            Memory at feafc000 (64-bit, non-prefetchable) [size=16K]
            I/O ports at d800 \[size=256]
            Expansion ROM at feac0000 [disabled] [size=128K]
            Capabilities: [48] Power Management version 3
            Capabilities: [50] Vital Product Data
            Capabilities: [5c] MSI: Enable+ Count=1/1 Maskable- 64bit+
    gons@localhost:~>

    Ubuntu 18.04

    gons@phoenix:~$ ping 192.168.0.1
    PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
    64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=0.031 ms
    64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=0.029 ms
    --- 192.168.0.1 ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 1015ms
    rtt min/avg/max/mdev = 0.029/0.030/0.031/0.001 ms
    gons@phoenix:~$ ping 192.168.0.2
    PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
    64 bytes from 192.168.0.2: icmp_seq=1 ttl=64 time=6.09 ms
    64 bytes from 192.168.0.2: icmp_seq=2 ttl=64 time=6.12 ms
    64 bytes from 192.168.0.2: icmp_seq=3 ttl=64 time=6.09 ms
    --- 192.168.0.2 ping statistics ---
    3 packets transmitted, 3 received, 0% packet loss, time 2002ms
    rtt min/avg/max/mdev = 6.096/6.106/6.127/0.091 ms
    gons@phoenix:~$ ping 192.168.0.3
    PING 192.168.0.3 (192.168.0.3) 56(84) bytes of data.
    64 bytes from 192.168.0.3: icmp_seq=1 ttl=64 time=0.031 ms
    64 bytes from 192.168.0.3: icmp_seq=2 ttl=64 time=0.019 ms
    --- 192.168.0.3 ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 1002ms
    rtt min/avg/max/mdev = 0.019/0.025/0.031/0.006 ms
    gons@phoenix:~$ ethtool enp3s0
    Settings for enp3s0:
    	Supported ports: [ TP ]
    	Supported link modes:   10baseT/Half 10baseT/Full 
    	                        100baseT/Half 100baseT/Full 
    	                        1000baseT/Half 1000baseT/Full 
    	Supported pause frame use: No
    	Supports auto-negotiation: Yes
    	Supported FEC modes: Not reported
    	Advertised link modes:  10baseT/Half 10baseT/Full 
    	                        100baseT/Half 100baseT/Full 
    	                        1000baseT/Half 1000baseT/Full 
    	Advertised pause frame use: No
    	Advertised auto-negotiation: No
    	Advertised FEC modes: Not reported
    	Speed: Unknown!
    	Duplex: Unknown! (255)
    	Port: Twisted Pair
    	PHYAD: 0
    	Transceiver: internal
    	Auto-negotiation: on
    	MDI-X: Unknown
    Cannot get wake-on-lan settings: Operation not permitted
    	Current message level: 0x000000ff (255)
    			       drv probe link timer ifdown ifup rx_err tx_err
    	Link detected: no
    gons@phoenix:~$ ethtool enp4s0
    Settings for enp4s0:
    	Supported ports: [ TP ]
    	Supported link modes:   10baseT/Half 10baseT/Full 
    	                        100baseT/Half 100baseT/Full 
    	                        1000baseT/Half 1000baseT/Full 
    	Supported pause frame use: No
    	Supports auto-negotiation: Yes
    	Supported FEC modes: Not reported
    	Advertised link modes:  10baseT/Half 10baseT/Full 
    	                        100baseT/Half 100baseT/Full 
    	                        1000baseT/Half 1000baseT/Full 
    	Advertised pause frame use: No
    	Advertised auto-negotiation: No
    	Advertised FEC modes: Not reported
    	Speed: 100Mb/s
    	Duplex: Full
    	Port: Twisted Pair
    	PHYAD: 0
    	Transceiver: internal
    	Auto-negotiation: on
    	MDI-X: Unknown
    Cannot get wake-on-lan settings: Operation not permitted
    	Current message level: 0x000000ff (255)
    			       drv probe link timer ifdown ifup rx_err tx_err
    	Link detected: yes
    gons@phoenix:~$ lspci -v|grep Ethernet -A 8
    03:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)
    	Subsystem: ASUSTeK Computer Inc. Motherboard
    	Flags: bus master, fast devsel, latency 0, IRQ 26
    	Memory at fe9fc000 (64-bit, non-prefetchable) [size=16K]
    	I/O ports at c800 \[size=256]
    	Expansion ROM at fe9c0000 [disabled] [size=128K]
    	Capabilities: <access denied>
    	Kernel driver in use: sky2
    	Kernel modules: sky2
    04:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)
    	Subsystem: ASUSTeK Computer Inc. Motherboard
    	Flags: bus master, fast devsel, latency 0, IRQ 25
    	Memory at feafc000 (64-bit, non-prefetchable) [size=16K]
    	I/O ports at d800 \[size=256]
    	Expansion ROM at feac0000 [disabled] [size=128K]
    	Capabilities: <access denied>
    	Kernel driver in use: sky2
    	Kernel modules: sky2
    gons@phoenix:~$ 

    @vmp Code-Blöcke hier im Forum bitte in drei einzelne Backticks (```) jeweils vor und nach dem Codeblock auf einer eigenen Zeile einfügen – oder erst den Codeblock einfügen, diesen dann markieren, und dann erst den Code-Button im Editor drücken. Wenn man den Code-Button vorher drückt, können nur einzelne Codezeilen und keine Code-Blöcke benutzt werden.

    Ich hab das bei deinem vorherigen Post mal korrigiert 🙂

    vmp

    Ok, hier zeigt ip a und ip l daß das Device enp3s0 nicht aktiviert ist: state DOWN
    Es hat zwar eine IP-Adresse, aber da es DOWN ist existiert auch keine Route zum 192.168.0/24 Netzsegment.

    Im ersten Post schriebst du:

    vmp Die Netzwerkkarte mit der am Linux PC mit dem Netzwerkkabel verbunden ist, kann ich aktivieren mit:
    sudo ip address add 192.168.0.1 broadcast + dev enp3s0

    Ändere daß mal zu:

    sudo ip link set enp3s0 up
    sudo ip address add 192.168.0.1 broadcast + dev enp3s0
    sudo ip route add 192.168.0.2 via 192.168.0.1 dev enp3s0

    Funktioniert dann der Ping auf den Drucker?

    Aus den anderen Infos wissen wir:
    a) Der Drucker antwortet auf ICMP (also Ping)
    b) ethtool ist zum Detektieren von Linkstatus ggf. nicht brauchbar, v.a. da nicht ersichtlich ist (MAC-Adresse) was bei den unterschiedlichen Systemen nun enp3s0/enp4s0 bzw. eth0/eth1 ist. Das kann sich je nach Bootvorgang auch ändern, gerade bei zwei identischen Netzkarten.
    Aber beim funktionierenden OpenSuse15 wird bei ethtool für eth0 zumindest ein aktiver Link gezeigt, wahrscheinlich entspricht eth0 dort der enp3s0 auf Archlinux/Ubuntu. Allerdings zeigt bei Ubuntu 18.04 keinen Link für enp3s0. Kurz:
    die besten Infos zum Vergleich kriegen wir mit ip a, ip l, ip r da man da die MAC-Adressen hat um ggf. festzustellen: Würfelt das System beim Booten (bzw. zwischen Systemen) die Netzkarten am gleichen Bus durcheinander.

    Was du nochmal erklären könntest:
    Welche Funktion hat die andere Netzkarte enp4s0, der du ja eine andere IP - aber aus dem gleichen Subnet 192.168.0/24 zuweist?
    Was/Woher kommt enp0s29f7u5 mit dem Segment 192.168.8.x, was ja als Default-Route bei dir agiert, also wohl deine Verbindung zum Internet darstellt.

    Probiere das oben mit dem UP-setzen des Devices und dem Erstellen der Route mal aus und poste danach bitte nochmal

    ip a
    ip l
    ip r

    Ebenfalls bitte die gleichen Befehle von einem der funktionierenden Systeme, vorzugsweise von Ubuntu 18.04 da dort die Devicebezeichner gleich sind. Aber auch Suse 15 wäre ok.

    Du hast eine 32'er Subnetmask gesetzt, sollte es nicht 31 bei zwei Teilnehmern sein?

    @drcux : Da hast du wohl auch recht. Wenn beide Devices im gleichen Subnet aktiv sein sollen müßte es jeweils 255.255.255.254 = 31 sein IMHO....

    Nach ausführen von (dabei habe ich die ip falsch eingegeben):
    sudo ip route add 169.254.0.2 dev enp3s0
    ging
    ping 192.168.0.2
    als ich das Netzwerkkabel in die zweite Netzwerkkarte eingesteckt habe (anscheinend enp3s0) konnte ich an den Drucker einen Auftrag verschicken. Leider ist es zu einem Papierstau gekommen aufgrund dessen, dass der Toner geschmiert hat. Dadurch ist jetzt der Drucker unbrauchbar, kein experimentieren mehr möglich. Das Blatt Papier lies sich nicht vollständig aus der Trommel (Fixiereinheit) entfernen.

    enp4s0 ist für Drucker, enp3s0 ist für QNAP NAS.

    enp0s29f7u5 müsste HUAWEI E3372 LTE USB Stick sein.

    enp4s0 erster Netzwerkanschluß

    [gons@phoenix etc]$ sudo ip address add 192.168.0.3 broadcast + dev enp4s0
    [gons@phoenix etc]$ ping 192.168.0.3
    PING 192.168.0.3 (192.168.0.3) 56(84) bytes of data.
    64 bytes from 192.168.0.3: icmp_seq=1 ttl=64 time=0.024 ms
    64 bytes from 192.168.0.3: icmp_seq=2 ttl=64 time=0.019 ms
    64 bytes from 192.168.0.3: icmp_seq=3 ttl=64 time=0.014 ms
    ^C
    --- 192.168.0.3 ping statistics ---
    3 packets transmitted, 3 received, 0% packet loss, time 2030ms
    rtt min/avg/max/mdev = 0.014/0.019/0.024/0.004 ms
    [gons@phoenix etc]$ sudo ip route add 192.168.0.2 via 192.168.0.3 dev enp4s0
    [gons@phoenix etc]$ ping 192.168.0.2
    PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
    64 bytes from 192.168.0.2: icmp_seq=1 ttl=64 time=6.89 ms
    64 bytes from 192.168.0.2: icmp_seq=2 ttl=64 time=6.13 ms
    64 bytes from 192.168.0.2: icmp_seq=3 ttl=64 time=6.11 ms
    ^C
    --- 192.168.0.2 ping statistics ---
    3 packets transmitted, 3 received, 0% packet loss, time 2003ms
    rtt min/avg/max/mdev = 6.112/6.378/6.892/0.363 ms
    [gons@phoenix etc]$ 

    enp3s0 zweiter Netwerkanschluß

    [gons@phoenix etc]$ sudo ip address add 192.168.0.1 broadcast + dev enp3s0
    [gons@phoenix etc]$ ping 192.168.0.1
    PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
    64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=0.023 ms
    64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=0.037 ms
    64 bytes from 192.168.0.1: icmp_seq=3 ttl=64 time=0.024 ms
    64 bytes from 192.168.0.1: icmp_seq=4 ttl=64 time=0.023 ms
    ^C
    --- 192.168.0.1 ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3038ms
    rtt min/avg/max/mdev = 0.023/0.026/0.037/0.006 ms
    [gons@phoenix etc]$ sudo ip route add 192.168.0.2 via 192.168.0.1 dev enp3s0
    [gons@phoenix etc]$ ping 192.168.0.2
    PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
    64 bytes from 192.168.0.2: icmp_seq=1 ttl=64 time=6.88 ms
    64 bytes from 192.168.0.2: icmp_seq=2 ttl=64 time=6.13 ms
    64 bytes from 192.168.0.2: icmp_seq=3 ttl=64 time=6.12 ms
    64 bytes from 192.168.0.2: icmp_seq=4 ttl=64 time=6.11 ms
    64 bytes from 192.168.0.2: icmp_seq=5 ttl=64 time=6.12 ms
    64 bytes from 192.168.0.2: icmp_seq=6 ttl=64 time=6.13 ms
    ^C
    --- 192.168.0.2 ping statistics ---
    6 packets transmitted, 6 received, 0% packet loss, time 5007ms
    rtt min/avg/max/mdev = 6.108/6.247/6.883/0.284 ms
    [gons@phoenix etc]$

    OpenSuSE 15.4 erster Netzwerkanschluß eth0

    gons@localhost:~> sudo ip route add 192.168.0.2 via 192.168.0.1 dev eth0
    gons@localhost:~> ping 192.168.0.2PING 192.168.0.2 (192.168.0.2) 56(84) Bytes an Daten.
    64 Bytes von 192.168.0.2: icmp_seq=1 ttl=64 Zeit=6.91 ms
    64 Bytes von 192.168.0.2: icmp_seq=2 ttl=64 Zeit=6.12 ms
    64 Bytes von 192.168.0.2: icmp_seq=3 ttl=64 Zeit=6.14 ms
    64 Bytes von 192.168.0.2: icmp_seq=4 ttl=64 Zeit=6.13 ms
    ^C
    --- 192.168.0.2 ping-Statistik ---
    4 Pakete übertragen, 4 empfangen, 0% packet loss, time 3004ms
    rtt min/avg/max/mdev = 6.122/6.326/6.906/0.334 ms
    gons@localhost:~>

    OpenSuSE zweiter Netzwerkanschluß eth1

    gons@localhost:~> sudo ip route add 192.168.0.2 via 192.168.0.3 dev eth1
    [sudo] Passwort für root:
    gons@localhost:~> ping 192.168.0.2PING 192.168.0.2 (192.168.0.2) 56(84) Bytes an Daten.
    64 Bytes von 192.168.0.2: icmp_seq=1 ttl=64 Zeit=6.93 ms
    64 Bytes von 192.168.0.2: icmp_seq=2 ttl=64 Zeit=6.13 ms
    64 Bytes von 192.168.0.2: icmp_seq=3 ttl=64 Zeit=6.16 ms
    ^C
    --- 192.168.0.2 ping-Statistik ---
    3 Pakete übertragen, 3 empfangen, 0% packet loss, time 2003ms
    rtt min/avg/max/mdev = 6.130/6.405/6.929/0.370 ms
    gons@localhost:~>
    • GerBra hat auf diesen Beitrag geantwortet.

      vmp enp4s0 ist für Drucker, enp3s0 ist für QNAP NAS.

      Weiter oben war enp3s0 das Device für Crossover/Drucker...
      Aber du hast ja gemerkt, daß es wohl den der fehlenden Route und dem fehlenden "UP state" für das Device gelegen hat.

      Zwei Tips noch, wenn du das Projekt noch weiterverfolgen willst:
      a) ethtool bietet eine Option, mit der die Netzwerk-LED an der Karte angeschaltet werden kann um eben den "richtigen, gewollten" Anschluß zu identifizieren.
      b) Bei mehreren Netzdevices (die ggf. auch noch wechseln können in der Benamung und zwischen diversen Systemen) bietet sich an, diesen feste eigene Namen anhand der MAC-Adresse zu geben. Das kann an allen Systemen geschehen und du bräuchtest dann z.B. nur eine einzige "Konfigurations-Anweisung" für alle Systeme. Hier wird eine Möglichkeit aufgezeigt:
      https://wiki.archlinux.org/title/Network_interface#Change_interface_name
      So könnte eben ein Device "crossover" heißen, daß andere "qnap". Solche "sprechenden" Devicenamen machen das Verwalten (ähnlich wie Partitions/Filesystem-Labels) um etliches einfacher und sicherer.

      vmp hat das Thema gelöst hinzugefügt ().