direct ethernet connect from Windows to Linux machine

1

I have a windows 7 laptop, and a raspberry pi running linux(raspbian). I have configured a wifi dongle on raspberry pi, and it's connecting to a wifi network. But now I want to connect my Windows machine to raspberry pi through a direct ethernet cable using ssh without going through wifi network. I have tried several ways, but none of them worked.

I tried to set a static ip address for my raspberry pi, and then configure windows machine within the same subnetwork. It worked well, but my raspberry pi cannot connect to wifi network . The wifi network is using dhcp, and I guess there is a conflict.

Basically, I am looking for a solution to make the raspberry pi working good with the wifi network, and at the same time my windows machine can ssh to it using a direct ethernet cable. Can anyone help me?

Thanks

Jiechao Li

Posted 2014-01-07T14:00:59.230

Reputation: 155

1set static ip for both. . can u ping to each other now? – Unnikrishnan – 2014-01-07T14:03:10.153

are the ethernet ip addresses on the same subnet as the wifi connections? IIRC they shouldn't be. – Journeyman Geek – 2014-01-07T14:04:43.827

The ethernet ip addresses is the same subnet as wifi. let me change it and see what happens – Jiechao Li – 2014-01-07T14:19:18.823

i cannot ping each other. – Jiechao Li – 2014-01-07T14:19:37.167

you need to set routing tables o both pcs, and enable IPv4 forwarding on windows machine – MariusMatutiae – 2014-01-07T15:44:31.703

No answers