LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   which adapter am I using? (https://www.linuxquestions.org/questions/linux-networking-3/which-adapter-am-i-using-424502/)

stardotstar 03-13-2006 03:21 PM

which adapter am I using?
 
I have eth0 and wlan0 both connecting to my wireless router when I am docked - the dock is eth0 wired into router and gets 192.168.0.101 and the wlan0 will autoassociate and pick up 192.168.0.111.

All network services are working just fine but I am not sure which adapter is the default route at any given time?'

I can see that they both pick up valid routing and DNS information etc - they always work individually as well...

So how can I tell which adapter is being used by firefox and which by portage for example ? I know it doesn't really matter since the connection is going to a single pipe on the net outside of the router but I am interested in knowing how the system allocates the default adapter when they are both on the same subnet.

TIA
Will

Wells 03-13-2006 03:38 PM

Try using the route command. Specifically, "route -n". For further information on the command, I recommend "man route".

jschiwal 03-13-2006 03:48 PM

You might want to have the two adaptors on distinct subnets for routing to function properly. If you want to connect to a host at 192.168.0.105 for example, both interfaces are indicated.


All times are GMT -5. The time now is 05:59 AM.