title: How to enable routing in OS X El Capitan
body: <p>I've got a Linux VMware virtual machine (guest) configured with a NAT adapter on a 192.168.56.0 subnet. Its IP address is 192.168.56.128 and my Mac (host) got 192.168.56.1. Guest's default gateway is automatically set to 192.168.56.2 and is able to ping google. Host's Wi-Fi IP is 192.168.0.2,</p>
  
  <p>I've configured my Wi-Fi router with following routing table to forward packets of 192.168.56.0 to 192.168.0.2 (my Mac)</p>
  
  <pre><code>pi@raspberrypi ~ $ route
  
  Kernel IP routing table
  Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  default         172.16.4.1      0.0.0.0         UG    0      0        0 eth0
  172.16.4.0      *               255.255.252.0   U     0      0        0 eth0
  192.168.0.0     *               255.255.255.0   U     0      0        0 wlan0
  192.168.56.0    192.168.0.2     255.255.255.255 UGH   0      0        0 wlan0
  192.168.57.0    192.168.0.2     255.255.255.255 UGH   0      0        0 wlan0
  </code></pre>
  
  <p>But I'm unable to ping guest from any other device on the Wi-Fi network (192.168.0.0). So it's obvious that my Mac running OS X El Capitan is not forwarding the packets from 192.168.0.0 to 192.168.56.0</p>