答案1
对于 IPv4:
ip -o route get 8/8 | grep --color=always 'dev [^ ]*'
对于 IPv6:
ip -o route get 2000::/3 | grep --color=always 'dev [^ ]*'
对于 IPv4:
ip -o route get 8/8 | grep --color=always 'dev [^ ]*'
对于 IPv6:
ip -o route get 2000::/3 | grep --color=always 'dev [^ ]*'