ابتدا باید بسته ی net-tools نصب شود. برای این منظور :
apt-get update apt-get install net-tools
در نهایت :
route -n
خروجی مشابه :
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.230.2 0.0.0.0 UG 0 0 0 ens33 10.10.10.0 0.0.0.0 255.255.255.0 U 0 0 0 ens32 192.168.230.0 0.0.0.0 255.255.255.0 U 0 0 0 ens33
تست شده بر روی debian 9.3
Linux debian 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u2 (2017-06-26) x86_64 GNU/Linu
لغات انگلیسی :
route
net-tools
debian
linux
server
gateway
routing