LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How do I prioritize network interfaces (https://www.linuxquestions.org/questions/linux-networking-3/how-do-i-prioritize-network-interfaces-665781/)

MikeyCarter 08-27-2008 09:07 AM

How do I prioritize network interfaces
 
Code:

netstat -rn
Kernel IP routing table
Destination    Gateway        Genmask        Flags  MSS Window  irtt Iface
172.29.0.0      0.0.0.0        255.255.255.0  U        0 0          0 wlan0
172.29.0.0      0.0.0.0        255.255.255.0  U        0 0          0 eth0
192.168.122.0  0.0.0.0        255.255.255.0  U        0 0          0 virbr0
0.0.0.0        172.29.0.2      0.0.0.0        UG        0 0          0 eth0

Network manager starts up both my wired and wireless interfaces. How do I tell it to prioritize one over the other? (ie use eth0 first since it's 100x faster than my wireless)

trickykid 08-27-2008 02:23 PM

It essentially doesn't go by the actual ethernet device but probably the default route. If eth0 is using the 192.168.122.x address, you'll probably want to set you're default route to use 192.168.122.1 instead of the 172.29.0.2 which would indicate to me that it's an internal only network.

MikeyCarter 08-27-2008 02:30 PM

Quote:

Originally Posted by trickykid (Post 3261797)
It essentially doesn't go by the actual ethernet device but probably the default route. If eth0 is using the 192.168.122.x address, you'll probably want to set you're default route to use 192.168.122.1 instead of the 172.29.0.2 which would indicate to me that it's an internal only network.

????

192.168.122.x is my vmware and xen host only?


The networking is working fine. I just want it to favour eth0 172.29.0.x rather than wlan0 for all traffic.


All times are GMT -5. The time now is 05:25 PM.