-1

I have two running machines That I want to communicate between with an ethernet cable.

machine A)

ethtool -i eth2
driver: nvethernet
version: 5.10.192-tegra
firmware-version: 
expansion-rom-version: 
bus-info: 6810000.ethernet
supports-statistics: yes
supports-test: yes
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no
Settings for eth2:
    Supported ports: [ ]
    Supported link modes:   100baseT/Half 100baseT/Full 
                            1000baseT/Full 
                            1000baseKX/Full 
                            10000baseT/Full 
                            10000baseKX4/Full 
                            10000baseKR/Full 
                            2500baseT/Full 
                            5000baseT/Full 
    Supported pause frame use: Symmetric Receive-only
    Supports auto-negotiation: Yes
    Supported FEC modes: Not reported
    Advertised link modes:  100baseT/Half 100baseT/Full 
                            1000baseT/Full 
                            1000baseKX/Full 
                            10000baseT/Full 
                            10000baseKX4/Full 
                            10000baseKR/Full 
                            2500baseT/Full 
                            5000baseT/Full 
    Advertised pause frame use: Symmetric Receive-only
    Advertised auto-negotiation: Yes
    Advertised FEC modes: Not reported
    Link partner advertised link modes:  10baseT/Half 10baseT/Full 
                                         100baseT/Half 100baseT/Full 
    Link partner advertised pause frame use: No
    Link partner advertised auto-negotiation: Yes
    Link partner 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: 0x00000000 (0)
                   
    Link detected: yes

5: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 3c:6d:66:02:c4:6f brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.101/24 brd 192.168.2.255 scope global noprefixroute eth2
       valid_lft forever preferred_lft forever
    inet 192.168.2.101/32 scope global eth2
       valid_lft forever preferred_lft forever

And machine B)

ethtool -i eth0
driver: nvethernet
version: 5.15.136-rt-tegra
firmware-version: 
expansion-rom-version: 
bus-info: 6800000.ethernet
supports-statistics: yes
supports-test: yes
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no
Settings for eth0:
    Supported ports: [  ]
    Supported link modes:   100baseT/Half 100baseT/Full
                            1000baseT/Full
                            10000baseT/Full
                            1000baseKX/Full
                            10000baseKX4/Full
                            10000baseKR/Full
                            2500baseT/Full
                            5000baseT/Full
    Supported pause frame use: Symmetric Receive-only
    Supports auto-negotiation: Yes
    Supported FEC modes: Not reported
    Advertised link modes:  100baseT/Half 100baseT/Full
                            1000baseT/Full
                            10000baseT/Full
                            1000baseKX/Full
                            10000baseKX4/Full
                            10000baseKR/Full
                            2500baseT/Full
                            5000baseT/Full
    Advertised pause frame use: Symmetric Receive-only
    Advertised auto-negotiation: Yes
    Advertised FEC modes: Not reported
    Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                         100baseT/Half 100baseT/Full
    Link partner advertised pause frame use: Symmetric Receive-only
    Link partner advertised auto-negotiation: Yes
    Link partner advertised FEC modes: Not reported
    Speed: 100Mb/s
    Duplex: Full
    Auto-negotiation: on
    Port: Twisted Pair
    PHYAD: 0
    Transceiver: external
    MDI-X: Unknown
netlink error: Operation not permitted
        Current message level: 0x00000000 (0)
                              
    Link detected: yes

5: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1466 qdisc mq state UP group default qlen 1000
    link/ether 48:b0:2d:a5:1a:d2 brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.102/24 brd 192.168.2.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet 192.168.2.102/32 scope global eth0
       valid_lft forever preferred_lft forever

They are both connected to a passive switch. I can't ping from A to B and the other way. also running Nmap on each of them tells me they do not know each other. what am I missing here?

edit: machine A)

Distributor ID: Ubuntu
Description:    Ubuntu 22.04.4 LTS
Release:    22.04
Codename:   jammy

machine B)

Distributor ID: Ubuntu
Description:    Ubuntu 20.04.6 LTS
Release:    20.04
Codename:   focal

I tried using a crossover cable but it didn't work so I thought a switch would do the trick

The end goal is to expose both to a DDS interface but for now, I would like to achieve a ping from machine A to B and back without connecting them to a router

New contributor
Gilad Klos is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
4
  • 1
    What is the OS and version of each machine? Do you know if these machines may need a cross over cable for this to work? Why the switch? Please edit the question and add this info. Please do not answer via a comment.
    – David
    Commented 2 days ago
  • 1
    what are you actually trying to achieve? This is not clear from you question. Please read How to Ask then edit accordingly.
    – graham
    Commented yesterday
  • As the interface on machine A is eth2, the machine probably has other network interfaces too. Did you check if address spaces on multiple interfaces don't overlap with each other? Also you didn't include the speed/duplex parameters in ethtool output. Are they set correctly?
    – raj
    Commented yesterday
  • I have a PCIE with ethernet slots and made sure they are set correctly.
    – Gilad Klos
    Commented yesterday

0

You must log in to answer this question.

Browse other questions tagged .