Re: Multiple NIC on Instances - IP DHCP

2021-12-27 Thread Ricardo Andres Pertuz de las Salas
Got it..many thanks!

On 27/12/21, 1:47 PM, "Vivek Kumar"  wrote:

Yups..! So you have only one ethernet configuration  in your network 
config, add another and see if it works or not. You can use “ip a” command to 
get the second ethernet name. 


Vivek Kumar
Sr. Manager - Cloud & DevOps 
IndiQus Technologies
24*7  O +91 11 4055 1411  |   M +91 7503460090 
www.indiqus.com


> On 28-Dec-2021, at 12:14 AM, Ricardo Andres Pertuz de las Salas 
 wrote:
> 
> Thanks Vivek,
> 
> So I guess something like it on the netplan:
> 
> network:
>ethernets:
>ens3:
>dhcp4: true
>version: 2
> 
> On 27/12/21, 1:41 PM, "Vivek Kumar"  
wrote:
> 
>Hello Ricaro,
> 
>You have to configure your second ethernet in your OS so that it can 
fetch the IP from DHCP, So typically you have eth0 which gets the IP from DHCP, 
If  you are adding your VM to multiple networks, then make sure that OS has 
muliple ethernet present inside the OS, i.e eth0, eth1 in DHCP mode. 
> 
> 
> 
>Vivek Kumar
>Sr. Manager - Cloud & DevOps 
>IndiQus Technologies
>24*7  O +91 11 4055 1411  |   M +91 7503460090 
>www.indiqus.com
> 
> 
>> On 28-Dec-2021, at 12:07 AM, Ricardo Andres Pertuz de las Salas 
 wrote:
>> 
>> Hi team,
>> 
>> When I connect a second NIC on Ubuntu instances, on the creation or 
afterwards, it doesn’t get an IP address on the operating systme so I have to 
call the dhclient command or put it manually. Is it possible to get the IP 
automatically and permanent?
>> 
>> BR,
>> 
>> Ricardo
> 
> 




Re: Multiple NIC on Instances - IP DHCP

2021-12-27 Thread Vivek Kumar
Yups..! So you have only one ethernet configuration  in your network config, 
add another and see if it works or not. You can use “ip a” command to get the 
second ethernet name. 


Vivek Kumar
Sr. Manager - Cloud & DevOps 
IndiQus Technologies
24*7  O +91 11 4055 1411  |   M +91 7503460090 
www.indiqus.com


> On 28-Dec-2021, at 12:14 AM, Ricardo Andres Pertuz de las Salas 
>  wrote:
> 
> Thanks Vivek,
> 
> So I guess something like it on the netplan:
> 
> network:
>ethernets:
>ens3:
>dhcp4: true
>version: 2
> 
> On 27/12/21, 1:41 PM, "Vivek Kumar"  wrote:
> 
>Hello Ricaro,
> 
>You have to configure your second ethernet in your OS so that it can fetch 
> the IP from DHCP, So typically you have eth0 which gets the IP from DHCP, If  
> you are adding your VM to multiple networks, then make sure that OS has 
> muliple ethernet present inside the OS, i.e eth0, eth1 in DHCP mode. 
> 
> 
> 
>Vivek Kumar
>Sr. Manager - Cloud & DevOps 
>IndiQus Technologies
>24*7  O +91 11 4055 1411  |   M +91 7503460090 
>www.indiqus.com
> 
> 
>> On 28-Dec-2021, at 12:07 AM, Ricardo Andres Pertuz de las Salas 
>>  wrote:
>> 
>> Hi team,
>> 
>> When I connect a second NIC on Ubuntu instances, on the creation or 
>> afterwards, it doesn’t get an IP address on the operating systme so I have 
>> to call the dhclient command or put it manually. Is it possible to get the 
>> IP automatically and permanent?
>> 
>> BR,
>> 
>> Ricardo
> 
> 



Re: Multiple NIC on Instances - IP DHCP

2021-12-27 Thread Ricardo Andres Pertuz de las Salas
Thanks Vivek,

So I guess something like it on the netplan:

network:
ethernets:
ens3:
dhcp4: true
version: 2

On 27/12/21, 1:41 PM, "Vivek Kumar"  wrote:

Hello Ricaro,

You have to configure your second ethernet in your OS so that it can fetch 
the IP from DHCP, So typically you have eth0 which gets the IP from DHCP, If  
you are adding your VM to multiple networks, then make sure that OS has muliple 
ethernet present inside the OS, i.e eth0, eth1 in DHCP mode. 



Vivek Kumar
Sr. Manager - Cloud & DevOps 
IndiQus Technologies
24*7  O +91 11 4055 1411  |   M +91 7503460090 
www.indiqus.com


> On 28-Dec-2021, at 12:07 AM, Ricardo Andres Pertuz de las Salas 
 wrote:
> 
> Hi team,
> 
> When I connect a second NIC on Ubuntu instances, on the creation or 
afterwards, it doesn’t get an IP address on the operating systme so I have to 
call the dhclient command or put it manually. Is it possible to get the IP 
automatically and permanent?
> 
> BR,
> 
> Ricardo




Re: Multiple NIC on Instances - IP DHCP

2021-12-27 Thread Vivek Kumar
Hello Ricaro,

You have to configure your second ethernet in your OS so that it can fetch the 
IP from DHCP, So typically you have eth0 which gets the IP from DHCP, If  you 
are adding your VM to multiple networks, then make sure that OS has muliple 
ethernet present inside the OS, i.e eth0, eth1 in DHCP mode. 



Vivek Kumar
Sr. Manager - Cloud & DevOps 
IndiQus Technologies
24*7  O +91 11 4055 1411  |   M +91 7503460090 
www.indiqus.com


> On 28-Dec-2021, at 12:07 AM, Ricardo Andres Pertuz de las Salas 
>  wrote:
> 
> Hi team,
> 
> When I connect a second NIC on Ubuntu instances, on the creation or 
> afterwards, it doesn’t get an IP address on the operating systme so I have to 
> call the dhclient command or put it manually. Is it possible to get the IP 
> automatically and permanent?
> 
> BR,
> 
> Ricardo



Multiple NIC on Instances - IP DHCP

2021-12-27 Thread Ricardo Andres Pertuz de las Salas
Hi team,

When I connect a second NIC on Ubuntu instances, on the creation or afterwards, 
it doesn’t get an IP address on the operating systme so I have to call the 
dhclient command or put it manually. Is it possible to get the IP automatically 
and permanent?

BR,

Ricardo