How to create a VM instance with multiple network interfaces

0 votes
How to create a VM instance with multiple network interfaces?
Nov 12, 2019 in GCP by anonymous
• 6,260 points
2,453 views

1 answer to this question.

0 votes

You add multiple network interfaces when you create an instance.

  • On the Console, you add network interfaces on the Create an Instance page, in the Networking -> Network interfaces section.

  • On the gcloud command line tool, use the instances create command. Include the --network-interface flag for each interface, followed by any appropriate networking keys, such as ([network | subnet], private-network-ip, address).

The first interface is always created as nic0 and it is always the default interface. 

  1. Go to the Create an instance page in the Google Cloud Platform Console. 

  2. Complete the sections for the instance name, zone, machine type, and other basic aspects of the instance.

  3. Complete fields on the Management and Disks tabs.

  4. On the Networking tab, click Add network interface.

  5. Choose a network.

  6. If there are multiple subnets in the VPC network, choose a subnet.

  7. To assign a custom internal IP address to the interface, on the Internal IP drop-down menu, choose Custom and then type in the IP address.

  8. To indicate that you do not want an external IP address, on the External IP drop-down menu, choose None.

  9. To assign a static external IP address, on the External IP drop-down menu, choose New static IP, type in the Name and description and click Reserve.

  10. To enable IP forwarding, choose On on the IP forwarding drop-down menu.

  11. To add more network interfaces, click Add network interface and follow steps 5-10 above

answered Nov 12, 2019 by Sirajul
• 59,230 points
Add a network interface to an existing VM.
What is the maximum no of network interfaces that a VM can have?

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer

How to add a PTR record to my VM instance on gcp?

If your VM instance uses the primary ...READ MORE

answered Sep 26, 2019 in GCP by Sirajul
• 59,230 points
1,826 views
0 votes
1 answer

How to add a regional persistent disk to a VM instance on GCP?

You must first create the regional persistent ...READ MORE

answered Oct 18, 2019 in GCP by Sirajul
• 59,230 points
2,718 views
0 votes
1 answer

GCP Error: 403: Access Denied

Check that your credentials are correct. For ...READ MORE

answered Oct 9, 2019 in GCP by Sirajul
• 59,230 points
3,978 views
0 votes
1 answer

Permissions issue with Google Cloud Storage Bucket.

You can regain access to the object by assigning an applicable role, like roles/storage.objectAdmin, to ...READ MORE

answered Oct 10, 2019 in GCP by Sirajul
• 59,230 points
4,905 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How do I create a preemptible virtual machine (VM) instance?

With gcloud compute, use the same instances create command that ...READ MORE

answered Sep 23, 2019 in GCP by Sirajul
• 59,230 points
1,437 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP