• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 713
  • Last Modified:

Test a specific nic in a dual nic arrangement (wires / wireless) on a laptop ping though a spefic nic

I am helping a friend remotely.  his wifi connection doesnt' seem to be working.  it conencts, gets an IP but no packets go through.  I am remotely connected through the wired port on his laptop

How would I tell the laptop to ping out through a specific NIC when there's 2 to choose from?  Normally it'll use the wired connection because its faster.  and I don't want to mess up my connection over the wired connection using gotomypc.com


Route command somehow?  
Ping using nic command?
thanks!
 
0
IamStumped
Asked:
IamStumped
  • 7
  • 2
  • 2
  • +2
4 Solutions
 
jaynirCommented:
You can do it using route command.

check this discussion forum for details. http://www.techimo.com/forum/networking-internet/25474-ping-specified-nic-card-dual-nic-setup.html
0
 
IamStumpedAuthor Commented:
i found that thread already, but that talks of 2 nics / 2 gateways.  both NICs are on the same subnet.
0
 
JluchtCommented:
http://www.bchost.net/_help/nic_order.asp

This might do the trick.  I have never ran into this situation but if you follow the above link it will set the adapter preference, I don't know what will happen if the first one fails to connect.


Have you tried to ping anything local?  Also, is it cable or DSL?
0
How do you know if your security is working?

Protecting your business doesn’t have to mean sifting through endless alerts and notifications. With WatchGuard Total Security Suite, you can feel confident that your business is secure, meaning you can get back to the things that have been sitting on your to-do list.

 
bluepigCommented:
If you post the results of ipconfig /all we can give you the exact route command you will need
0
 
IamStumpedAuthor Commented:


Windows IP Configuration



        Host Name . . . . . . . . . . . . : BR

        Primary Dns Suffix  . . . . . . . :

        Node Type . . . . . . . . . . . . : Broadcast

        IP Routing Enabled. . . . . . . . : No

        WINS Proxy Enabled. . . . . . . . : No

        DNS Suffix Search List. . . . . . : gateway.2wire.net

                                            gateway.2wire.net



Ethernet adapter Wireless Network Connection:



        Connection-specific DNS Suffix  . : gateway.2wire.net

        Description . . . . . . . . . . . : Intel(R) WiFi Link 5100 AGN

        Physical Address. . . . . . . . . : 00-22-FB-41-A1-1A

        Dhcp Enabled. . . . . . . . . . . : Yes

        Autoconfiguration Enabled . . . . : Yes

        IP Address. . . . . . . . . . . . : 192.168.1.73

        Subnet Mask . . . . . . . . . . . : 255.255.255.0

        Default Gateway . . . . . . . . . : 192.168.1.254

        DHCP Server . . . . . . . . . . . : 192.168.1.254

        DNS Servers . . . . . . . . . . . : 192.168.1.254

        Lease Obtained. . . . . . . . . . : Tuesday, December 22, 2009 10:21:41 AM

        Lease Expires . . . . . . . . . . : Wednesday, December 23, 2009 10:21:41 AM



Ethernet adapter Local Area Connection:



        Connection-specific DNS Suffix  . : gateway.2wire.net

        Description . . . . . . . . . . . : Intel(R) 82567LM Gigabit Network Connection

        Physical Address. . . . . . . . . : 00-21-70-F0-9C-D2

        Dhcp Enabled. . . . . . . . . . . : Yes

        Autoconfiguration Enabled . . . . : Yes

        IP Address. . . . . . . . . . . . : 192.168.1.77

        Subnet Mask . . . . . . . . . . . : 255.255.255.0

        Default Gateway . . . . . . . . . : 192.168.1.254

        DHCP Server . . . . . . . . . . . : 192.168.1.254

        DNS Servers . . . . . . . . . . . : 192.168.1.254

        Lease Obtained. . . . . . . . . . : Tuesday, December 22, 2009 10:21:35 AM

        Lease Expires . . . . . . . . . . : Wednesday, December 23, 2009 10:21:35 AM

0
 
