title: Cannot ping default gateway linux in vmware
body: <p>I have a virtual network which is vmnet2 using the <code>10.0.2.0/24</code> network, I want my Linux server to be able to ping the default gateway.</p>
  
  <p>I have set the Linux eth1 values to be </p>
  
  <pre><code>IPADDR="10.0.2.50"
  
  NETMASK="255.255.255.0"
  
  BOOTPROTO="none"
  
  ONBOOT="yes"
  
  In the etc/sysconfig/network
  
  GATEWAY="10.0.2.1"
  </code></pre>
  
  <p>However, when I attempt to ping <code>10.0.2.1</code> the destination host is unreachable. I've restarted the network with <strong>service network restart</strong> but to no avail.</p>
  
  <p>Destination    Gateway     Genmask       Flags    Metric     Ref Use Iface</p>
  
  <p>10.0.2.0 255.255.255.0 U 1 0 0 eth1</p>
  
  <p>default 10.0.2.1 0.0.0.0 UG 0 0 eth1</p>
  
  <p>The first row is the ipaddress and the second is the default gateway</p>