Network virtual appliance issues in Azure

Configurare noua (How To)

Situatie

You may experience VM or VPN connectivity issues and errors when using a third party Network Virtual Appliance (NVA) in Microsoft Azure. This article provides basic steps to help you validate basic Azure Platform requirements for NVA configurations.

Technical support for third-party NVAs and their integration with the Azure platform is provided by the NVA vendor.

Solutie

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.

Check whether IP forwarding is enabled on NVA

Use Azure portal

  1. Locate the NVA resource in the Azure portal, select Networking, and then select the Network interface.
  2. On the Network interface page, select IP configuration.
  3. Make sure that IP forwarding is enabled.

Use PowerShell

  1. Open PowerShell and then sign in to your Azure account.
  2. Run the following command (replace the bracketed values with your information):

    PowerShell

    Get-AzNetworkInterface -ResourceGroupName <ResourceGroupName> -Name <NicName>
    
  3. Check the EnableIPForwarding property.
  4. If IP forwarding is not enabled, run the following commands to enable it:

    PowerShell

    $nic2 = Get-AzNetworkInterface -ResourceGroupName <ResourceGroupName> -Name <NicName>
    $nic2.EnableIPForwarding = 1
    Set-AzNetworkInterface -NetworkInterface $nic2
    Execute: $nic2 #and check for an expected output:
    EnableIPForwarding   : True
    NetworkSecurityGroup : null
    

Check for NSG when using Standard SKU Pubilc IP When using a Standard SKU and Public IPs, there must be an NSG created and an explicit rule to allow the traffic to the NVA.

Check whether the traffic can be routed to the NVA

  1. On Azure portal, open Network Watcher, select Next Hop.
  2. Specify a VM that is configured to redirect the traffic to the NVA, and a destination IP address at which to view the next hop.
  3. If the NVA is not listed as the next hop, check and update the Azure route tables.

Check whether the traffic can reach the NVA

  1. In Azure portal, open Network Watcher, and then select IP Flow Verify.
  2. Specify the VM and the IP address of the NVA, and then check whether the traffic is blocked by any Network security groups (NSG).
  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 Connection troubleshoot to test TCP communications from VM to your internal or external IP address.

Check whether NVA and VMs are listening for expected traffic

  1. Connect to the NVA by using RDP or SSH, and then run following command:For Windows:

    Console

    netstat -an
    

    For Linux:

    Console

    netstat -an | grep -i listen
    
  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.
Check NVA Performance
Validate VM CPU

If CPU usage gets close to 100 percent, you may experience issues 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, as needed.

Validate VM Network statistics

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, as needed.

Capture a simultaneous network trace on the source VM, the NVA, and the destination VM while you run PsPing or Nmap, and then stop the trace.

  1. To capture a simultaneous network trace, run the following command:For Windowsnetsh trace start capture=yes tracefile=c:\server_IP.etl scenario=netconnection

    For Linux

    sudo tcpdump -s0 -i eth0 -X -w vmtrace.cap

  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).
  3. Open the network trace from the destination VM by using Network Monitor 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).

Tip solutie

Permanent

Voteaza

(7 din 11 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?