Deploy a CSR 1000v by Using a Solution Template

You can deploy a CSR 1000v router in Google Cloud Platform (GCP) in two ways: by using a VM instance, or by using a solution template. This chapter specifies how you can deploy a CSR 1000v solution template and the configuration of the associated resources in the service provider’s cloud.

Create an SSH Key

To create an SSH key, which is required to access a Cisco CSR 1000v VM instance, perform the following steps. Enter the commands at a terminal server.

Procedure


Step 1

Execute ssh-keygen -t rsa -f ~/.ssh/keyfile [ -C username]

~/.ssh/keyfile - Directory path and filename of the key. Example:/users/joe/.ssh/mykey.

-C username - Username, which is added as a comment. This variable is optional.

Two key files are created; a private key and a public key in the .ssh directory. For example, mykey and mykey.pub.

For more information on creating an SSH key, see Creating a new SSH key in the Google Cloud Platform documentation. See also Managing SSH keys in Metadata.

Example:

ssh-keygen -t rsa -f /users/joe/.ssh/mykey -C joe

Step 2

cat ~/.ssh/[keyfile_pub]

keyfile_pub specifies the public key; for example, mykey.pub.

Example:

Example: cat /users/joe/.ssh/mykey.pub

The system displays the contents of the public key. You will need this public key to Create a VM Instance.


Create a VPC Network

Before you begin

To learn about VPC networks, see: Virtual Private Cloud (VPC) Network Overview and Using VPC Networks.

Procedure


Step 1

From the navigation pane in the Google Cloud Platform console, scroll down to VPC network and select VPC networks.

Step 2

Click Create VPC Network.

Step 3

Enter a Name for the network. CREATE VPC NETWORK.

Step 4

Enter a Description for the network.

Step 5

Select Subnets > Add Subnet.

Step 6

In the New Subnet dialog box, Enter a Name for the subnet. For example, csrnet1.

Step 7

Select the appropriate option in the Region field.

Step 8

Enter an IP address range. For example, enter 10.10.1.0/24 for the subnet address.

Step 9

Click Done to create the subnet.

To create multiple subnets for the VPC network, repeat steps 5 to 9.

Step 10

Click Create to create the VPN Network.


Deploy the CSR Solution Template

Procedure


Step 1

Go to the Google Marketplace and search for Cisco CSR100v. Select the CSR Template.

Figure 1. Select CSR Deployment Template
Select CSR Deployment Template-GCP
Step 2

Click Launch On Compute Engine.

Step 3

In the New Cisco 1000v Deployment screen, provide the following details:

  1. Deployment name: This field is filled by default, and displays the cisco-csr1000v-‘deployment number’

  2. Instance Name: The name of the CSR 1000v instance in text format. You must follow the GCP naming pattern for successful deployment. The name of the instance must be a combination of regex '(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)'">)

  3. Username: Specify the username that is used to access the CSR 1000v instance.

  4. Instance SSH Key: Specify the public key to be used for SSHing into the instance. To know how to create an ssh-key, see SSH-Key.

  5. Zone: Select the zone where the CSR 1000v is deployed from the drop-down list.

  6. Machine Type: Select the size of the CSR 1000v that you want to deploy. For more information on CSR 1000v sizes, see MachineTypes.

    Bootdisk
  7. Bootdisk type: By default, the SSD Persistent disk is selected. Cisco recommends that you use the default Boot disk type.

  8. Boot disk size in GB: The default value is 10 GB. Cisco recommends that you use the default Boot disk size.

    Networking
  9. Network (VPC): Select the network in the region where you want to deploy the CSR 1000v instance. You must create the Network (VPC) before you create the CSR 1000v instance. Ensure that at least one subnet is associated to that Network (VPC). For more information about VPC networks, see Virtual Private Cloud Network Overview and Using VPC Networks.

  10. Subnetwork: Select the subnet that is associated with the selected Network (VPC). This subnet acts as the first Network Interface (nic0) of the CSR instance.

  11. ExternalIP: The public IP address that you must use to SSH into the CSR 1000v instance. This can be static, Ephemeral (Dynamic) and None. For more information about IP addresses, see IP Addresses.

  12. Firewall: The firewall wall rule associated to the VPC Network.With the current Solution Template, you can use TCP ports 21, 22, 80. You can also create additional Firewall rules. For more information on firewall rules, see Firewalls in VPC Networking and Firewalls.

    Note 

    You can also specify source ranges for firewalls rules.

  13. IP Forwarding: The default value to allow traffic between interfaces on the CSR 1000v instance. By default, the value for IP Forwarding is ON.

    Figure 2. New CSR 1000v Deployment Screen
    New CSR 1000v Deployment Screen - GCP
  14. Additional Network Interfaces: Configure this field if you want to configure additional interfaces. By default, the value of this field is 0. To add additional interfaces, specify additional interfaces that are needed for the CSR 1000v instance. Select the additional network interfaces based on the machine type. For more information on deployment of instance with multiple interfaces in GCP, see Creating Instances With Multiple Network Interfaces.

    Figure 3. Additional Network Interfaces
    Configure Additional Network Interfaces - GCP
    Note 

    For the deployment to be successful, even if you do not require all the additional interfaces, you must select the Additional Network Interfaces option. This is a known issue where Google brings up to 8 interfaces, and you must fill in all the eight interfaces.

    For example, in the following image, even though two additional NICs were selected, note that the 7 additional interfaces are configured with the networks and subnets present in region where the CSR 1000v instance is deployed.

    After successful deployment, the system displays a message that the CSR instance has been deployed.
Figure 4. Verify successful deployment
Verify successful deployment - GCP solution template