Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Two IPv4 addresses in VM but only one NIC

  1. #11
    Join Date
    May 2007
    Location
    NY's first capital
    Beans
    2,868
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Two IPv4 addresses in VM but only one NIC

    Quote Originally Posted by linuxnoob87 View Post
    One other piece of info: If I check the MAC addresses for the .139 and .190 address they're exactly the same.
    I know you don't want down time, but you can prove if there is an arp issue
    if you boot a live "CD/USB" and see if those addresses are still pingable.
    If they are, you can rule out config on the server.
    Nothing is ever easy, but if it is difficult you must be doing it wrong.

  2. #12
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,558
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Two IPv4 addresses in VM but only one NIC

    I am still confused how come netplan didn't create any configuration on install. Possible arp remains in the switches are valid point but I do not think it is the issue. They should be cleared after a while anyway otherwise IP changes in a network would be impossible.

    I know it is difficult to play around with production servers, but because all of this is very confusing, I would try commenting out the .139 setup you did in /etc/network/interfaces and reboot. If the server starts responding only to .190 that would prove the theory that it is somewhere configured (although we can't figure out where ).

    If that is the case, I would even try using the command line and 'ip' command to try replacing the IP like that, and to continue the investigation... Basically that command could show a lot (with correct parameters) although I have never needed to use it because I have always worked with /etc/network/interfaces and I still haven't installed my first 18.04 to start using netplan.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  3. #13
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    7,699

    Re: Two IPv4 addresses in VM but only one NIC

    As .190 doesn't show in ifconfig, maybe it's not an assigned address. Does it show up in the output of command "ip address list"?

    I wonder if it's a NAT redirect entry somewhere. See if this command outputs anything: "sudo iptables-save | grep 190".

  4. #14
    Join Date
    Mar 2018
    Beans
    55

    Re: Two IPv4 addresses in VM but only one NIC

    I might be able to try this tonight; if so I'll report back with the findings.

  5. #15
    Join Date
    Mar 2018
    Beans
    55

    Re: Two IPv4 addresses in VM but only one NIC

    Code:
    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: ens160: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
        link/ether 00:0c:29:d7:a8:20 brd ff:ff:ff:ff:ff:ff
        inet 172.16.249.139/24 brd 172.16.249.255 scope global ens160
           valid_lft forever preferred_lft forever
        inet 172.16.249.190/24 brd 172.16.249.255 scope global secondary ens160
           valid_lft forever preferred_lft forever
        inet6 fe80::20c:29ff:fed7:a820/64 scope link 
           valid_lft forever preferred_lft forever

  6. #16
    Join Date
    Mar 2018
    Beans
    55

    Re: Two IPv4 addresses in VM but only one NIC

    "sudo iptables-save | grep 190" doesn't output anything after entering in my admin password.

  7. #17
    Join Date
    Mar 2018
    Beans
    55

    Re: Two IPv4 addresses in VM but only one NIC

    I know you don't want down time, but you can prove if there is an arp issue
    if you boot a live "CD/USB" and see if those addresses are still pingable.
    If they are, you can rule out config on the server.
    Booted up off a linux live disc. Could not ping .139 or .190. Live OS only showed one NIC in the system.


    https://imgur.com/a/bfgsH5w

  8. #18
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,558
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Two IPv4 addresses in VM but only one NIC

    Well the output in post #15 shows both IPs as configured on that single interface. The harder part seems to be to find how and where... The 'ip' command should also have options to delete an IP, in this case the .190. I just haven't used it before and I'm little busy to google right now. I'll try later if you don't resolve it...
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  9. #19
    Join Date
    Mar 2018
    Beans
    55

    Re: Two IPv4 addresses in VM but only one NIC

    I'll google and report back...

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •