osdir.com

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding secondary IP to VM


Did a bit of digging in database and there is a table called "nic_secondary_ips"  -



mysql> select * from nic_secondary_ips;
+----+--------------------------------------+------+-------+-------------+-------------+------------+---------------------+------------+-----------+
| id | uuid                                 | vmId | nicId | ip4_address | ip6_address | network_id | created             | account_id | domain_id |
+----+--------------------------------------+------+-------+-------------+-------------+------------+---------------------+------------+-----------+
|  2 | 57921029-893a-4400-b6ac-50d4fd006b74 |    9 |    15 | 172.30.4.80 | NULL        |        204 | 2018-07-11 09:23:06 |          2 |         1 |
+----+--------------------------------------+------+-------+-------------+-------------+------------+---------------------+------------+-----------+
1 row in set (0.00 sec)

mysql>

so that's where its' stored.

Jon

________________________________
From: Andrija Panic <andrija.panic@xxxxxxxxx>
Sent: 11 July 2018 10:40
To: users
Subject: Re: Adding secondary IP to VM

ACS doesn't handle this in any way (except that it might reserve the IP, so
it's not possible to add same IP to another VM/nic in same network).

You need to manually configure secondary IP on the VM - this is at least in
4.8 release, and per my experience so far.

Cheers.

On Wed, 11 Jul 2018 at 11:23, Jon Marshall <jms.123@xxxxxxxxxxxxx> wrote:

> I am trying to work out how CS handles additional IPs assigned to a VM.
>
>
> So using DHCP for the VMs if I log onto the virtual router in the
> "dhcphosts.txt" can see the VM maping to it's IP.
>
>
> If I then acquire a secondary IP for the VM a couple of questions -
>
>
> 1) where does the virtual router store the information because it is not
> in the DHCP file which makes sense but it must record it somewhere because
> it won't hand out that same IP to another VM (I tested it). Is it in the
> DBase somewhere
>
>
> 2) How do others handle multiple IPs on a VM ie. do you DHCP for the main
> interface and then configure static IPs for the sub interfaces or do you
> turn off DHCP altogether ?
>
>
> Many thanks
>
>
> Jon
>


--

Andrija Panić