QuestionQ97

VerifiedLinux Fundamentals

A Linux server has four network interfaces, each configured with static routes of different prefix lengths. If the destination IP address is 192.168.1.1, which interface is selected?

Explanation

Linux routing uses the longest-prefix-match rule when several routes match a destination. The route 192.168.1.0/30 is more specific than the matching /28, /24, and /16 routes, and its address range includes 192.168.1.1; therefore, traffic uses eth0.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!