Overview

A virtual router network (vRouter network) mainly uses custom Linux VM instances as route devices. The vRouter VM instances provide many network services, such as DHCP, DNS, SNAT, vRouter table, elastic IP (EIP), port forwarding, load balancing, IPsec tunnel, and security group.

A vRouter network mainly includes a vRouter image, vRouter offering, and vRouter.
  • vRouter image: Encapsulates many network services, and is used only to create vRouters.
  • vRouter offering: Defines the resources used by a vRouter, including the CPU, memory, vRouter image, public network, and management network.
  • vRouter: Acts as a custom Linux VM instance and provides network services such as DHCP, DNS, SNAT, route table, EIP, port forwarding, load balancing, IPsec tunnel, and security group.

vRouter Network Topology

A vRouter VM instance mainly includes the following three basic networks:
  • Public network

    Provides virtual IPs for user VM instances that use EIP, port forwarding, load balancing, and IPsec tunnel. Generally, the public network must be accessible to the Internet.

  • Management network

    Manages and controls the corresponding physical resources, such as a host, backup storage, and primary storage, of whose resources can be reached by using an IP address.

  • Private network

    Also known as the business network or the access network and is the internal network used by VM instances.

Here is the deployment mode of the vRouter network.
  • You can combine the public network and the management network, while deploying the private network independently, as shown in Deployment Mode-1.
    Figure 1. Deployment Mode-1


  • You can deploy the public network, management network, and private network separately, as shown in Deployment Mode-2.
    Figure 2. Deployment Mode-2


vRouter Network Service

The vRouter VM instances provide a collection of network services, including the DHCP, DNS, SNAT, route table, EIP, port forwarding, load balancing, IPsec tunnel, and security group.

  • DHCP
    • In a vRouter, the DHCP service is provided by the flat network by default.
  • DNS
    • A vRouter can act as a DNS server to provide the DNS service.
    • The DNS address in a vRouter VM instance is the vRouter IP address. Note that the DNS address that you set is forwarded by the vRouter.
  • SNAT
    • A vRouter can act as a router to translate the source network address for VM instances.
    • VM instances can directly access the Internet by using SNAT.
  • We will introduce the vRouter table, security group, EIP, port forwarding, load balancing, and IPsec in specific sections.

Inventory

Properties

Name Description Optional Optional Value Starting Version
uuid The UUID. For more information, see Resource Property. 0.6
name The name. For more information, see Resource Property. 0.6
description The description. For more information, see Resource Property. Yes 0.6
agentPort 0.6
allocatorStrategy The allocator strategy.
  • DefaultHostAllocatorStrategy
  • LastHostPreferredAllocatorStrategy
  • LeastVmPreferredHostAllocatorStrategy
  • MinimumCPUUsageHostAllocatorStrategy
  • MinimumMemoryUsageHostAllocatorStrategy
  • MaxInstancePerHostHostAllocatorStrategy
0.6
applianceVmType The type of special VM instance. 0.6
clusterUuid The cluster UUID. 0.6
zoneUuid The zone UUID. 0.6
cpuNum The CPU count. 0.6
cpuSpeed 0.6
defaultL3NetworkUuid The default L3 network UUID. 0.6
defaultRouteL3NetworkUuid The UUID of the L3 network that provides default routing in a vRouter VM instance. 0.6
hostUuid The host UUID. 0.6
lastHostUuid The UUID of the host where the vRouter VM instance was located last time. 0.6
imageUuid The image UUID. 0.6
rootVolumeUuid The root volume UUID. 0.6
instanceOfferingUuid The instance offering UUID. 0.6
managementNetworkUuid The management network UUID. 0.6
publicNetworkUuid The public network UUID. 0.6
memorySize The memory size. 0.6
hypervisorType The hypervisor type. 0.6
platform 0.6
state The state.
  • Enabled
  • Disabled
0.6
status The status. 0.6
groupBy
createDate The creation date. For more information, see Resource Property. 0.6
lastOpDate The last operation date. For more information, see Resource Property. 0.6
type The type.
  • UserVm
  • ApplianceVm
0.6

Sample

