Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a laptop and a desktop. My laptop is used for university and my desktop for home. I want to be able to sync files between my laptop and desktop so a few of the folders are exactly the same.

Wireless transfers are slow over 54g so I've been doing transfers directly via gigabit. It is so much faster, instant most of the time. Is there any way I can use LAN for file transfers and wireless for internet? I have the LAN on a different subnet to the WLAN.

What is the easiest way without having to change the LAN and WLAN settings every time I come home?

share|improve this question
add comment

2 Answers

Depending on what application you are using to sync files you might be able to bind the application to the Wired LAN adapter to ensure it uses that interface during syncs. In general scenarios, most OS's automatically assign metrics to interfaces depending on the connection speed, so it should be using the fastest route anyway, but only if the sync is a local sync and not a cloud sync.

share|improve this answer
add comment

Yes, you can do this - I believe I have come up with quite a creative solution to your problem. In general terms (I can't be specific because you have not provided details of your OS etc) -

Ensure that the Netmask on the wifi router is bigger then on the Ethernet Interface, and use "smaller routes" to route across the LAN. For example

  • Set the LAN interface on your router to 192.168.254.254 with a netmask of 255.255.0.0
  • Ensure your WIFI router is issuing DHCP addresses in the range 192.168.254.0-192.168.254.127
  • Leave the WAN Interface on DHCP (or hard code it to 192.168.254.129 with a gateway of 192.168.254.254 and a netmask of 255.255.0.0)
  • Statically assign 192.168.1.1 with a netmask of 255.255.255.0 to the ethernet interface on your laptop.
  • If your desktop at home is permanently wired, statically assign its IP address to 192.168.254.253 netmask 255.255.0.0. ( If it has a WIFI and ethernet port like the laptop, and you normally use WIFI, set it up the same way as the laptop, except statically assign 192.168.1.2 on the ethernet Interface )

This should work as follows:

When the laptop sends a packet out the network stack, it will look at the routing table. It will try and match the smallest netblock first, so it will send packets for the desktop interface out the ethernet address.

It will send all other packets out the wireless connection.

Because the netmask is bigger for the wireless connection, both laptop and desktop will be able to see the outside world.

Hopefully when the ethernet cable is not plugged in, the ethernet interface will not be assigned an IP address, so traffic will all be routed out the Wireless interface.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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