How to create a VM instance with multiple network interfaces?

0 votes
How to create a VM instance with multiple network interfaces?
Nov 12 in GCP by anonymous
• 4,330 points
62 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 by Sirajul
• 41,000 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
0 votes
1 answer

GCP Error: 403: Access Denied

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

answered Oct 9 in GCP by Sirajul
• 41,000 points
36 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 in GCP by Sirajul
• 41,000 points
112 views
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 in GCP by Sirajul
• 41,000 points
73 views