You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Ricardo Pertuz <ri...@kuasar.co> on 2022/02/10 14:52:19 UTC

reusing same IP on VM

Hi team,

I have a instance with a certain IP and when delete it and recreate it with the same IP, the network access is lost

I have hypervisors which exchange vxlan info via bgp and it is working properly and getting updates accordingly however when I check the VR arp table it got the following

? (10.140.60.10) at <incomplete> on eth2

Is it a parameter I need to change or something to configure?

Many thanks!



Re: reusing same IP on VM

Posted by Ricardo Pertuz <ri...@kuasar.co>.
Hi Wei,

Thanks, cleaning up worked, the version 4.15.1. Can we consider this a as bug or is it the expected behavior? 

On 10/02/22, 1:04 PM, "Wei ZHOU" <us...@gmail.com> wrote:

    Do you use 4.15.0.0 or 4.15.1.0 ?

    try restarting the network with cleanup.

    -Wei

    On Thu, 10 Feb 2022 at 16:59, Ricardo Pertuz <ri...@kuasar.co>
    wrote:

    > Thanks Wei,
    >
    > I removed the record and reload the daemon, it took the new mac but not
    > working yet
    >
    > /etc/dhcphosts.txt file has the correct mac address
    >
    > 02:00:21:4a:00:12,10.140.60.10,hostname,infinite
    >
    > But /var/lib/misc/dnsmasq.leases
    >
    > Keeps adding the old bad ones and many times
    >
    > 0 02:00:03:84:00:09 10.140.60.10 *
    > ff:b5:5e:67:ff:00:02:00:00:ab:11:8e:3a:a2:88:d5:b5:a5:37
    > 0 02:00:18:4a:00:08 10.140.60.10 * *
    > 0 02:00:5a:27:00:04 10.140.60.10  hostname*
    >
    > Environment
    > -----------------
    > Hyp: KVM
    > Version: 4.15
    > Network: VR VPC
    >
    > Regards
    >
    > On 10/02/22, 10:18 AM, "Wei ZHOU" <us...@gmail.com> wrote:
    >
    >     Hi Ricardo,
    >
    >     You can remove the wrong record in /etc/dhcphosts.txt in VR and run
    >     `systemctl reload dnsmasq`.
    >
    >     PS; could you please give more info, e.g. cloudstack version,
    > hypervisor,
    >     etc.
    >
    >     -Wei
    >
    >
    >     On Thu, 10 Feb 2022 at 16:05, Ricardo Pertuz <ricardo.pertuz@kuasar.co
    > >
    >     wrote:
    >
    >     > The dnsmasq lease has multiple entries for the same IP
    >     >
    >     > 0 02:00:18:4a:00:08 10.140.60.10 * *
    >     > 0 02:00:5a:27:00:04 10.140.60.10 * *
    >     >
    >     > Do you guys know, how do I automate the clean or update?
    >     >
    >     > On 10/02/22, 9:52 AM, "Ricardo Pertuz" <ri...@kuasar.co>
    > wrote:
    >     >
    >     >     Hi team,
    >     >
    >     >     I have a instance with a certain IP and when delete it and
    > recreate it
    >     > with the same IP, the network access is lost
    >     >
    >     >     I have hypervisors which exchange vxlan info via bgp and it is
    > working
    >     > properly and getting updates accordingly however when I check the VR
    > arp
    >     > table it got the following
    >     >
    >     >     ? (10.140.60.10) at <incomplete> on eth2
    >     >
    >     >     Is it a parameter I need to change or something to configure?
    >     >
    >     >     Many thanks!
    >     >
    >     >
    >     >
    >     >
    >
    >


Re: reusing same IP on VM

Posted by Wei ZHOU <us...@gmail.com>.
Do you use 4.15.0.0 or 4.15.1.0 ?

try restarting the network with cleanup.

-Wei

On Thu, 10 Feb 2022 at 16:59, Ricardo Pertuz <ri...@kuasar.co>
wrote:

> Thanks Wei,
>
> I removed the record and reload the daemon, it took the new mac but not
> working yet
>
> /etc/dhcphosts.txt file has the correct mac address
>
> 02:00:21:4a:00:12,10.140.60.10,hostname,infinite
>
> But /var/lib/misc/dnsmasq.leases
>
> Keeps adding the old bad ones and many times
>
> 0 02:00:03:84:00:09 10.140.60.10 *
> ff:b5:5e:67:ff:00:02:00:00:ab:11:8e:3a:a2:88:d5:b5:a5:37
> 0 02:00:18:4a:00:08 10.140.60.10 * *
> 0 02:00:5a:27:00:04 10.140.60.10  hostname*
>
> Environment
> -----------------
> Hyp: KVM
> Version: 4.15
> Network: VR VPC
>
> Regards
>
> On 10/02/22, 10:18 AM, "Wei ZHOU" <us...@gmail.com> wrote:
>
>     Hi Ricardo,
>
>     You can remove the wrong record in /etc/dhcphosts.txt in VR and run
>     `systemctl reload dnsmasq`.
>
>     PS; could you please give more info, e.g. cloudstack version,
> hypervisor,
>     etc.
>
>     -Wei
>
>
>     On Thu, 10 Feb 2022 at 16:05, Ricardo Pertuz <ricardo.pertuz@kuasar.co
> >
>     wrote:
>
>     > The dnsmasq lease has multiple entries for the same IP
>     >
>     > 0 02:00:18:4a:00:08 10.140.60.10 * *
>     > 0 02:00:5a:27:00:04 10.140.60.10 * *
>     >
>     > Do you guys know, how do I automate the clean or update?
>     >
>     > On 10/02/22, 9:52 AM, "Ricardo Pertuz" <ri...@kuasar.co>
> wrote:
>     >
>     >     Hi team,
>     >
>     >     I have a instance with a certain IP and when delete it and
> recreate it
>     > with the same IP, the network access is lost
>     >
>     >     I have hypervisors which exchange vxlan info via bgp and it is
> working
>     > properly and getting updates accordingly however when I check the VR
> arp
>     > table it got the following
>     >
>     >     ? (10.140.60.10) at <incomplete> on eth2
>     >
>     >     Is it a parameter I need to change or something to configure?
>     >
>     >     Many thanks!
>     >
>     >
>     >
>     >
>
>

