Skip to content

Instantly share code, notes, and snippets.

@zulhfreelancer
Created June 3, 2024 01:55
Show Gist options
  • Save zulhfreelancer/6b56f5906c2a16ac7831be5dfe10af1f to your computer and use it in GitHub Desktop.
Save zulhfreelancer/6b56f5906c2a16ac7831be5dfe10af1f to your computer and use it in GitHub Desktop.
How to check which network interface will be used to route/send packets for specific IP address?

How to check which network interface will be used to route/send packets for specific IP address?

# Install `ip` tool
apt update -y
apt install iproute2 -y

# Check
ip r get 8.8.8.8 fibmatch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment