Information on NICs and how to create them.
The number of NICs that can be attached to your router VM varies depending on the VM size. For more details about the mapping of VM size to maximum number of NICs, see https://azure.microsoft.com/en-gb/documentation/articles/virtual-machines-linux-sizes/
Each NIC belongs to a subnet and can optionally have a public IP address attached to it. The NIC is always assigned an IP address within your subnet address range, and the Azure infrastructure gateway uses NAT to translate the public IP address to the NIC IP address. In addition, each NIC has an IP-forwarding setting, which tells the Azure fabric whether it should expect this NIC to send packets with a different source IP address than its own. Enable this setting on any router NIC that acts as part of the data path.
A NIC can be created by using the azure network nic create <resource-group> <name> <location> command as follows:
$ azure network nic create --subnet-vnet-name Net --subnet-name Frontend-Subnet --public-ip-name vRouter1-IP --private-ip-address 10.0.0.4 --enable-ip-forwarding true vRouter vRouter1-Frontend-NIC westus info: Executing command network nic create + Looking up the network interface "vRouter1-Frontend-NIC" + Looking up the subnet "Frontend-Subnet" + Looking up the public ip "vRouter1-IP" + Creating network interface "vRouter1-Frontend-NIC" data: Id : /subscriptions/00000000-0000-0000-0000-0000000000000/resourceGroups/vRoute r/providers/Microsoft.Network/networkInterfaces/vRouter1-Frontend-NIC data: Name : vRouter1-Frontend-NIC data: Type : Microsoft.Network/networkInterfaces data: Location : westus data: Provisioning state : Succeeded data: Internal domain name suffix : wlsosiwaajyerbkjndrs4x1gzc.dx.internal.cloudapp.net data: Enable IP forwarding : true data: IP configurations: data: Name : default-ip-config data: Provisioning state : Succeeded data: Private IP address : 10.0.0.4 data: Private IP version : IPv4 data: Private IP allocation method : Static data: Public IP address : /subscriptions/00000000-0000-0000-0000-0000000000000/resourceGroups/vRoute r/providers/ Microsoft.Network/publicIPAddresses/vRouter1-IP data: Subnet : /subscriptions/00000000-0000-0000-0000-0000000000000/resourceGroups/vRoute r/providers/ Microsoft.Network/virtualNetworks/Net/subnets/Frontend-Subnet data: info: network nic create command OK