How to ping through a different NIC - Windows 7.

SpencerKarnovski
SpencerKarnovski used Ask the Experts™
on
Hello.

I need to figure out why a client cannot connect to his wireless network.  I reinstalled XP on his laptop, installed all the drivers, upon testing the wireless connection and was able to connect to my wireless network (WPA2) just fine.

When the client gets his laptop back home, he could not connect to his wireless network.  At first, when trying to connect - (he was able to locate his SID in the available networks and connect using his key) it was stuck at "Acquiring network address".  It did not get an address after 10 mins.

So I manually add an IP/DNS/Gateway address (which I got from his main PC, which is connected via a wire to the router) to the wireless adapter.  It then says "connected" - but it still is not connected.  I cannot ping, or access any internet page; even though it says connect with excellent signal.

So, I need to connect remotely to do some testing.   So I need to know how to ping, for testing purposes, using the wireless adapter, when the laptop is connected via a wire.  Obviously I cannot disconnect the wired connection to test the wireless, that would disconnect my session.  

So, how do you ping using a specific adapter;

ping -i <Adapter IP> www.google.co.uk

or

ping -i <adapter name> www.google.co.uk

Or do I have to put one adapter above the other (giving it a low metric) in the advanced settings.  Or add a route print command setting the gateway and metric of the wireless adapter.

Thanks.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
ping -S ip_address_to_ping_from www.google.co.uk

-S option allows you to set the source address from the configured addresses on the server.

Author

Commented:
Thanks!  That worked great.

BTW, any idea as to why I cannot get a working wireless connection, even though the manual IP address has been added correctly.  The laptop drivers are fine, it was connected to with WPA2 (which is what the client has) on my network.

But, for some reason data is not being transferred, even though its connected.  

Thanks.
Are you able to even ping the wireless networks's gateway?

Author

Commented:
Well, according to the client - his sons XBox is connected wireless from upstairs fine.  The clients laptop, before the re-installation was connected to the wireless router fine.  The router has DHCP enabled, because its giving out the address to the wired connection.  I have to login remotely to the router to make sure there are no MAC restrictions - even though there has been no wireless adapter change on the laptop.   I can ping the gateway when its connected wired.  

I will be logging in tomorrow, I can check/ping the wireless gateway - but the connection does say its connected and its received an IP address, which I setup manually.  So it does have communication with the router.
Since the question is answered, can you award points?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial