From 27482cbabd28448177aa3c4a17300c274de6fbfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 30 Dec 2014 10:07:13 +0100 Subject: [PATCH] ip: better route example Assigning a subnet is already covered in the example below. Setting a default route via a router is the most common use case of ip route IMHO. --- cheat/cheatsheets/ip | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cheat/cheatsheets/ip b/cheat/cheatsheets/ip index aae2057..a0f20cd 100644 --- a/cheat/cheatsheets/ip +++ b/cheat/cheatsheets/ip @@ -19,8 +19,8 @@ ip route # Display all routes for IPv6 ip -6 route -# Add route via gateway IP -ip route add 192.168.0.0/24 via 192.168.1.1 +# Add default route via gateway IP +ip route add default via 192.168.1.1 # Add route via interface ip route add 192.168.0.0/24 dev eth0