Re: reusing same IP on VM

Posted by Ricardo Pertuz <ri...@kuasar.co>.
Thanks Wei,

I removed the record and reload the daemon, it took the new mac but not working yet

/etc/dhcphosts.txt file has the correct mac address

02:00:21:4a:00:12,10.140.60.10,hostname,infinite

But /var/lib/misc/dnsmasq.leases

Keeps adding the old bad ones and many times

0 02:00:03:84:00:09 10.140.60.10 * ff:b5:5e:67:ff:00:02:00:00:ab:11:8e:3a:a2:88:d5:b5:a5:37
0 02:00:18:4a:00:08 10.140.60.10 * *
0 02:00:5a:27:00:04 10.140.60.10  hostname*

Environment
-----------------
Hyp: KVM
Version: 4.15
Network: VR VPC

Regards

On 10/02/22, 10:18 AM, "Wei ZHOU" <us...@gmail.com> wrote:

    Hi Ricardo,

    You can remove the wrong record in /etc/dhcphosts.txt in VR and run
    `systemctl reload dnsmasq`.

    PS; could you please give more info, e.g. cloudstack version, hypervisor,
    etc.

    -Wei


    On Thu, 10 Feb 2022 at 16:05, Ricardo Pertuz <ri...@kuasar.co>
    wrote:

    > The dnsmasq lease has multiple entries for the same IP
    >
    > 0 02:00:18:4a:00:08 10.140.60.10 * *
    > 0 02:00:5a:27:00:04 10.140.60.10 * *
    >
    > Do you guys know, how do I automate the clean or update?
    >
    > On 10/02/22, 9:52 AM, "Ricardo Pertuz" <ri...@kuasar.co> wrote:
    >
    >     Hi team,
    >
    >     I have a instance with a certain IP and when delete it and recreate it
    > with the same IP, the network access is lost
    >
    >     I have hypervisors which exchange vxlan info via bgp and it is working
    > properly and getting updates accordingly however when I check the VR arp
    > table it got the following
    >
    >     ? (10.140.60.10) at <incomplete> on eth2
    >
    >     Is it a parameter I need to change or something to configure?
    >
    >     Many thanks!
    >
    >
    >
    >


Re: reusing same IP on VM

Posted by Wei ZHOU <us...@gmail.com>.
Hi Ricardo,

You can remove the wrong record in /etc/dhcphosts.txt in VR and run
`systemctl reload dnsmasq`.

PS; could you please give more info, e.g. cloudstack version, hypervisor,
etc.

-Wei


On Thu, 10 Feb 2022 at 16:05, Ricardo Pertuz <ri...@kuasar.co>
wrote:

> The dnsmasq lease has multiple entries for the same IP
>
> 0 02:00:18:4a:00:08 10.140.60.10 * *
> 0 02:00:5a:27:00:04 10.140.60.10 * *
>
> Do you guys know, how do I automate the clean or update?
>
> On 10/02/22, 9:52 AM, "Ricardo Pertuz" <ri...@kuasar.co> wrote:
>
>     Hi team,
>
>     I have a instance with a certain IP and when delete it and recreate it
> with the same IP, the network access is lost
>
>     I have hypervisors which exchange vxlan info via bgp and it is working
> properly and getting updates accordingly however when I check the VR arp
> table it got the following
>
>     ? (10.140.60.10) at <incomplete> on eth2
>
>     Is it a parameter I need to change or something to configure?
>
>     Many thanks!
>
>
>
>

Re: reusing same IP on VM

Posted by Ricardo Pertuz <ri...@kuasar.co>.
The dnsmasq lease has multiple entries for the same IP

0 02:00:18:4a:00:08 10.140.60.10 * *
0 02:00:5a:27:00:04 10.140.60.10 * *

Do you guys know, how do I automate the clean or update?

On 10/02/22, 9:52 AM, "Ricardo Pertuz" <ri...@kuasar.co> wrote:

    Hi team,

    I have a instance with a certain IP and when delete it and recreate it with the same IP, the network access is lost

    I have hypervisors which exchange vxlan info via bgp and it is working properly and getting updates accordingly however when I check the VR arp table it got the following

    ? (10.140.60.10) at <incomplete> on eth2

    Is it a parameter I need to change or something to configure?

    Many thanks!