Home » Questions » Computers [ Ask a new question ]

Using "route add" to tell my computer to use a direct ethernet connection instead of wifi?

Using "route add" to tell my computer to use a direct ethernet connection instead of wifi?

2 PCs are involved. Both are connected to the internet via Wifi on the same router. I can ping to/from each other and share folders flawlessly, but I'd like to be able to set a direct Ethernet link between them to speed up file transfers AND keep the Wifi connections (no gateway).

Asked by: Guest | Views: 99
Total answers/comments: 1
Guest [Entry]

"Aha, trick question :), it caught me, too.

The Gateway should be set to your IP.

I played with it; if you do a ROUTE PRINT it will list interface numbers at the top of the output, I'm going to call your ethernet interface <ETH>.

The command would then be as follows for the 192.168.0.7 machine (and similar for .6):

ROUTE ADD 192.168.0.0/24 192.168.0.7 IF <ETH>

or

ROUTE ADD 192.168.0.0 MASK 255.255.255.0 192.168.0.7 IF <ETH>

I hope this works for you :)"