• Network is unreachable - VM

    From Adrian@21:1/5 to All on Sun Jan 22 10:59:28 2023
    This is not a new installation problem.

    I've had a CentOS VM running under Oracle's Virtual Box for the best
    part of 4 years, and it has done so without a problem. Until yesterday.

    I installed a new router yesterday, and since then the CentOS VM
    (currently running 7.9) has been unable to access any part of my
    network, and so be extension the Internet. Any attempt to do so comes
    up with variations on the "Network is unreachable" message. I though I
    had ifconfig installed, but trying to run that gives me "command not
    found".

    Given that I can't install any extra software, any suggestions on how to
    fix this ?

    TIA

    Adrian
    --
    To Reply :
    replace "bulleid" with "adrian" - all mail to bulleid is rejected
    Sorry for the rigmarole, If I want spam, I'll go to the shops
    Every time someone says "I don't believe in trolls", another one dies.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Sun Jan 22 13:44:39 2023
    Am 22.01.2023 um 10:59:28 Uhr schrieb Adrian:

    Given that I can't install any extra software, any suggestions on how
    to fix this ?

    Make sure the NIC of the VM is connected as a network bridge in VBox.

    Show the output of

    ip a
    ip -6 route show
    ip -4 route show

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adrian@21:1/5 to All on Sun Jan 22 13:25:29 2023
    In message <tqjb3n$33uvr$1@dont-email.me>, Marco Moock <mo01@posteo.de>
    writes
    Am 22.01.2023 um 10:59:28 Uhr schrieb Adrian:

    Given that I can't install any extra software, any suggestions on how
    to fix this ?

    Make sure the NIC of the VM is connected as a network bridge in VBox.


    Thanks

    I have two VMs running (one W10/32 one CentOS), both appear to have the
    same settings. The W10/32 works fine, I'm posting this from that VM.

    Show the output of

    ip a

    $ 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: enp0s3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast
    state DOWN group default qlen 1000
    link/ether 08:00:27:6f:0b:15 brd ff:ff:ff:ff:ff:ff
    $
    ip -6 route show

    $ ip -6 route show
    unreachable ::/96 dev lo metric 1024 error -113 pref medium
    unreachable ::/ffff:0.0.0.0/96 dev lo metric 1024 error -113 pref medium unreachable 2002:a00::/24 dev lo metric 1024 error -113 pref medium
    unreachable 2002:7f00::/24 dev lo metric 1024 error -113 pref medium unreachable 2002:a9fe::/32 dev lo metric 1024 error -113 pref medium unreachable 2002:ac10::/28 dev lo metric 1024 error -113 pref medium unreachable 2002:c0a8::/32 dev lo metric 1024 error -113 pref medium unreachable 2002:e000::/19 dev lo metric 1024 error -113 pref medium unreachable 3ffe:ffff::/32 dev lo metric 1024 error -113 pref medium
    $
    ip -4 route show

    $ ip -4 route show
    $

    Last command returns nothing.

    Adrian
    --
    To Reply :
    replace "bulleid" with "adrian" - all mail to bulleid is rejected
    Sorry for the rigmarole, If I want spam, I'll go to the shops
    Every time someone says "I don't believe in trolls", another one dies.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Sun Jan 22 19:04:13 2023
    Am 22.01.2023 um 13:25:29 Uhr schrieb Adrian:

    I have two VMs running (one W10/32 one CentOS), both appear to have
    the same settings. The W10/32 works fine, I'm posting this from that
    VM.

    Please check the settings.

    2: enp0s3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc
    pfifo_fast state DOWN group default qlen 1000
    ^^^^

    That means the NIC isn't active. Check VBox if it is "connected". VBox
    can virtually disconnect a NIC of VM, like pulling the cable on a
    physical machine.

    Next question is:
    How is your network managed in the virtual OS?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From SH@21:1/5 to Marco Moock on Sun Jan 22 18:26:21 2023
    On 22/01/2023 18:04, Marco Moock wrote:
    Am 22.01.2023 um 13:25:29 Uhr schrieb Adrian:

    I have two VMs running (one W10/32 one CentOS), both appear to have
    the same settings. The W10/32 works fine, I'm posting this from that
    VM.

    Please check the settings.

    2: enp0s3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc
    pfifo_fast state DOWN group default qlen 1000
    ^^^^

    That means the NIC isn't active. Check VBox if it is "connected". VBox
    can virtually disconnect a NIC of VM, like pulling the cable on a
    physical machine.

    Next question is:
    How is your network managed in the virtual OS?



    Is the new router IP different to the old router IP?

    some routers use 192.168.0.1 and others use 192.168.1.1 and some other
    routers use completely different IP addresses

    Routers usually offer DHCP as well giving the DNS IPs

    Now what I think has happened is that Oracle's VBox simply needs to be
    told the new router's IP address?

    Alternatively, has the physical IP of the machine hosting the VM's
    changed? The VMs may still think the host machine still has the old IP
    (that was given out by the old router) and simply need to be told what
    the host machine's new IP is that is given out by new router?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adrian@21:1/5 to All on Sun Jan 22 19:11:28 2023
    In message <tqjtqt$36tmg$3@dont-email.me>, Marco Moock <mo01@posteo.de>
    writes
    Am 22.01.2023 um 13:25:29 Uhr schrieb Adrian:

    I have two VMs running (one W10/32 one CentOS), both appear to have
    the same settings. The W10/32 works fine, I'm posting this from that
    VM.

    Please check the settings.


    Looking under "advanced settings", I find that the is a tick box for
    "Cable connected". This was unticked. I've now ticked it, and I'm back
    on the network, well sort of.

    ip a now shows Up rather than down, and I can ping external sites, but I
    can't ping any local (i.e. on my LAN) machines by name, but can by ip
    address. So something somewhere means that I've lost the DNS settings.

    Next question is:
    How is your network managed in the virtual OS?

    Sorry, I don't know, and I'm not sure how to find out.

    Adrian
    --
    To Reply :
    replace "bulleid" with "adrian" - all mail to bulleid is rejected
    Sorry for the rigmarole, If I want spam, I'll go to the shops
    Every time someone says "I don't believe in trolls", another one dies.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Sun Jan 22 19:43:46 2023
    Am 22.01.2023 um 18:26:21 Uhr schrieb SH:

    Now what I think has happened is that Oracle's VBox simply needs to
    be told the new router's IP address?

    No. The virtual NIC need to be bridged with the physical NIC. Then it
    haves like a switch and the computer is like a physical computer in the
    normal network.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adrian@21:1/5 to All on Sun Jan 22 19:22:55 2023
    In message <tqjv4c$70f$1@gioia.aioe.org>, SH <i.love.spam@spam.com>
    writes
    Is the new router IP different to the old router IP?

    No. The new router was set up using the same ip address as the old one.
    In part this was to try and avoid problems like this.

    Now what I think has happened is that Oracle's VBox simply needs to be
    told the new router's IP address?


    I don't argue with that. However what is confusing me is that I've got
    two VBox VMs (the CentOS one and a Windows10/32 one). The CentOS one
    had completely fallen off the network (now fixed, see another post in
    the thread), but the Windows one didn't. Additionally, I can't see
    anything in the VM set up (that is from the VM's window menus, rather
    than settings under /etc) that allows you to do that.

    Basically, now I can reach the Internet, however, I can only access
    machines on my LAN by their IP address, the local DNS lookup has stopped working.

    Alternatively, has the physical IP of the machine hosting the VM's
    changed? The VMs may still think the host machine still has the old IP
    (that was given out by the old router) and simply need to be told what
    the host machine's new IP is that is given out by new router?


    All machines on my LAN are given fixed leases at the router (and that information was ported to the new router), so they should retain their
    IP addresses.

    Adrian
    --
    To Reply :
    replace "bulleid" with "adrian" - all mail to bulleid is rejected
    Sorry for the rigmarole, If I want spam, I'll go to the shops
    Every time someone says "I don't believe in trolls", another one dies.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From SH@21:1/5 to Adrian on Sun Jan 22 21:21:30 2023
    On 22/01/2023 19:22, Adrian wrote:
    In message <tqjv4c$70f$1@gioia.aioe.org>, SH <i.love.spam@spam.com> writes
    Is the new router IP different to the old router IP?

    No.  The new router was set up using the same ip address as the old one.
    In part this was to try and avoid problems like this.

    Now what I think has happened is that Oracle's VBox simply needs to be
    told the new router's IP address?


    I don't argue with that.  However what is confusing me is that I've got
    two VBox VMs (the CentOS one and a Windows10/32 one).  The CentOS one
    had completely fallen off the network (now fixed, see another post in
    the thread), but the Windows one didn't.  Additionally, I can't see
    anything in the VM set up (that is from the VM's window menus, rather
    than settings under /etc) that allows you to do that.

    Basically, now I can reach the Internet, however, I can only access
    machines on my LAN by their IP address, the local DNS lookup has stopped working.

    Ah.... you're missing a hosts file? this has FDQN (fully qualified
    domain names) vs IP addresses.

    Did you have a list in the old router where you could type in the FQDN
    name and the machine would get the IP address from the hosts file.

    For externals, this would use DNS, but for internals, that uses a hosts
    file. Perhaps the new router needs a bit more info?

    I run my own DNS (pi Hole) and I put my local machine names and IP
    addresses in there to save me messing about creating a hosts file on
    every PC and knowing that external DNS won't know about my internal network.



    S.


    Alternatively, has the physical IP of the machine hosting the VM's
    changed? The VMs may still think the host machine still has the old IP
    (that was given out by the old router) and simply need to be told what
    the host machine's new IP is that is given out by new router?


    All machines on my LAN are given fixed leases at the router (and that information was ported to the new router), so they should retain their
    IP addresses.

    Adrian

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adrian@21:1/5 to i.love@spam.com on Sun Jan 22 22:57:53 2023
    In message <tqk9cp$2h8ao$1@dont-email.me>, SH <i.love@spam.com> writes
    On 22/01/2023 19:22, Adrian wrote:
    In message <tqjv4c$70f$1@gioia.aioe.org>, SH <i.love.spam@spam.com> writes >>> Is the new router IP different to the old router IP?

    No.  The new router was set up using the same ip address as the old
    one. In part this was to try and avoid problems like this.

    Now what I think has happened is that Oracle's VBox simply needs to
    be told the new router's IP address?

    I don't argue with that.  However what is confusing me is that I've
    got two VBox VMs (the CentOS one and a Windows10/32 one).  The CentOS
    one had completely fallen off the network (now fixed, see another
    post in the thread), but the Windows one didn't.  Additionally, I
    can't see anything in the VM set up (that is from the VM's window
    menus, rather than settings under /etc) that allows you to do that.
    Basically, now I can reach the Internet, however, I can only access >>machines on my LAN by their IP address, the local DNS lookup has
    stopped working.

    Ah.... you're missing a hosts file? this has FDQN (fully qualified
    domain names) vs IP addresses.


    Pedantically, I'm not missing one, but whether or not it has the right
    info in it is a different matter.

    Did you have a list in the old router where you could type in the FQDN
    name and the machine would get the IP address from the hosts file.


    The old router (and the new one, which is basically a newer version) has
    the ability to put in IP addresses, names and MAC addresses for items on
    the LAN, but this is fully populated. In addition to the CentOS VM,
    I've got a Ubuntu PC and a stack of RPis, and they all happily work with
    out any mods to the hosts file (and they basically hold the default info
    for that box , references to 127.0.0.1). What has changed with the new
    router is that now the various RPis no longer accept "machine_name", but
    now need "machine_name.local" for ping or ssh to find the machine in
    question (the Ubuntu box always did). I added another RPi to the LAN
    this afternoon, and without editing anything, I was able to access it by
    name straight away.
    The router appears to pickup the machine name from the machine in
    question, and doesn't have the ".local" bit in its version of the hosts
    table.

    For externals, this would use DNS, but for internals, that uses a hosts
    file. Perhaps the new router needs a bit more info?

    In view of the above para, I'm not convinced that the problem is the
    router, I think it is how the VM accesses (or doesn't) the router for
    LAN destinations. Changing the router seems to have upset the VM
    (witness it "unplugging" itself.


    I run my own DNS (pi Hole) and I put my local machine names and IP
    addresses in there to save me messing about creating a hosts file on
    every PC and knowing that external DNS won't know about my internal
    network.

    This is something that I've only ever done on the router. I suspect
    that strictly speaking I don't need to do it there, but that is to
    ensure that each machine keeps the same IP address.

    Adrian
    --
    To Reply :
    replace "bulleid" with "adrian" - all mail to bulleid is rejected
    Sorry for the rigmarole, If I want spam, I'll go to the shops
    Every time someone says "I don't believe in trolls", another one dies.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Mon Jan 23 10:25:27 2023
    Am 22.01.2023 um 19:11:28 Uhr schrieb Adrian:

    Looking under "advanced settings", I find that the is a tick box for
    "Cable connected". This was unticked. I've now ticked it, and I'm
    back on the network, well sort of.

    ip a now shows Up rather than down, and I can ping external sites,
    but I can't ping any local (i.e. on my LAN) machines by name, but can
    by ip address. So something somewhere means that I've lost the DNS
    settings.

    Is the NIC in the VBox settings connected via Bridge and NOT NAT?
    NAT breaks certain things here, don't use it.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adrian@21:1/5 to All on Mon Jan 23 15:28:40 2023
    In message <tqljq7$3i3r8$6@dont-email.me>, Marco Moock <mo01@posteo.de>
    writes
    Am 22.01.2023 um 19:11:28 Uhr schrieb Adrian:

    Looking under "advanced settings", I find that the is a tick box for
    "Cable connected". This was unticked. I've now ticked it, and I'm
    back on the network, well sort of.

    ip a now shows Up rather than down, and I can ping external sites,
    but I can't ping any local (i.e. on my LAN) machines by name, but can
    by ip address. So something somewhere means that I've lost the DNS
    settings.

    Is the NIC in the VBox settings connected via Bridge and NOT NAT?
    NAT breaks certain things here, don't use it.


    Curious. The only setting that seems to work here is NAT.

    If I set it to anything else, I can't ping Internet sites by name. With
    NAT set I can ping Internet sites by name, and LAN sites by IP address.

    Adrian
    --
    To Reply :
    replace "bulleid" with "adrian" - all mail to bulleid is rejected
    Sorry for the rigmarole, If I want spam, I'll go to the shops
    Every time someone says "I don't believe in trolls", another one dies.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Mon Jan 23 21:29:11 2023
    Am 23.01.2023 um 15:28:40 Uhr schrieb Adrian:

    Curious. The only setting that seems to work here is NAT.

    If I set it to anything else, I can't ping Internet sites by name.
    With NAT set I can ping Internet sites by name, and LAN sites by IP
    address.

    Set it to Bridge, disconnect the virtual NIC, the connect it again.
    You also need to select the physical NIC you actually use at the
    computer in VBox.

    https://picr.eu/images/2023/01/23/Mn7Hh.png

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adrian@21:1/5 to All on Tue Jan 24 10:35:50 2023
    In message <tqmqmn$3op39$3@dont-email.me>, Marco Moock <mo01@posteo.de>
    writes
    Am 23.01.2023 um 15:28:40 Uhr schrieb Adrian:

    Curious. The only setting that seems to work here is NAT.

    If I set it to anything else, I can't ping Internet sites by name.
    With NAT set I can ping Internet sites by name, and LAN sites by IP
    address.

    Set it to Bridge, disconnect the virtual NIC, the connect it again.
    You also need to select the physical NIC you actually use at the
    computer in VBox.

    https://picr.eu/images/2023/01/23/Mn7Hh.png


    Thanks

    This is not what I'm seeing. When I open up the settings and select
    network, I can see "Bridged Adapter", but the "Enable Network Adapter"
    box is greyed out. No option seems to allow me to tick/un tick that
    box.


    With Bridged Adapter selected, under Name, I have three options :

    RealtekPCIe GbE Family Controller (which is the default)
    Qualcomm QCA9565 802.11b/g/n Wireless Adapter
    VirtualBox Host-Only Ethernet Adapter

    There is no option to enter the NIC that I'm using (enp0s3)

    As an experiment last night, I swapped back to my old router, and with
    that the VM worked as I expected it to, without changing any settings.

    Adrian
    --
    To Reply :
    replace "bulleid" with "adrian" - all mail to bulleid is rejected
    Sorry for the rigmarole, If I want spam, I'll go to the shops
    Every time someone says "I don't believe in trolls", another one dies.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Tue Jan 24 11:41:14 2023
    Am 24.01.2023 um 10:30:26 Uhr schrieb Dan Purgert:

    That's mDNS. Sounds like you lost the search-domain for ".local" as
    part of the upgrade cycle. That is, the previous router had some
    setting that applied the ".local" TLD to non-FQDN hostnames.

    Wrong.

    .local is mDNS and will be used with IPv4/IPv6 multicast link local
    addresses, regardless if a router is present or not.

    Although mDNS uses link-local multicast, it only works on the same
    Ethernet link, NAT breaks that as I already pointed out.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adrian@21:1/5 to All on Tue Jan 24 10:55:58 2023
    In message <slrntsvcrs.304.dan@djph.net>, Dan Purgert <dan@djph.net>
    writes
    On 2023-01-22, Adrian wrote:
    In message <tqk9cp$2h8ao$1@dont-email.me>, SH <i.love@spam.com> writes >>>Did you have a list in the old router where you could type in the FQDN >>>name and the machine would get the IP address from the hosts file.


    The old router (and the new one, which is basically a newer version) has
    the ability to put in IP addresses, names and MAC addresses for items on
    the LAN, but this is fully populated. In addition to the CentOS VM,
    I've got a Ubuntu PC and a stack of RPis, and they all happily work with
    out any mods to the hosts file (and they basically hold the default info
    for that box , references to 127.0.0.1). What has changed with the new
    router is that now the various RPis no longer accept "machine_name", but
    now need "machine_name.local" for ping or ssh to find the machine in
    question (the Ubuntu box always did). I added another RPi to the LAN
    this afternoon, and without editing anything, I was able to access it by
    name straight away.
    The router appears to pickup the machine name from the machine in
    question, and doesn't have the ".local" bit in its version of the hosts
    table.

    That's mDNS. Sounds like you lost the search-domain for ".local" as
    part of the upgrade cycle. That is, the previous router had some
    setting that applied the ".local" TLD to non-FQDN hostnames.

    In the grand scheme of things, that doesn't matter as much, so long as
    it is consistent.




    I run my own DNS (pi Hole) and I put my local machine names and IP >>>addresses in there to save me messing about creating a hosts file on >>>every PC and knowing that external DNS won't know about my internal >>>network.

    This is something that I've only ever done on the router. I suspect
    that strictly speaking I don't need to do it there, but that is to
    ensure that each machine keeps the same IP address.

    DNS has nothing to do with IP address assignments to a host. It is
    merely the translator of a given hostname to the machine's assigned IP >address.

    Which isn't working at all from my VM, but does from other (physical)
    machines on the LAN. The VM is unable to translate the name of a
    machine into an IP address when it is plugged into the new router, but
    with the old one, it works fine.

    Adrian.
    --
    To Reply :
    replace "bulleid" with "adrian" - all mail to bulleid is rejected
    Sorry for the rigmarole, If I want spam, I'll go to the shops
    Every time someone says "I don't believe in trolls", another one dies.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dan Purgert@21:1/5 to Adrian on Tue Jan 24 10:30:26 2023
    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA512

    On 2023-01-22, Adrian wrote:
    In message <tqk9cp$2h8ao$1@dont-email.me>, SH <i.love@spam.com> writes
    Did you have a list in the old router where you could type in the FQDN
    name and the machine would get the IP address from the hosts file.


    The old router (and the new one, which is basically a newer version) has
    the ability to put in IP addresses, names and MAC addresses for items on
    the LAN, but this is fully populated. In addition to the CentOS VM,
    I've got a Ubuntu PC and a stack of RPis, and they all happily work with
    out any mods to the hosts file (and they basically hold the default info
    for that box , references to 127.0.0.1). What has changed with the new router is that now the various RPis no longer accept "machine_name", but
    now need "machine_name.local" for ping or ssh to find the machine in
    question (the Ubuntu box always did). I added another RPi to the LAN
    this afternoon, and without editing anything, I was able to access it by
    name straight away.
    The router appears to pickup the machine name from the machine in
    question, and doesn't have the ".local" bit in its version of the hosts table.

    That's mDNS. Sounds like you lost the search-domain for ".local" as
    part of the upgrade cycle. That is, the previous router had some
    setting that applied the ".local" TLD to non-FQDN hostnames.



    I run my own DNS (pi Hole) and I put my local machine names and IP >>addresses in there to save me messing about creating a hosts file on
    every PC and knowing that external DNS won't know about my internal >>network.

    This is something that I've only ever done on the router. I suspect
    that strictly speaking I don't need to do it there, but that is to
    ensure that each machine keeps the same IP address.

    DNS has nothing to do with IP address assignments to a host. It is
    merely the translator of a given hostname to the machine's assigned IP
    address.


    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEE3asj+xn6fYUcweBnbWVw5UznKGAFAmPPs3wACgkQbWVw5Uzn KGDpaw//UJNmBr1/j8mex/egfAbJHNdUTwAFBI0d7GljGj6p13ntyrTlG8Wuvhu/ xi1ZKFcyUOGd2ztu0h/GO/JegThy7CC+RHs5Ol7+8FDjgz/gzW/pxbIk7YH5qQqq TGp4Mie60AeZFFe9eYhYoZp4d0s/vGg9XUCqda342P1IbCkXhOCLdiV4VmfT2lzB MBR7RkwK1RqYdtjeqoIeOFQmM+XhFhSVL8aBPJV7eCktqjGB2mhaBxZP3d3uVlEg naNpipuoggUXddzKbLJQObmQ9XvuaFT/Rf5DOIBryt+baOB/SqUgvgklXTpjdytO +IiaEAmSqg1YaaRm2GsOOMVYfeXnzxa/VTfra3KIzD/8j6vabHRjb+LOV9Uq0buE aeFwl8ZVzP+Agd7KCMgVAvsbR7d9gbIgvN4ig8TMK14IJRoM7gcEdRD2wRNW9pwP SV2NJkSyctBb9zD7K1d/wkSQgw7ay9vhfIC0HORXHKOA/JqKmaRJyBaj5grxBea2 YDLVtnrb8dSNJn697mp7kJJnNJ6BlGMmeQoNAAbPeSTur0KL9EDS4LeQdc+027Zl KgjDr9ZCRxWreH7ABpOdZ8KS6w+SBmsh3OuGYgNMWJtnp7OGaRkGLhJs5WhDkvF+ bbonDSGfJ6V5cAdA6tWj6eL62rv05Mp4YAP79Incf5lqe2/+U18=
    =tD19
    -----END PGP SIGNATURE-----

    --
    |_|O|_|
    |_|_|O| Github: https://github.com/dpurgert
    |O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Tue Jan 24 12:29:57 2023
    Am 24.01.2023 um 10:55:58 Uhr schrieb Adrian:

    Which isn't working at all from my VM, but does from other (physical) machines on the LAN. The VM is unable to translate the name of a
    machine into an IP address when it is plugged into the new router,
    but with the old one, it works fine.

    Use Wireshark and capture for dns, LLMNR, mdns and nbns.
    Check which protocol will be used.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adrian@21:1/5 to All on Tue Jan 24 13:08:04 2023
    In message <tqoffm$2tlc$10@dont-email.me>, Marco Moock <mo01@posteo.de>
    writes
    Am 24.01.2023 um 10:55:58 Uhr schrieb Adrian:

    Which isn't working at all from my VM, but does from other (physical)
    machines on the LAN. The VM is unable to translate the name of a
    machine into an IP address when it is plugged into the new router,
    but with the old one, it works fine.

    Use Wireshark and capture for dns, LLMNR, mdns and nbns.
    Check which protocol will be used.

    Thanks.

    The VM works in console mode only (no window manager installed).

    $ tshark &
    [1] 1265
    $ Capturing on 'enp0s3'
    ping -c 1 ffoilpi1.local
    ping: ffoilpi1.local: Name or service not know
    $ 1 0.000000000 10.0.2.15 -> 217.169.20.20 DNS 74 Standard query
    0x97be A ffoilpi1.local
    2 0.01177891 217.169.20.20 -> 10.0.2.15 DNS 149 Standard query
    response 0x97be No such name
    3 0.011954155 10.0.2.15 -> 217.169.20.20 DNS 86 Standard query
    0x2c3f A ffoilpi1.local.localdomain
    4 0.023462861 217.169.20.20 -> 10.0.2.15 DNS 161 Standard query
    response 0x2c3f No such name
    $ kill %1
    $ 4 packets captured

    217.169.20.20 appears in my /etc/resolv.conf as a nameserver.

    If more information is needed, please advise on options to use.

    Adrian
    --
    To Reply :
    replace "bulleid" with "adrian" - all mail to bulleid is rejected
    Sorry for the rigmarole, If I want spam, I'll go to the shops
    Every time someone says "I don't believe in trolls", another one dies.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Tue Jan 24 15:02:18 2023
    Am 24.01.2023 um 13:08:04 Uhr schrieb Adrian:

    217.169.20.20 appears in my /etc/resolv.conf as a nameserver.

    If more information is needed, please advise on options to use.

    Again, last time, I don't want to repeat myself:

    Is you NIC configured as a bridge in VBox?
    Show the output of
    ip a

    Did you understand that .local is mDNS and not normal Unicast DNS?
    What is the content of the /etc/nsswitch.conf?

    Is an mDNS client like Avahi or Bonjour running on the target machine?
    A service MUST listen on 5353 UDP.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dan Purgert@21:1/5 to Adrian on Tue Jan 24 15:32:16 2023
    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA512

    On 2023-01-24, Adrian wrote:
    In message <tqmqmn$3op39$3@dont-email.me>, Marco Moock <mo01@posteo.de> writes
    Am 23.01.2023 um 15:28:40 Uhr schrieb Adrian:

    Curious. The only setting that seems to work here is NAT.

    If I set it to anything else, I can't ping Internet sites by name.
    With NAT set I can ping Internet sites by name, and LAN sites by IP
    address.

    Set it to Bridge, disconnect the virtual NIC, the connect it again.
    You also need to select the physical NIC you actually use at the
    computer in VBox.

    https://picr.eu/images/2023/01/23/Mn7Hh.png


    Thanks

    This is not what I'm seeing. When I open up the settings and select
    network, I can see "Bridged Adapter", but the "Enable Network Adapter"
    box is greyed out. No option seems to allow me to tick/un tick that
    box.

    It's been a long time since I've used vbox; but as I (probably
    incorrectly) recall; some of the "greyed out" things were only
    accessible if you were running the vbox UI as root (or in a more
    permissive vbox-something group).



    With Bridged Adapter selected, under Name, I have three options :

    RealtekPCIe GbE Family Controller (which is the default)
    Qualcomm QCA9565 802.11b/g/n Wireless Adapter
    VirtualBox Host-Only Ethernet Adapter

    There is no option to enter the NIC that I'm using (enp0s3)

    enp0s3 is just the "name" used by the kernel because that's where it was enumerated (EtherNet; on PCI Port0, Slot 3). However, that's not the
    "device name" as burned into the chip's firmware -- given the options,
    it's most likely the Realtek controller there (I'd imagine the atheros
    chip will be something like "wlp0s#", where the "#" is some other number)

    As an experiment last night, I swapped back to my old router, and with
    that the VM worked as I expected it to, without changing any settings.

    In either case; the VM in question is getting its DNS server information
    via DHCP, right? In both cases, is it the IP address of the router?


    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEE3asj+xn6fYUcweBnbWVw5UznKGAFAmPP+jkACgkQbWVw5Uzn KGCNvQ//bct98umzMRT5NaAVelCDhh8UPp22TYZLnFkBuBd5gKJaGjd3W1LzTFq7 rCQRu1X/M5KhnaCYNyufOTSeDrd+5Oa4fNP1WDro42ZEvgeDT8SvJxoIo+uPeczd dtQjKPUO7Q3GG44ZK8O08ewm5aPlTy1nMKpJfmjpdMbQOuiKl6np6TTvus2H1x5d MxWyPrwiHmTtsAl0lzgMtOrkQbUBqImL30gufb2afNwSQ6hmQQti+N3pJeUWKMpW NYewjiWDLv7w393WSX+1h7nnPtgWRl45Q7VFe/mc2VLuJMLdcL+ZqbjWmv7S6ZpB /IQ1mw025n6o36FvKWx4msPkh5OlRGweAo90haPXyqV8LNlD+6ovVHN8W1hoNdeb 7sMKCpbfkiGwpM3Z53C/5z7i94z5+FSzJqezuLdONUp22e418NS93TgZnhRVGWyt IFfwYGJtzVFvs/FaLqK5ayYsLQ9hCjBMg4ITQ3i8mAInYvmKfIG3Z8hPofslgkp8 Jd5LEP84CwXyoj5wiLhvL5oCu7QZ2aRht2mVg8P8EoUGzMEvd95AxfaTsx04iNMu reHHsmtGwBXiLlYccbhVPIciRtHyPif0mYrIMdmrSguWttsRqpEmoDZoI0FYG/Wl GtsVVbikJ9uU2tDEIbg1xcN0fqVaaGBpHRVD4ACs0bd4jhT/V2o=
    =/3FI
    -----END PGP SIGNATURE-----

    --
    |_|O|_|
    |_|_|O| Github: https://github.com/dpurgert
    |O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dan Purgert@21:1/5 to Marco Moock on Tue Jan 24 15:20:47 2023
    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA512

    On 2023-01-24, Marco Moock wrote:
    Am 24.01.2023 um 10:30:26 Uhr schrieb Dan Purgert:

    That's mDNS. Sounds like you lost the search-domain for ".local" as
    part of the upgrade cycle. That is, the previous router had some
    setting that applied the ".local" TLD to non-FQDN hostnames.

    Wrong.

    .local is mDNS and will be used with IPv4/IPv6 multicast link local addresses, regardless if a router is present or not.

    Although mDNS uses link-local multicast, it only works on the same
    Ethernet link, NAT breaks that as I already pointed out.

    You seem to have misread the interaction.

    Old router -> unqualified hostnames (i.e. "rpi3") resolved properly to
    hosts on the LAN.
    New router -> unqualified hostnames (i.e "rpi3") do not resolve; BUT
    their mDNS hostnames (i.e. "rpi3.local") do.

    Therefore -> "old router" had been providing the appropriate mDNS
    search-domain (".local"). I'd imagine this to be most likely provided
    as part of the DHCP options; although it could potentially have been
    part of the router's own internal DNS server configuration.


    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEE3asj+xn6fYUcweBnbWVw5UznKGAFAmPP94kACgkQbWVw5Uzn KGDN0hAAjEFdWNnGjUkZdw/t8c7HlCUlqP2ibtGm8/XYbVqAjMPJ+ehzWBV1RSVm rLgPf/dsGnELAPxagUvES8HKx654gzrUWG7Dkjs3+2NjMNgQXBhrR8zThRx2tkYD s/YCUOImQEwd9CeB7dj4eAEQUb2CxoVQqSPTwTIf50pvT6qaQp/uu53MIg8q5sWo cbqzIcgJr1AabOUNjLAqYMSaj242ONWmdqa5mmd5dLoRF4B2ajBfXbBn6BUYkXUk NW7wzoAZK/T+rqDsQijHIh61Cw6FDBbPo/OoPs54wnSwPdaz/eQJKVRBNrH3+/go dQRYk0otg88li/hoN6M2WMYBteK3VvDdGDjpx7IOhKFOLfUq79jIvM0nNRZ5GcGK Q4xk/o4VauNru3LssKU2Ga1qVObI1spu/JFDuNEUJIguDLXU7Ql+c7S/WQNHYIyY w0agulZRWwqUPgl3sW7+eh1AJbkUhZ9iDM0f1Ulvnw1Bx/UGqKwI7pgiEXpv+A0c Lhokak7yW1ev/7CgSQo6Wo2OXGUzRhRm6Mj1kAYEfvJSVeXKcZJ1nWBuumA2CW/7 WzqtKGnz+mvm8YvAZe1YoAhriJ2cTowNE3ollvGe6IFYUyPbX+snVLZqDIjDRYoA +pqkH8cUXCZ71VlU+VDG+mzF7Z9MoN3pKRbQ4b4ppxrO4PFwuKQ=
    =C4Q5
    -----END PGP SIGNATURE-----

    --
    |_|O|_|
    |_|_|O| Github: https://github.com/dpurgert
    |O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adrian@21:1/5 to All on Tue Jan 24 15:13:51 2023
    In message <tqooda$2tlc$16@dont-email.me>, Marco Moock <mo01@posteo.de>
    writes
    Am 24.01.2023 um 13:08:04 Uhr schrieb Adrian:

    217.169.20.20 appears in my /etc/resolv.conf as a nameserver.

    If more information is needed, please advise on options to use.

    Again, last time, I don't want to repeat myself:

    Sorry if I don't understand all the technical terms.


    Is you NIC configured as a bridge in VBox?
    Not currently. When I do configure it as a bridge, all ping commands
    run very slowly, and they all fail.

    Show the output of
    ip a


    $ 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: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
    state UP group default qlen 1000
    link/ether 08:00:27:6f:0b:15 brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.15/24 brd 10.0.2.255 scope global nopreficroute dynamic enp0s3
    valid_lft 81441sec preferred_lft 81441sec
    inet6 fe80::39de:38c5Lc39d:c521/64 scope link noprefixroute
    valid_lft forever preferred_lft forever
    $

    Did you understand that .local is mDNS and not normal Unicast DNS?
    Not entirely. I haven't had time (yet) to look up the definitions in
    terms that I understand.

    What is the content of the /etc/nsswitch.conf?

    #
    # /etc/nsswitch.conf
    #
    # An example Name Service Switch config file. This file should be
    # sorted with the most-used services at the beginning.
    #
    # The entry '[NOTFOUND=return]' means that the search for an
    # entry should stop if the search in the previous entry turned
    # up nothing. Note that if the search failed due to some other reason
    # (like no NIS server responding) then the search continues with the
    # next entry.
    #
    # Valid entries include:
    #
    # nisplus Use NIS+ (NIS version 3)
    # nis Use NIS (NIS version 2), also called YP
    # dns Use DNS (Domain Name Service)
    # files Use the local files
    # db Use the local database (.db) files
    # compat Use NIS on compat mode
    # hesiod Use Hesiod for user lookups
    # [NOTFOUND=return] Stop searching if not found so far
    #

    # To use db, put the "db" in front of "files" for entries you want to be
    # looked up first in the databases
    #
    # Example:
    #passwd: db files nisplus nis
    #shadow: db files nisplus nis
    #group: db files nisplus nis

    passwd: files sss
    shadow: files sss
    group: files sss
    #initgroups: files sss

    #hosts: db files nisplus nis dns
    hosts: files dns myhostname

    # Example - obey only what nisplus tells us...
    #services: nisplus [NOTFOUND=return] files
    #networks: nisplus [NOTFOUND=return] files
    #protocols: nisplus [NOTFOUND=return] files
    #rpc: nisplus [NOTFOUND=return] files
    #ethers: nisplus [NOTFOUND=return] files
    #netmasks: nisplus [NOTFOUND=return] files

    bootparams: nisplus [NOTFOUND=return] files

    ethers: files
    netmasks: files
    networks: files
    protocols: files
    rpc: files
    services: files sss

    netgroup: nisplus sss

    publickey: nisplus

    automount: files nisplus sss
    aliases: files nisplus



    Is an mDNS client like Avahi or Bonjour running on the target machine?

    Which is the target machine in this case ? If you mean (for instance)
    one of my Raspberry Pis, then no. The router has Bonjour available, but
    it has not been enabled.

    A service MUST listen on 5353 UDP.

    Checking with one of my Pis, netstat -tulp shows

    upd6 0 0 :::5353 :::*

    The VM does not show 5353

    Adrian
    --
    To Reply :
    replace "bulleid" with "adrian" - all mail to bulleid is rejected
    Sorry for the rigmarole, If I want spam, I'll go to the shops
    Every time someone says "I don't believe in trolls", another one dies.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Tue Jan 24 17:31:09 2023
    Am 24.01.2023 um 15:32:16 Uhr schrieb Dan Purgert:

    It's been a long time since I've used vbox; but as I (probably
    incorrectly) recall; some of the "greyed out" things were only
    accessible if you were running the vbox UI as root (or in a more
    permissive vbox-something group).

    The NIC can only be enabled (virtually connected to the system via PCI)
    when the VM is switched off.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adrian@21:1/5 to All on Tue Jan 24 16:10:39 2023
    In message <slrntsvuhq.304.dan@djph.net>, Dan Purgert <dan@djph.net>
    writes
    As an experiment last night, I swapped back to my old router, and with
    that the VM worked as I expected it to, without changing any settings.

    In either case; the VM in question is getting its DNS server information
    via DHCP, right? In both cases, is it the IP address of the router?


    I can't see that it has any other source. I've only set up that
    information on the router.

    Another quirk, which may or may not be relevant. As an experiment, I've created another CentOS VM on Virtual Box, and that also has the same
    issue (it can ping external servers, but not local ones unless I use
    their IP address). I also created a new CentOS VM (both using the same
    ISO) on VMWare, again, a vanilla install, and that one works in the same
    way that the original VM worked prior to the router change. The config
    options for the VM wrapper (for want of a better name) don't seem to be
    as extensive with VMWare, but the networking shows up as NAT. Network connection options are :
    Bridged
    Nat (selected)
    Host-only
    Custom
    Lan segment

    Am I right in drawing the conclusion that the problem isn't with the VM
    itself, but with the VM hosting software and the way it talks to the new
    router ?

    Adrian
    --
    To Reply :
    replace "bulleid" with "adrian" - all mail to bulleid is rejected
    Sorry for the rigmarole, If I want spam, I'll go to the shops
    Every time someone says "I don't believe in trolls", another one dies.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Tue Jan 24 17:28:48 2023
    Am 24.01.2023 um 15:20:47 Uhr schrieb Dan Purgert:

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA512

    On 2023-01-24, Marco Moock wrote:
    Am 24.01.2023 um 10:30:26 Uhr schrieb Dan Purgert:

    That's mDNS. Sounds like you lost the search-domain for ".local"
    as part of the upgrade cycle. That is, the previous router had
    some setting that applied the ".local" TLD to non-FQDN hostnames.

    Wrong.

    .local is mDNS and will be used with IPv4/IPv6 multicast link local addresses, regardless if a router is present or not.

    Although mDNS uses link-local multicast, it only works on the same
    Ethernet link, NAT breaks that as I already pointed out.

    You seem to have misread the interaction.

    Old router -> unqualified hostnames (i.e. "rpi3") resolved properly to
    hosts on the LAN.
    New router -> unqualified hostnames (i.e "rpi3") do not resolve; BUT
    their mDNS hostnames (i.e. "rpi3.local") do.

    Therefore -> "old router" had been providing the appropriate mDNS search-domain (".local").

    A search domain can be obtained via DHCP, but using .local for that is
    not common.

    I'd imagine this to be most likely provided
    as part of the DHCP options; although it could potentially have been
    part of the router's own internal DNS server configuration.

    Normally not because .local is intended for multicast DNS - not unicast
    DNS, that works a bit different.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Tue Jan 24 17:30:31 2023
    Am 24.01.2023 um 10:35:50 Uhr schrieb Adrian:

    This is not what I'm seeing. When I open up the settings and select
    network, I can see "Bridged Adapter", but the "Enable Network
    Adapter" box is greyed out. No option seems to allow me to tick/un
    tick that box.

    Shut down the virtual machine. Enabling the NIC in VBox is like
    connecting a PCI card to a physical system.
    Don't confuse "Enable" with "Connected".

    RealtekPCIe GbE Family Controller (which is the default)
    Qualcomm QCA9565 802.11b/g/n Wireless Adapter
    VirtualBox Host-Only Ethernet Adapter

    There is no option to enter the NIC that I'm using (enp0s3)

    en is Ethernet --> select the Realtek NIC.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andy Burns@21:1/5 to Adrian on Tue Jan 24 17:05:55 2023
    Adrian wrote:

    With Bridged Adapter selected, under Name, I have three options :

    RealtekPCIe GbE Family Controller (which is the default)
    Qualcomm QCA9565 802.11b/g/n Wireless Adapter
    VirtualBox Host-Only Ethernet Adapter

    those look like windows style device names, presumably that's your host O/S?

    There is no option to enter the NIC that I'm using (enp0s3)

    that looks like linux style device nsames, I presume thsat's your guest
    O/S, the names won't be the same, the guest won't really know what
    actual NICs the host has.

    All looks relatively sane though ...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Tue Jan 24 17:32:27 2023
    Am 24.01.2023 um 16:10:39 Uhr schrieb Adrian:

    The config
    options for the VM wrapper (for want of a better name) don't seem to
    be as extensive with VMWare, but the networking shows up as NAT.
    Network connection options are :
    Bridged
    Nat (selected)
    Host-only
    Custom
    Lan segment

    Am I right in drawing the conclusion that the problem isn't with the
    VM itself, but with the VM hosting software and the way it talks to
    the new router ?

    Wrong, you have to set it to "Bridged", as I already told you many
    times. Is it so hard to understand that NAT breaks certain things
    because of its intended functionality?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adrian@21:1/5 to usenet@andyburns.uk on Tue Jan 24 18:32:45 2023
    In message <k3ahfmF6mviU1@mid.individual.net>, Andy Burns
    <usenet@andyburns.uk> writes
    Adrian wrote:

    With Bridged Adapter selected, under Name, I have three options :
    RealtekPCIe GbE Family Controller (which is the default)
    Qualcomm QCA9565 802.11b/g/n Wireless Adapter
    VirtualBox Host-Only Ethernet Adapter

    those look like windows style device names, presumably that's your host O/S?

    There is no option to enter the NIC that I'm using (enp0s3)

    that looks like linux style device nsames, I presume thsat's your guest
    O/S, the names won't be the same, the guest won't really know what
    actual NICs the host has.


    Yes, W10/64 for the host and CentOS 7.9 for the VM.

    All looks relatively sane though ...


    Apart from the fact that it doesn't seem to want to play nicely.

    Adrian
    --
    To Reply :
    replace "bulleid" with "adrian" - all mail to bulleid is rejected
    Sorry for the rigmarole, If I want spam, I'll go to the shops
    Every time someone says "I don't believe in trolls", another one dies.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adrian@21:1/5 to All on Tue Jan 24 18:29:57 2023
    In message <tqp137$2tlc$18@dont-email.me>, Marco Moock <mo01@posteo.de>
    writes
    Am 24.01.2023 um 10:35:50 Uhr schrieb Adrian:

    This is not what I'm seeing. When I open up the settings and select
    network, I can see "Bridged Adapter", but the "Enable Network
    Adapter" box is greyed out. No option seems to allow me to tick/un
    tick that box.

    Shut down the virtual machine. Enabling the NIC in VBox is like
    connecting a PCI card to a physical system.
    Don't confuse "Enable" with "Connected".

    RealtekPCIe GbE Family Controller (which is the default)
    Qualcomm QCA9565 802.11b/g/n Wireless Adapter
    VirtualBox Host-Only Ethernet Adapter

    There is no option to enter the NIC that I'm using (enp0s3)

    en is Ethernet --> select the Realtek NIC.


    VM closed down
    Network connection set to Bridged Adapter and Realtek controller using
    the Virtual Box control panel
    VM restarted
    I then pinged one of my Pis, and it took 23 seconds to tell me "Name or
    service not known"
    I also pinged an external site, and again, it took 23 seconds to tell me
    "Name or service not known"

    I've shutdown again, reset to NAT and rebooted.
    I repeated the above, and this time it takes a fraction of a second to
    get a response, In this case the Pi isn't found, the external site is.

    I know you keep talking about the Bridge being the correct setting, but
    the fact is that it doesn't work at all, whereas NAT (with what ever
    flaws it may have) does to some extent. See also my other posting where running with a VMWare controlled VM works fine with NAT.

    Adrian
    --
    To Reply :
    replace "bulleid" with "adrian" - all mail to bulleid is rejected
    Sorry for the rigmarole, If I want spam, I'll go to the shops
    Every time someone says "I don't believe in trolls", another one dies.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Wed Jan 25 09:06:26 2023
    Am 24.01.2023 um 18:29:57 Uhr schrieb Adrian:

    I then pinged one of my Pis, and it took 23 seconds to tell me "Name
    or service not known"
    I also pinged an external site, and again, it took 23 seconds to tell
    me "Name or service not known"

    Please show the output of

    cat /etc/resolv.conf
    resolvectl

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Thu Jan 26 11:01:31 2023
    Am 26.01.2023 schrieb Adrian <bulleid@ku.gro.lioff>:

    $ cat /etc/resolv.conf
    # Generated by NetworkManager
    search localdomain
    nameserver 217.169.20.20
    nameserver 217.169.20.21

    Please also
    cat /etc/nsswitch.conf

    If you want to use .local, is avahi installed and running?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adrian@21:1/5 to All on Thu Jan 26 09:51:51 2023
    In message <tqqnu2$iep2$17@dont-email.me>, Marco Moock <mo01@posteo.de>
    writes
    Am 24.01.2023 um 18:29:57 Uhr schrieb Adrian:

    I then pinged one of my Pis, and it took 23 seconds to tell me "Name
    or service not known"
    I also pinged an external site, and again, it took 23 seconds to tell
    me "Name or service not known"

    Please show the output of

    cat /etc/resolv.conf
    resolvectl


    $ cat /etc/resolv.conf
    # Generated by NetworkManager
    search localdomain
    nameserver 217.169.20.20
    nameserver 217.169.20.21


    $ resolvectl
    -bash: resolvectl: command not found


    Adrian
    --
    To Reply :
    replace "bulleid" with "adrian" - all mail to bulleid is rejected
    Sorry for the rigmarole, If I want spam, I'll go to the shops
    Every time someone says "I don't believe in trolls", another one dies.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adrian@21:1/5 to All on Thu Jan 26 13:16:41 2023
    In message <tqtj1r$13du4$8@dont-email.me>, Marco Moock <mo01@posteo.de>
    writes
    Am 26.01.2023 schrieb Adrian <bulleid@ku.gro.lioff>:

    $ cat /etc/resolv.conf
    # Generated by NetworkManager
    search localdomain
    nameserver 217.169.20.20
    nameserver 217.169.20.21

    Please also
    cat /etc/nsswitch.conf


    #
    # /etc/nsswitch.conf
    #
    # An example Name Service Switch config file. This file should be
    # sorted with the most-used services at the beginning.
    #
    # The entry '[NOTFOUND=return]' means that the search for an
    # entry should stop if the search in the previous entry turned
    # up nothing. Note that if the search failed due to some other reason
    # (like no NIS server responding) then the search continues with the
    # next entry.
    #
    # Valid entries include:
    #
    # nisplus Use NIS+ (NIS version 3)
    # nis Use NIS (NIS version 2), also called YP
    # dns Use DNS (Domain Name Service)
    # files Use the local files
    # db Use the local database (.db) files
    # compat Use NIS on compat mode
    # hesiod Use Hesiod for user lookups
    # [NOTFOUND=return] Stop searching if not found so far
    #

    # To use db, put the "db" in front of "files" for entries you want to be
    # looked up first in the databases
    #
    # Example:
    #passwd: db files nisplus nis
    #shadow: db files nisplus nis
    #group: db files nisplus nis

    passwd: files sss
    shadow: files sss
    group: files sss
    #initgroups: files sss

    #hosts: db files nisplus nis dns
    hosts: files dns myhostname

    # Example - obey only what nisplus tells us...
    #services: nisplus [NOTFOUND=return] files
    #networks: nisplus [NOTFOUND=return] files
    #protocols: nisplus [NOTFOUND=return] files
    #rpc: nisplus [NOTFOUND=return] files
    #ethers: nisplus [NOTFOUND=return] files
    #netmasks: nisplus [NOTFOUND=return] files

    bootparams: nisplus [NOTFOUND=return] files

    ethers: files
    netmasks: files
    networks: files
    protocols: files
    rpc: files
    services: files sss

    netgroup: nisplus sss

    publickey: nisplus

    automount: files nisplus sss
    aliases: files nisplus


    If you want to use .local, is avahi installed and running?


    avahi is not installed. I am not bothered whether I use name or
    name.local to ping / ssh, but I would like to be able to use at least
    one of them.


    Additional info.

    Today is Thursday. Late on Tuesday evening, my entire Internet
    connection dropped out and would not reconnect. Wednesday morning I
    tried my old router, and that didn't make any difference, leading to the conclusion that the fault was beyond my infrastructure. I spoke to my
    ISP on Wednesday morning, who confirmed that the link was down, but the
    line appeared OK. To doubly confirm that it wasn't my kit (phone
    engineers charge if it is), they sent me a new router which arrived this morning (well done Royal Mail). For as yet unexplained reasons, the
    link came back up last night.

    I plugged in the new new router this morning, and after giving it a few
    minutes to settle down, I fired up the VM. I was able to ping external
    sites, and LAN machines. The LAN machines were reachable using name and name.local. This was without making any changes to the router, or the
    VM or VM hosting software.

    Adrian
    --
    To Reply :
    replace "bulleid" with "adrian" - all mail to bulleid is rejected
    Sorry for the rigmarole, If I want spam, I'll go to the shops
    Every time someone says "I don't believe in trolls", another one dies.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Thu Jan 26 16:27:10 2023
    Am 26.01.2023 schrieb Adrian <bulleid@ku.gro.lioff>:

    hosts: files dns myhostname

    no mDNS enabled, mDNS lookup (default for .local) WILL NOT WORK.

    avahi is not installed. I am not bothered whether I use name or
    name.local to ping / ssh, but I would like to be able to use at least
    one of them.

    .local is intended for mDNS, so install avahi to be able to resolve
    these names properly.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adrian@21:1/5 to All on Thu Jan 26 15:53:37 2023
    In message <tqu64e$181pu$2@dont-email.me>, Marco Moock <mo01@posteo.de>
    writes
    Am 26.01.2023 schrieb Adrian <bulleid@ku.gro.lioff>:

    hosts: files dns myhostname

    no mDNS enabled, mDNS lookup (default for .local) WILL NOT WORK.

    avahi is not installed. I am not bothered whether I use name or
    name.local to ping / ssh, but I would like to be able to use at least
    one of them.

    .local is intended for mDNS, so install avahi to be able to resolve
    these names properly.


    avahi installed.

    systemctl status shows avahi-daemon running.

    However, I still don't see any difference in the nsswitch.conf file.

    Adrian
    --
    To Reply :
    replace "bulleid" with "adrian" - all mail to bulleid is rejected
    Sorry for the rigmarole, If I want spam, I'll go to the shops
    Every time someone says "I don't believe in trolls", another one dies.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Fri Jan 27 08:57:11 2023
    Am 26.01.2023 schrieb Adrian <bulleid@ku.gro.lioff>:

    systemctl status shows avahi-daemon running.

    However, I still don't see any difference in the nsswitch.conf file.

    Use Wireshark/other network sniffer and filter for mDNS.
    Do you see any queries?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adrian@21:1/5 to All on Fri Jan 27 15:54:08 2023
    In message <tr004n$1jj6u$2@dont-email.me>, Marco Moock <mo01@posteo.de>
    writes
    Am 26.01.2023 schrieb Adrian <bulleid@ku.gro.lioff>:

    systemctl status shows avahi-daemon running.

    However, I still don't see any difference in the nsswitch.conf file.

    Use Wireshark/other network sniffer and filter for mDNS.
    Do you see any queries?

    $ tshark &
    $ ping -c 1 ffoilpi1.local
    1 0.000000000 10.0.2.15 -> 217.169.20.20 DNS 74 Standard query
    0x9a2c A ffoilpi1.local
    2 0.010826823 217.169.20.20 -> 10.0.2.15 DNS 149 Standard query
    response 0x9a2c No such name
    3 0.011020038 10.0.2.15 -> 217.169.20.20 DNS 86 Standard query
    0xa333 A ffoilpi1.local.localdomain
    4 0.021736697 217.169.20.20 -> 10.0.2.15 DNS 161 Standard query
    response 0xa333 No such name
    5 5.007164148 CadmusCo_6f:0b:15 -> RealtekU_12:35:02 ARP 42 Who has 10.0.2.2? Tell 10.0.2.15
    6 5.007480484 RealtekU_12:35:02 -> CadmusCo_6f:0b:15 ARP 60 10.0.2.2
    is at 52:54:00:12:35:02

    $ tshark &
    $ ping -c 1 ffoilpi1
    1 0.000000000 10.0.2.15 -> 217.169.20.20 DNS 74 Standard query
    0x9a2c A ffoilpi1.local
    2 0.010826823 217.169.20.20 -> 10.0.2.15 DNS 149 Standard query
    response 0x9a2c No such name
    3 0.011020038 10.0.2.15 -> 217.169.20.20 DNS 86 Standard query
    0xa333 A ffoilpi1.local.localdomain
    4 0.021736697 217.169.20.20 -> 10.0.2.15 DNS 161 Standard query
    response 0xa333 No such name
    5 5.007164148 CadmusCo_6f:0b:15 -> RealtekU_12:35:02 ARP 42 Who has 10.0.2.2? Tell 10.0.2.15
    6 5.007480484 RealtekU_12:35:02 -> CadmusCo_6f:0b:15 ARP 60 10.0.2.2
    is at 52:54:00:12:35:02


    That appears to be going straight out to the Internet to do a lookup, so
    it is hardly surprising that I can't get a result. Why doesn't it check
    with the router for local names ?

    Adrian
    --
    To Reply :
    replace "bulleid" with "adrian" - all mail to bulleid is rejected
    Sorry for the rigmarole, If I want spam, I'll go to the shops
    Every time someone says "I don't believe in trolls", another one dies.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adrian@21:1/5 to All on Fri Jan 27 23:50:41 2023
    In message <tr17h9$1q8qg$1@dont-email.me>, Marco Moock <mo01@posteo.de>
    writes
    Am 27.01.2023 um 15:54:08 Uhr schrieb Adrian:

    That appears to be going straight out to the Internet to do a lookup,
    so it is hardly surprising that I can't get a result. Why doesn't it
    check with the router for local names ?

    Check nsswitch.conf.
    mdns must be present here for hosts.

    See here for examples: >https://atwillys.de/content/linux/mdns-on-debian-ubuntu-installation/


    I've altered the nsswitch.conf file as referenced on that page,
    restarted the avahi daemon, and that has made matters worse :

    $ ping -c 1 ffoilpi1.local
    ping: ffoilpi1.local: System error

    Prior to making that change, I compared the nsswitch.conf files on both
    my CentOS VMs. They both had the same entry :
    $ grep -i dns /etc/nsswitch.conf
    hosts: files dns myhostname

    One works fine (seemingly without mdns), the other one doesn't.

    Adrian
    --
    To Reply :
    replace "bulleid" with "adrian" - all mail to bulleid is rejected
    Sorry for the rigmarole, If I want spam, I'll go to the shops
    Every time someone says "I don't believe in trolls", another one dies.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Fri Jan 27 20:09:29 2023
    Am 27.01.2023 um 15:54:08 Uhr schrieb Adrian:

    That appears to be going straight out to the Internet to do a lookup,
    so it is hardly surprising that I can't get a result. Why doesn't it
    check with the router for local names ?

    Check nsswitch.conf.
    mdns must be present here for hosts.

    See here for examples: https://atwillys.de/content/linux/mdns-on-debian-ubuntu-installation/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andy Burns@21:1/5 to Adrian on Fri Jan 27 19:02:58 2023
    Adrian wrote:

    Why doesn't it check with the router for local names ?

    Because not all routers provide local DNS

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adrian@21:1/5 to usenet@andyburns.uk on Fri Jan 27 23:33:14 2023
    In message <k3ilf5Fqp8uU1@mid.individual.net>, Andy Burns
    <usenet@andyburns.uk> writes
    Adrian wrote:

    Why doesn't it check with the router for local names ?

    Because not all routers provide local DNS

    Except, I'm running CentOS under two different VM set ups, OpenBox and
    VMware. With the VMWare machine, it works, with the OpenBox it doesn't.
    And all three work fine for everything else (various RPis, a Win10 box
    and a Ubuntu box).

    Perhaps wrongly, I'm thinking that there is some odd feature with the VM software / router combination (it all works fine with two other
    routers).


    Adrian
    --
    To Reply :
    replace "bulleid" with "adrian" - all mail to bulleid is rejected
    Sorry for the rigmarole, If I want spam, I'll go to the shops
    Every time someone says "I don't believe in trolls", another one dies.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Sat Jan 28 10:51:11 2023
    Am 27.01.2023 um 23:50:41 Uhr schrieb Adrian:

    hosts: files dns myhostname

    No mdns

    One works fine (seemingly without mdns), the other one doesn't.

    Does it query via mDNS?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adrian@21:1/5 to All on Sat Jan 28 13:49:29 2023
    In message <tr2r6f$25kfe$5@dont-email.me>, Marco Moock <mo01@posteo.de>
    writes
    Am 27.01.2023 um 23:50:41 Uhr schrieb Adrian:

    One works fine (seemingly without mdns), the other one doesn't.

    Does it query via mDNS?


    With the "working" VM, Not so far as I can tell. Unfortunately, when I
    try to run tshark, I get :

    Capturing on 'nflog'

    and I've not been able to work out how I can see the output, so I'm
    unable to see what it is doing. Whereas on the "non-working" VM tshark
    gives me output (as posted up thread).

    Adrian
    --
    To Reply :
    replace "bulleid" with "adrian" - all mail to bulleid is rejected
    Sorry for the rigmarole, If I want spam, I'll go to the shops
    Every time someone says "I don't believe in trolls", another one dies.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Sat Jan 28 15:23:57 2023
    Am 28.01.2023 um 13:49:29 Uhr schrieb Adrian:

    and I've not been able to work out how I can see the output, so I'm
    unable to see what it is doing. Whereas on the "non-working" VM
    tshark gives me output (as posted up thread).

    Do you have any filters on tshark?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adrian@21:1/5 to All on Sat Jan 28 15:09:53 2023
    In message <tr3b5t$26rmk$6@dont-email.me>, Marco Moock <mo01@posteo.de>
    writes
    Am 28.01.2023 um 13:49:29 Uhr schrieb Adrian:

    and I've not been able to work out how I can see the output, so I'm
    unable to see what it is doing. Whereas on the "non-working" VM
    tshark gives me output (as posted up thread).

    Do you have any filters on tshark?


    Not knowingly. On VMs, I run :

    $ tshark > ts.txt &
    $ <command>
    $ kill %1

    One gives me answers, the other an unhelpful message.

    Adrian
    --
    To Reply :
    replace "bulleid" with "adrian" - all mail to bulleid is rejected
    Sorry for the rigmarole, If I want spam, I'll go to the shops
    Every time someone says "I don't believe in trolls", another one dies.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)