* Tue 2007-09-18 Justin Pryzby <justinpryzby AT users.sourceforge.net> INBOX
> #368697 - net-tools: [manual] Add "route del" to EXAMPLES section
> http://bugs.debian.org/368697
>
> Could you provide the example content?

Attached,
Jari

>From 0d29231d43e017e3abaf9c01c704737dac37bfd2 Mon Sep 17 00:00:00 2001
From: Jari Aalto <[EMAIL PROTECTED]>
Date: Tue, 18 Sep 2007 18:52:03 +0300
Subject: [PATCH] route.8: Add 'route del' examples. Remove extra newlines

Signed-off-by: Jari Aalto <[EMAIL PROTECTED]>
---
 en_US/route.8 |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/en_US/route.8 b/en_US/route.8
index 6c06017..6b5efca 100644
--- a/en_US/route.8
+++ b/en_US/route.8
@@ -184,13 +184,14 @@ adds the normal loopback entry, using netmask 255.0.0.0 (class A net,
 determined from the destination address) and associated with the 
 "lo" device (assuming this device was previously set up correctly with
 .BR ifconfig (8)). 
-
+.TP
+.B route del -net 127.0.0.0
+deleted the normal loopback entry.
 .TP 
 .B route add -net 192.56.76.0 netmask 255.255.255.0 dev eth0
 adds a route to the network 192.56.76.x via 
 "eth0". The Class C netmask modifier is not really necessary here because
 192.* is a Class C IP address. The word "dev" can be omitted here. 
-
 .TP
 .B route add default gw mango-gw
 adds a default route (which will be used if no other route matches).
@@ -198,27 +199,28 @@ All packets using this route will be gatewayed through "mango-gw". The
 device which will actually be used for that route depends on how we
 can reach "mango-gw" - the static route to "mango-gw" will have to be
 set up before. 
-
+.TP
+.B route del default gw mango-gw
+deletes default route.
 .TP
 .B route add ipx4 sl0
 Adds the route to the "ipx4" host via the SLIP interface (assuming that
 "ipx4" is the SLIP host).
-
 .TP
 .B route add -net 192.57.66.0 netmask 255.255.255.0 gw ipx4
 This command adds the net "192.57.66.x" to be gatewayed through the former
 route to the SLIP interface.
-
 .TP
 .B route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
 This is an obscure one documented so people know how to do it. This sets
 all of the class D (multicast) IP routes to go via "eth0". This is the
 correct normal configuration line with a multicasting kernel. 
-
 .TP
 .B route add -net 10.0.0.0 netmask 255.0.0.0 reject
 This installs a rejecting route for the private network "10.x.x.x."
-
+.TP
+.B route del -net 10.0.0.0 netmask 255.0.0.0
+deletes private network route "10.x.x.x."
 .LP
 .SH OUTPUT
 The output of the kernel routing table is organized in the following columns
-- 
1.5.3.rc5

-- 
Welcome to FOSS revolution: we fix and modify until it shines

Reply via email to