Skip to content

Instantly share code, notes, and snippets.

@jinleileiking
Created July 6, 2012 03:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jinleileiking/3057912 to your computer and use it in GitHub Desktop.
Save jinleileiking/3057912 to your computer and use it in GitHub Desktop.
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