{     "inventories": [         {             "agentPort": 7272,             "allVolumes": [                 {                     "actualSize": 293641216,                     "createDate": "Nov 10, 2017 2:59:57 PM",                     "description": "Root volume for VM[uuid:f90177b78a3d4f399f32bf84af32afde]",                     "deviceId": 0,                     "format": "qcow2",                     "installPath": "/zstack_ps_nxs/rootVolumes/acct-36c27e8ff05c4780bf6d2fa65700f22e/vol-47401aeef0b54ec\ f90b831f2e250c098/47401aeef0b54ecf90b831f2e250c098.qcow2",                     "isShareable": false,                     "lastOpDate": "Nov 10, 2017 2:59:57 PM",                     "name": "ROOT-for-vrouter.l3.L3-vRouter-2.e293d6",                     "primaryStorageUuid": "cae8726c90784ba0946f852952731268",                     "rootImageUuid": "ef614d2e1db7536a8fb8260a05074ae4",                     "size": 8589934592,                     "state": "Enabled",                     "status": "Ready",                     "type": "Root",                     "uuid": "47401aeef0b54ecf90b831f2e250c098",                     "vmInstanceUuid": "f90177b78a3d4f399f32bf84af32afde"                 }             ],             "allocatorStrategy": "LeastVmPreferredHostAllocatorStrategy",             "applianceVmType": "vrouter",             "clusterUuid": "967a353c2893409dab9312cf3033a98c",             "cpuNum": 1,             "cpuSpeed": 0,             "createDate": "Nov 10, 2017 2:59:57 PM",             "defaultRouteL3NetworkUuid": "cdb7f3151c50453ba0e8c89356e250f6",             "hostUuid": "aec5230c3eee40e4998bec50a1c2eae8",             "hypervisorType": "KVM",             "imageUuid": "ef614d2e1db7536a8fb8260a05074ae4",             "instanceOfferingUuid": "fa550cb9bdcc4fd397ae37f9ddf4c390",             "lastHostUuid": "aec5230c3eee40e4998bec50a1c2eae8",             "lastOpDate": "Nov 16, 2017 11:07:30 AM",             "managementNetworkUuid": "cdb7f3151c50453ba0e8c89356e250f6",             "memorySize": 1073741824,             "name": "vrouter.l3.L3-vRouter-2.e293d6",             "platform": "Linux",             "publicNetworkUuid": "cdb7f3151c50453ba0e8c89356e250f6",             "rootVolumeUuid": "47401aeef0b54ecf90b831f2e250c098",             "state": "Running",             "status": "Connected",             "type": "ApplianceVm",             "uuid": "f90177b78a3d4f399f32bf84af32afde",             "vmNics": [                 {                     "createDate": "Nov 10, 2017 2:59:57 PM",                     "deviceId": 1,                     "gateway": "192.168.23.1",                     "ip": "192.168.23.1",                     "l3NetworkUuid": "e293d67b0e4a4b438f15b768cacb6eaf",                     "lastOpDate": "Nov 10, 2017 2:59:57 PM",                     "mac": "fa:63:dd:7a:56:01",                     "metaData": "4",                     "netmask": "255.255.255.0",                     "uuid": "281f9ac039c44bb18337217543e551ea",                     "vmInstanceUuid": "f90177b78a3d4f399f32bf84af32afde"                 },                 {                     "createDate": "Nov 10, 2017 2:59:57 PM",                     "deviceId": 0,                     "gateway": "10.0.0.1",                     "ip": "10.141.26.16",                     "l3NetworkUuid": "cdb7f3151c50453ba0e8c89356e250f6",                     "lastOpDate": "Nov 10, 2017 2:59:57 PM",                     "mac": "fa:31:50:c4:d3:00",                     "metaData": "3",                     "netmask": "255.0.0.0",                     "uuid": "402dc6bf37734753be3661be3d120652",                     "vmInstanceUuid": "f90177b78a3d4f399f32bf84af32afde"                 }             ],             "zoneUuid": "e59b71e99d8a4ea1952b578388b8cd1d"         }     ],     "success": true }



















Back to Top

Download

Already filled the basic info?Click here.

Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

An email with a verification code will be sent to you. Make sure the address you provided is valid and correct.

Download

Not filled the basic info yet? Click here.

Invalid email address or mobile number.

Email Us

contact@zstack.io
ZStack Training and Certification
Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

Email Us

contact@zstack.io
Request Trial
Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

Email Us

contact@zstack.io

The download link is sent to your email address.

If you don't see it, check your spam folder, subscription folder, or AD folder. After receiving the email, click the URL to download the documentation.

The download link is sent to your email address.

If you don't see it, check your spam folder, subscription folder, or AD folder.
Or click on the URL below. (For Internet Explorer, right-click the URL and save it.)

Thank you for using ZStack products and services.

Submit successfully.

We'll connect soon.

Thank you for using ZStack products and services.