|
| 1 | +--- |
| 2 | +title: Troubleshooting network virtual appliance issues in Azure | Microsoft Docs |
| 3 | +description: Learn how to troubleshoot the network virtual appliance issues in Azure. |
| 4 | +services: virtual-network |
| 5 | +documentationcenter: na |
| 6 | +author: genlin |
| 7 | +manager: cshepard |
| 8 | +editor: '' |
| 9 | +tags: azure-resource-manager |
| 10 | + |
| 11 | +ms.service: virtual-network |
| 12 | +ms.devlang: na |
| 13 | +ms.topic: troubleshooting |
| 14 | +ms.tgt_pltfrm: na |
| 15 | +ms.workload: infrastructure-services |
| 16 | +ms.date: 08/02/2018 |
| 17 | +ms.author: genli |
| 18 | + |
| 19 | +--- |
| 20 | + |
| 21 | +# Network virtual appliance issues in Azure |
| 22 | + |
| 23 | +You may experience VM or VPN connectivity issues and errors that affect a Network Virtual Appliance (NVA) in Microsoft Azure. This article provides basic steps to help you validate basic Azure Platform requirements for NVA configurations. |
| 24 | + |
| 25 | +Technical support for third-party NVAs and their integration with the Azure platform is provided by the NVA vendor. If you have a connectivity or routing problem that involves an NVA, you should [contact the vendor of the NVA](https://support.microsoft.com/help/2984655/support-for-azure-market-place-for-virtual-machines) directly. |
| 26 | + |
| 27 | +[!INCLUDE [support-disclaimer](../../includes/support-disclaimer.md)] |
| 28 | + |
| 29 | +## Checklist for troubleshooting with NVA vendor |
| 30 | + |
| 31 | +- Software updates for NVA VM software |
| 32 | +- Service Account setup and functionality |
| 33 | +- User-defined routes (UDRs) on virtual network subnets that direct traffic to NVA |
| 34 | +- UDRs on virtual network subnets that direct traffic from NVA |
| 35 | +- Routing tables and rules within the NVA (for example, from NIC1 to NIC2) |
| 36 | +- Tracing on NVA NICs to verify receiving and sending network traffic |
| 37 | + |
| 38 | +## Basic troubleshooting steps |
| 39 | + |
| 40 | +- Check the basic configuration |
| 41 | +- Check NVA performance |
| 42 | +- Advanced network troubleshooting |
| 43 | + |
| 44 | +## Check the minimum configuration requirements for NVAs on Azure |
| 45 | + |
| 46 | +Each NVA has basic configuration requirements to function correctly on Azure. The following section provides the steps to verify these basic configurations. For more information, [contact the vendor of the NVA](https://support.microsoft.com/help/2984655/support-for-azure-market-place-for-virtual-machines). |
| 47 | + |
| 48 | +**Check whether IP forwarding is enabled on NVA** |
| 49 | + |
| 50 | +Use Azure portal |
| 51 | + |
| 52 | +1. Locate the NVA resource in the [Azure portal](https://portal.azure.com), select Networking, and then select the Network interface. |
| 53 | +2. On the Network interface page, select IP configuration. |
| 54 | +3. Make sure that IP forwarding is enabled. |
| 55 | + |
| 56 | +Use PowerShell |
| 57 | + |
| 58 | +1. Open PowerShell and then sign in to your Azure account. |
| 59 | +2. Run the following command (replace the bracketed values with your information): |
| 60 | + |
| 61 | + Get-AzureRmNetworkInterface -ResourceGroupName <ResourceGroupName> -Name <NicName> |
| 62 | + |
| 63 | +3. Check the **EnableIPForwarding** property. |
| 64 | + |
| 65 | +4. If IP forwarding is not enabled, run the following commands to enable it: |
| 66 | + |
| 67 | + $nic2 = Get-AzureRmNetworkInterface -ResourceGroupName <ResourceGroupName> -Name <NicName> |
| 68 | + $nic2.EnableIPForwarding = 1 |
| 69 | + Set-AzureRmNetworkInterface -NetworkInterface $nic2 |
| 70 | + Execute: $nic2 #and check for an expected output: |
| 71 | + EnableIPForwarding : True |
| 72 | + NetworkSecurityGroup : null |
| 73 | + |
| 74 | +**Check whether the traffic can be routed to the NVA** |
| 75 | + |
| 76 | +1. On [Azure portal](https://portal.azure.com), open **Network Watcher**, select **Next Hop**. |
| 77 | +2. Specify a VM that you want to be the NVA the next hop, and a destination IP address at which to view the next hop. |
| 78 | +3. If the NVA is not listed as the **next hop**, check and update the Azure route tables. |
| 79 | + |
| 80 | +**Check whether the traffic can reach the NVA** |
| 81 | + |
| 82 | +1. In [Azure portal](https://portal.azure.com), open **Network Watcher**, and then select **IP Flow Verify**. |
| 83 | +2. Specify a VM and the IP address of the NVA, and then check whether the traffic is blocked by any Network security groups (NSG). |
| 84 | +3. If there is an NSG rule that blocks the traffic, locate the NSG in **effective security** rules and then update it to allow traffic to pass. Then run **IP Flow Verify** again and use **Connectivity Check** to test TCP communications from VM to your internal or external IP address. |
| 85 | + |
| 86 | +**Check whether NVA and VMs are listening for expected traffic** |
| 87 | + |
| 88 | +1. Connect to the NVA by using RDP or SSH, and then run following command: |
| 89 | + |
| 90 | + For Windows: |
| 91 | + |
| 92 | + netstat -an |
| 93 | + |
| 94 | + For Linux: |
| 95 | + |
| 96 | + netstat -an | grep -i listen |
| 97 | +2. If you don't see the TCP port that's used by the NVA software that's listed in the results you must configure the application on the NVA and VM to listen and respond to traffic that reaches those ports. [Contact the NVA vendor for assistance as needed](https://support.microsoft.com/help/2984655/support-for-azure-market-place-for-virtual-machines). |
| 98 | + |
| 99 | +## Check NVA Performance |
| 100 | + |
| 101 | +### Validate VM CPU |
| 102 | + |
| 103 | +If CPU usage gets close to 100 percent, you may experience issue that affect network packet drops. Your VM reports average CPU for a specific time span in the Azure portal. During a CPU spike, investigate which process on the guest VM is causing the high CPU, and mitigate it, if possible. You may also have to resize the VM to a larger SKU size or, for virtual machine scale set, increase the instance count or set to auto-scale on CPU usage. For either of these issues, [contact the NVA vendor for assistance](https://support.microsoft.com/help/2984655/support-for-azure-market-place-for-virtual-machines), as needed. |
| 104 | + |
| 105 | +### Validate VM Network statistics |
| 106 | + |
| 107 | +If the VM network use spikes or shows periods of high usage, you may also have to increase the SKU size of the VM to obtain higher throughput capabilities. You can also redeploy the VM by having Accelerated Networking enabled. To verify whether the NVA supports Accelerated Networking feature, [contact the NVA vendor for assistance](https://support.microsoft.com/help/2984655/support-for-azure-market-place-for-virtual-machines), as needed. |
| 108 | + |
| 109 | +## Advanced network administrator troubleshooting |
| 110 | + |
| 111 | +### Capture network trace |
| 112 | +Capture a simultaneous network trace on the source VM, the NVA, and the destination VM while you run **[PsPing](https://docs.microsoft.com/sysinternals/downloads/psping)** or **Nmap**, and then stop the trace. |
| 113 | + |
| 114 | +1. To capture a simultaneous network trace, run the following command: |
| 115 | + |
| 116 | + For Windows: |
| 117 | + |
| 118 | + netsh trace start capture=yes tracefile=c:\server_IP.etl scenario=netconnection |
| 119 | + |
| 120 | + For Linux: |
| 121 | + |
| 122 | + sudo tcpdump -s0 -i eth0 -X -w vmtrace.cap |
| 123 | + |
| 124 | +2. Use **PsPing** or **Nmap** from the source VM to the destination VM (for example: `PsPing 10.0.0.4:80` or `Nmap -p 80 10.0.0.4`). |
| 125 | + |
| 126 | +3. Open the network trace from the destination VM by using [Network Monitor](https://www.microsoft.com/download/details.aspx?id=4865) or tcpdump. Apply a display filter for the IP of the Source VM you ran **PsPing** or **Nmap** from, such as `IPv4.address==10.0.0.4 (Windows netmon)` or `tcpdump -nn -r vmtrace.cap src or dst host 10.0.0.4` (Linux). |
| 127 | + |
| 128 | +### Analyze traces |
| 129 | + |
| 130 | +If you do not see the packets incoming to the backend VM trace, there is likely an NSG or UDR interfering or the NVA routing tables are incorrect. |
| 131 | + |
| 132 | +If you do see the packets coming in but no response, then you may need to address a VM application or a firewall issue. For either of these issues, [contact the NVA vendor for assistance as needed](Let's link customer to 3rd party vendor again here: https://support.microsoft.com/help/2984655/support-for-azure-market-place-for-virtual-machines). |
| 133 | + |
0 commit comments