question

RAVINDRAHravinh-0493 avatar image
0 Votes"
RAVINDRAHravinh-0493 asked GitaraniSharmaMSFT-4262 answered

Unable to access external public IP via 2nd network interface on Azure Virtual Machine

Hi,

I've created an instance of Cisco C8KV router in Azure and configured 2 interfaces. For both the interfaces I've assigned public IP address.
Interface 1 is Management interface and is configured with MGMT VRF
Interface 2 is transport interface and is in default VRF

I've configured NSG on both the network interfaces and allowed all inbound and outbound traffic.

But, I'm unable to ping any external public IP address (Ex: 8.8.8.8) via Interface 2.

Please let me know what could be the issue and fix for the same.

Thanks,
-Ravi

azure-virtual-network
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

GitaraniSharmaMSFT-4262 avatar image
0 Votes"
GitaraniSharmaMSFT-4262 answered

Hello @RAVINDRAHravinh-0493 ,

Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

By default, secondary network adapters (also known as network interface cards) are not configured to have a default gateway. Therefore, the traffic flow on the secondary NIC will be limited to the same subnet. If you want to enable secondary NIC to talk outside of it's subnet, you must add an entry to the routing table to configure the gateway.

Please follow the below troubleshooting article to configure the default gateway for your 2nd NIC:
https://docs.microsoft.com/en-us/azure/virtual-network/troubleshoot-vm-connectivity#step-1-make-sure-that-the-second-network-adapter-is-enabled-to-talk-outside-the-subnet

Kindly let us know if the above helps or you need further assistance on this issue.


Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.