From a69ec86204e0ba99f254ab963190245b406218b7 Mon Sep 17 00:00:00 2001 From: James Zhu Date: Wed, 15 Oct 2014 19:13:59 +0800 Subject: [PATCH] mod --- cheat/cheatsheets/route | 32 ++++++++++++++++---------------- dist/cheat-2.1.0-py2.7.egg | Bin 51132 -> 51139 bytes 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/cheat/cheatsheets/route b/cheat/cheatsheets/route index aedd5ad..1eae336 100644 --- a/cheat/cheatsheets/route +++ b/cheat/cheatsheets/route @@ -1,23 +1,23 @@ -route add -net 127.0.0.0 netmask 255.0.0.0 dev lo - adds the normal loopback entry, using netmask 255.0.0.0 and associated with the "lo" device (assuming this device was previously set up correctly with ifconfig(8)). +#adds the normal loopback entry, using netmask 255.0.0.0 and associated with the "lo" device (assuming this device was previously set up correctly with ifconfig(8)). + route add -net 127.0.0.0 netmask 255.0.0.0 dev lo -route add -net 192.56.76.0 netmask 255.255.255.0 dev eth0 - adds a route to the local network 192.56.76.x via "eth0". The word "dev" can be omitted here. +#adds a route to the local network 192.56.76.x via "eth0". The word "dev" can be omitted here. + route add -net 192.56.76.0 netmask 255.255.255.0 dev eth0 -route del default - deletes the current default route, which is labeled "default" or 0.0.0.0 in the destination field of the current routing table. +#deletes the current default route, which is labeled "default" or 0.0.0.0 in the destination field of the current routing table. + route del default -route add default gw mango-gw - adds a default route (which will be used if no other route matches). 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. +#adds a default route (which will be used if no other route matches). 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. + route add default gw mango-gw -route add ipx4 sl0 - Adds the route to the "ipx4" host via the SLIP interface (assuming that "ipx4" is the SLIP host). +#Adds the route to the "ipx4" host via the SLIP interface (assuming that "ipx4" is the SLIP host). + route add ipx4 sl0 -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. +#This command adds the net "192.57.66.x" to be gatewayed through the former route to the SLIP interface. + route add -net 192.57.66.0 netmask 255.255.255.0 gw ipx4 -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. +#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 + route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0 -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." +#This installs a rejecting route for the private network "10.x.x.x." + route add -net 10.0.0.0 netmask 255.0.0.0 reject diff --git a/dist/cheat-2.1.0-py2.7.egg b/dist/cheat-2.1.0-py2.7.egg index ff281ddce8bb22511db5f85afedaadc01f065e04..f8c9253be3f9dc50bbb20f920cfb30ee7fda1040 100644 GIT binary patch delta 1700 zcmY+DcUV(b7{<9LArvD^2uJ`C0mYCI!ABG#N@S}%fD33{$P`Fr2!gdBLlI?#BZ6f# zjIgC;C#-}GDi&0D=tC)`ipD`56eH3~Zw~Drz5l%LeZSxN?sw0jjLoukckURCiN*_0hu<=0e4Jh;4Y#Y3a%6Htya7gm% zt42k$fsB$qgCrB>hTCoqAqni}J3vm3M1l!$J>=|HjlbWIQM=9G2W4Uxw~pE+JW~h? zHm)ysPAIE=`i5m>Y@DHfkF++}ip65Jdp6V&`ZI>DXAam62xm8rb0-~FKBW)vI0tU| zGJClnq|$LS8zYXZ1+k(j?f9cI-&~*M@WkLfXZxER#FG`v^^bh43jKK9PeeLNv3xOi zAmQdhe9_T9_SJ{!5iMi$AC?!Rnhh>>=oqR?9x6?a&VLRMh!|E%bsr3f%((#<#w8Z) zCmMJA_`^$v)1N0jr7Gi3>=yTJVYr07jxO1B(a~g6@H$)dvNApazKS|H7yWuE@=McS zt?K7IhxkT3&&JsyhqxUjaXRnX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