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 use home network for all PCs, but I also set laptop can connect to internet directly without network though all the connections are through the same broadband. The reason I allow independent connection for laptop is in case when home network lost(the hub is not stable, and I don't have time to buy it yet ), laptop can still connect. I have some doubts here, -- How I know which connection the laptop is using? I guess the direct line is faster, but how I set the laptop to go through the direct connection?

share|improve this question

closed as not a real question by Nifle, Tom Wijsman, techie007, Sathya Mar 27 '12 at 7:32

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
Wouldnt you need to tell what operating system it is? or did you just need to know which wire to remove? What are the connections? wireless? wired? What is the network through your referring to? –  Psycogeek Mar 7 '12 at 9:22
    
sorry I forgot to mention it. I use Windows xp pro. It's broadband connection. The network is my home network. –  Jenny Mar 7 '12 at 9:41
1  
Only one broadband line, all PC connect to a hub and joined the same group.. ISP limit the hub to 2 PC but I have 4, So, there are 2 PCs can always go without network, and 2 PCs must go through network. It's not router, just a hub. –  Jenny Mar 7 '12 at 12:11
add comment

1 Answer

up vote 1 down vote accepted

Assuming you use something unix-ish and have the iproute2 package installed, you could just run /sbin/ip -f inet route. There will be a default entry, likely the top one. It should show which device is used as source when attempting to reach another host on the Internet, along with the address used as source. The other lines show more specialised routes accessed through other interfaces.

If you were referring to ipv6, you should type inet6 rather than inet.

If you don't have iproute2 available, you could use /sbin/route -A inet for similar effect.

share|improve this answer
1  
And the Windows equivalent is route PRINT or netstat -r. The one at the top is used first by default. In this case, the best would be route PRINT 0.0.0.0. –  Bob Mar 7 '12 at 8:34
    
Thanks! @Bob route PRINT 0.0.0.0 got it. Both are active, with direct connection on top. Do you think 2 active connection may course speed slow down? –  Jenny Mar 7 '12 at 9:40
1  
@Jenny: It won't, unless the connection drops on a regular bases and forces your to change the routing table everytime. Then it may slow things down. –  surfasb Mar 7 '12 at 19:39
add comment

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