0

Can anyone shed light here? Do I have a misconfiguration or a misunderstanding?

I have three interfaces on this one machine. Here is the address table from the ip command:

 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
     inet 127.0.0.1/8 scope host lo
 2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
     inet 192.168.0.123/24 brd 192.168.0.255 scope global enp0s3
 3: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
     inet 192.168.56.123/24 brd 192.168.56.255 scope global enp0s8
 5: usbwifi01: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
     inet 192.168.0.127/24 brd 192.168.0.255 scope global usbwifi01

I can ssh into the machine through any of the IP addresses, I can successfully ping the addresses, but I cannot ping out using the device name except for the first device.

stephen@test:~$ ping -I enp0s3 ubuntu.com PING ubuntu.com (91.189.94.40) from 192.168.0.123 enp0s3: 56(84) bytes of data. 64 bytes from ovinnik.canonical.com (91.189.94.40): icmp_seq=1 ttl=49 time=140 ms

stephen@test:~$ ping -I enp0s8 ubuntu.com
PING ubuntu.com (91.189.94.40) from 192.168.56.123 enp0s8: 56(84) bytes of data.
5 packets transmitted, 0 received, 100% packet loss, time 94ms

stephen@test:~$ ping -I usbwifi01 ubuntu.com
PING ubuntu.com (91.189.94.40) from 192.168.0.127 usbwifi01: 56(84) bytes of data.
5 packets transmitted, 0 received, 100% packet loss, time 93ms

However pinging through the IP address gets a response for interfaces 2 and 5.

stephen@test:~$ ping -I 192.168.0.123 ubuntu.com
PING ubuntu.com (91.189.94.40) from 192.168.0.123 : 56(84) bytes of data.
64 bytes from ovinnik.canonical.com (91.189.94.40): icmp_seq=1 ttl=49 time=166 ms

stephen@test:~$ ping -I 192.168.56.123 ubuntu.com
PING ubuntu.com (91.189.94.40) from 192.168.56.123 : 56(84) bytes of data.
6 packets transmitted, 0 received, 100% packet loss, time 111ms

stephen@test:~$ ping -I 192.168.0.127 ubuntu.com
PING ubuntu.com (91.189.94.40) from 192.168.0.127 : 56(84) bytes of data.
64 bytes from ovinnik.canonical.com (91.189.94.40): icmp_seq=1 ttl=49 time=144 ms

Here's the routing table

default via 192.168.0.1 dev enp0s3 proto static 
default via 192.168.0.1 dev usbwifi01 proto static 
192.168.0.0/24 dev enp0s3 proto kernel scope link src 192.168.0.123 
192.168.0.0/24 dev usbwifi01 proto kernel scope link src 192.168.0.127 
192.168.56.0/24 dev enp0s8 proto kernel scope link src 192.168.56.123 

And here the netplan config:

network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s3:
      addresses: [192.168.0.123/24]
      gateway4: 192.168.0.1
      nameservers:
        search: [********]
        addresses: [192.168.0.110]
    enp0s8:
      addresses: [192.168.56.123/24]
  wifis:
    usbwifi01:
      addresses: [192.168.0.127/24]
      gateway4: 192.168.0.1
      nameservers:
        search: [********]
        addresses: [192.168.0.110] 
      access-points: 
       "********":
        password: "********"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.