How to ping the virtual gateway in a Ubuntu server virtual machine


  • Dear All,

    Using the standard images avalaible in Azure, I created a VM in Ubuntu end one in Suse.

    In both case, I cannot ping the (virutal) gateway. As mentionned by Microsoft, the firewall is disabled.

    Any suggestion?
    - Paolo

    Sunday, June 24, 2012 3:25 PM


All replies

  • Hi Paolo,

    Virtual networks are not currently supported for Linux VMs.



    Sunday, June 24, 2012 7:47 PM
  • Why would you need to ping the gateway? The network is there, you have internet connectivity (all outbound, and predefined in the Endpoints section, inbound ports). Frankly, I haven't seen a single network administrator to allow pings (ICMP protocol) in a large-scale load-balanced environment.

    I accept it as a security precaution and live with it.


    I guess Paolo is just asking why we can't access via PING the default gateway wihch is configured on the VMs:

    [myuser@myLinuxVM ~]# route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface     *        U     0      0        0 eth0
    link-local      *          U     1002   0        0 eth0
    default         UG    0      0        0 eth0

    [myuser@myLinuxVM ~]# ping
    PING ( 56(84) bytes of data.
    --- ping statistics ---
    13 packets transmitted, 0 received, 100% packet loss, time 12717ms

    Sunday, June 24, 2012 8:44 PM
  • Thanks Anton,

    you are right. I am just testing Azure in the easiest way: isolated, single virtual machine and I didn't understand why with Window server it is allowed the ping of the gateway and with Linux not.

    Thanks Craig,

    good to know (for future) that virtual networks are not allowed with Linux servers.

    Monday, June 25, 2012 6:46 PM
  • Hi Paolo,

    To clarify - virtual network support for Linux is planned for the release timeframe of the Virtual Machines  feature but is not currently implemented in Preview.



    Tuesday, June 26, 2012 4:08 PM