IamStumpedAuthor Commented:
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x10003 ...00 22 fb 41 a1 1a ...... Intel(R) WiFi Link 5100 AGN
0x10004 ...00 21 70 f0 9c d2 ...... Intel(R) 82567LM Gigabit Network Connection
===========================================================================
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0    192.168.1.254    192.168.1.73        25
          0.0.0.0          0.0.0.0    192.168.1.254    192.168.1.77        20
        127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1        1
      169.254.0.0      255.255.0.0     192.168.1.77    192.168.1.77        20
     187.141.2.64  255.255.255.255    192.168.1.254    192.168.1.77        20
    187.141.2.105  255.255.255.255    192.168.1.254    192.168.1.77        20
    187.141.2.106  255.255.255.255    192.168.1.254    192.168.1.77        20
      192.168.1.0    255.255.255.0     192.168.1.73    192.168.1.73        25
      192.168.1.0    255.255.255.0     192.168.1.77    192.168.1.77        20
     192.168.1.73  255.255.255.255        127.0.0.1       127.0.0.1        25
     192.168.1.77  255.255.255.255        127.0.0.1       127.0.0.1        20
    192.168.1.255  255.255.255.255     192.168.1.73    192.168.1.73        25
    192.168.1.255  255.255.255.255     192.168.1.77    192.168.1.77        20
   216.115.222.22  255.255.255.255    192.168.1.254    192.168.1.77        20
        224.0.0.0        240.0.0.0     192.168.1.73    192.168.1.73        25
        224.0.0.0        240.0.0.0     192.168.1.77    192.168.1.77        20
  255.255.255.255  255.255.255.255     192.168.1.73    192.168.1.73        1
  255.255.255.255  255.255.255.255     192.168.1.77    192.168.1.77        1
Default Gateway:     192.168.1.254
===========================================================================
Persistent Routes:
  None
0
 
Skol2uCommented:
Maybe a simple thing here but not sure if anyone asked:

Is the Wireless on a secure network?  Do you have the correct SSID and WAP or whatever security set up.  I have seen this countless times where a wireless connection DOES get an IP (even if in secure mode) but cannot access the internet/etc.  It's 99% of the time a bad WEP passcode inputted onto the laptop.  

I usually go to the wireless properties, re-enter the 128 bit encryption key and viola!  It works and can get out.

0
 
JluchtCommented:
To add to Skol2u's comment.. did you check to see if you are connected to your network and not your neighbors?
0
 
IamStumpedAuthor Commented:
again, this is remote troubleshooting so I am relying on him for info.

this has been happening for the last couple weeks on any wireless network, some open, some secured.
0
 
IamStumpedAuthor Commented:
and at least on this network, I put in a bogus / wrong WEP key and it did not connect / did not get an IP address.

went back and entered what is supposed to be the wep key and I got an IP address and it says connected
 
0
 
IamStumpedAuthor Commented:
i wound up doing winsockxpfix a while ago.  I got him on the phone, had him disconnect the lan cable and surf and it's working now.  so not sure what did solve it...  I was just farting around trying to figure how to test it without needing him (control the PC over wired connection and test the connection of the wireless).

thanks guys.  it would be good to know how to do that for next time though,

0
 
bluepigCommented:
Back to the original question, traffic is trying to flow through the route with the lowest metric (192.168.1.77 which is the wired connection)
If you want to force the laptop to use wireless (192.168.1.73) to ping 8.8.8.8, for example, you can add this to the route table:
route add 8.8.8.8 mask 255.255.255.255 192.168.1.73 metric 1

BTW 8.8.8.8 will respond to pings unless blocked by a firewall at your friend's place.
0
 
IamStumpedAuthor Commented:
blue - thanks.  I tried something like that to ping their router and got an error earlier.  I think the mask was wrong compared to what you showed:

i tried:
route add 192.168.1.254 mask 255.255.255.0 192.168.1.73
shoudl have been 255 on the last octet of the mask.

but let me ask...  the metric, being 1, is best so it tries wireless (.73) first...  when that fails, doesn't it go back to the route table to find another, higher metric route?  which would be

         0.0.0.0          0.0.0.0    192.168.1.254    192.168.1.77        20
and it would show success going out (but via the wired?) and you won't know it failed the first way?

or is the 'next' route to try be one of the last 255.255......  , both with metric of 1?  but again, it doesn't say it failed the first way, but succeeded on the 2nd way?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

  • 7
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now