Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
linux里优先使用wlan
e iproute2

P330  # cat /etc/iproute2/rt_tables 
#
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
6 	wlan

ip route add default dev wlan0 table wlan
ip rule add from all lookup wlan prio 1000

dhcpcd.conf:

interface wlan0
metric 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.