The setup is currently 1 Windows 10 Home laptop with wifi internet access from a router that I don't have admin access to (Thus no custom DHCP config). The Windows machine is connected to a switch which is connected to a Ubuntu Hadoop Cluster with permanent static IP's that I cannot change. My goal is to bridge internet to the Ubuntu cluster so I can do some apt-gets. The current issue is trying to route it. The Internet is coming from on subnet while the Hadoop cluster is on 192.168.2.x on subnet I've tried route add DESTINATION MASK SUBNET GATEWAY but to no avail. Is Windows capable of doing this or do I have this conceptually wrong?

The Windows can connect to both networks simultaneously via ICSharing by editing regedit of HKLM\System\CurrentControlSet\services\SharedAccess\Parameters and editing it to be There appears to be no Internet access on the cluster though.

    IPv4 Route Table
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
     55         On-link    331         On-link    331         On-link    331         On-link    281         On-link    281         On-link     56         On-link    281         On-link    311         On-link    311         On-link    311         On-link    281         On-link    281         On-link    281         On-link    331         On-link    281         On-link    281         On-link    311         On-link    331         On-link    281         On-link    281         On-link    311
  • It seems that you needn't to play with routing. Try to share your adapter internet connection to network using Wi-Fi connection properties -> Sharing tab and option "Allow other network users to connect through this computer's Internet connection". In "Home networking connection" select the name of the network your claster is connected to. May 1, 2017 at 20:36
  • I currently have that enabled and the Windows machine can connect to both the Internet and the machines in the cluster. Although the cluster doesn't seem to receive any internet. There must be some Linux setting that I'm not finding or something.
    – Apples446
    May 1, 2017 at 21:00
  • OK. Did you specified in network parameters of your Ubuntu machine that computer is default gateway and DNS server? May 1, 2017 at 21:27
  • By the way, the first row of your routing table looks strange because there shouldn't be two default gateways on one machine. Also broadcast IP address can not be used as a gateway. May 1, 2017 at 21:33
  • Another simple way to get connected to Internet from Ubuntu is to set SOCKS proxy from Win machine to any Linux server outside using D option in "SSH tunnels" tab of Putty SSH client. Say, you've established SOCKS proxy connection to 5000-th source port of your Windows machine, then open this port in firewall for external connections and set proxy as Win_IP:5000 in your Ubuntu machine (Win_IP is IP of your Win10 machine in subnet). Also check "Local ports accept connections from other hosts" option in "Port forwarding" settings of the above tab in Putty before creating this tunnel. May 2, 2017 at 5:25

1 Answer 1


To bridge internet from a Windows machine to an Ubuntu cluster that are on different subnets, I had to do the following:

  1. Find the subnet of the Ubuntu cluster
  2. Assign an unused address of that cluster subnet to the Windows bridge by editing the following two regex (On Windows 10):

    • HKEY_LOCAL_MACHINE > SYSTEM >CurrentControlSet > Services > SharedAccess > Parameters > ScopeAddress & ScopeAddressBackup
  3. Open Network and Sharing Center > Change adapter settings > Right-click the adapter receiving internet > properties > Sharing tab > Check Allow other network users to connect through this computer's internet connection > choose the adapter to the cluster > click ok

  4. On the Ubuntu machines, do the following:

    • disable the main adapter via sudo ifdown eno1 (ifconfig to find it)
    • Set up the static IP's with the gateway of the assigned IP of the bridge. ( /etc/network/interfaces example below):

      # This file describes the network interfaces available on your system 
      # and how to activate them. For more information, see interfaces(5).
      # The loopback network interface 
      auto lo
      iface lo inet loopback
      # The primary network interface
      auto em1
      iface em1 inet static
    • Edit the /etc/resolv.conf to match the dns-nameserver

    • Turn the adapter back on via sudo ifup eno1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.