03-08-2010
route del trouble
Hi,
I'm having trouble deleting a route:
# route del 192.168.0.0
SIOCDELRT: Invalid process
# route del -net 192.168.0.0
SIOCDELRT: Invalid argument
The route is in the table:
# route
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
Not to be a pain but if any responses refer to using a differant command
please mention what's wrong, if anything, with route.
Thanks,
Steve
Last edited by spaesani; 03-08-2010 at 05:05 PM..
Reason: misaligned columned data
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
ermm... wats the general commands to uninstall programs.....izzit rpm -e cos it keep telling me package not installed.....
anyway anyone know any good links for licq for redhat 9.0 shrike ... cos downloaded one ... dun seems to be working ... trying to get rid of it
appreciate if anyone can... (3 Replies)
Discussion started by: kaya
3 Replies
2. Shell Programming and Scripting
Anyone who could help me with those three commands, i'm really new in cshell script so please be understandable..
Need to demostrate those three commands
del
trash (incl -ai) i that you will be asked to confirmed that they can be deleted
a to move all those files from dustbin
and to... (2 Replies)
Discussion started by: Visi_Ks
2 Replies
3. UNIX for Dummies Questions & Answers
filename.txt
VOL1000499
HDR1ACHTAP
101 031100225 0311002250911030803A094101WACHOVIA BANK OF
5200MASTER PAY GROUP 4231352166PPDAP PAYMENT 091026 1031100220000001
6221110000123756570069 00071351691000- 4022 FISHER HEALTHCARE ... (4 Replies)
Discussion started by: tjmannonline
4 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I got big problem.
a line contains like this:
Hell "A,B,C", how to delete A or B or C by using sed or other tools?
I do not have any idea.
Many thanks. (2 Replies)
Discussion started by: lemon_06
2 Replies
5. Shell Programming and Scripting
Hi,
I want to delete files but it has space beween name & .log
For ex
-rw-r--r-- 1 root other 5429 Mar 19 2008 \AnjuP .log
-rw-r--r-- 1 root other 1352 Mar 21 2008 \ranjap .log
-rw-r--r-- 1 root other 1355 Mar 29 2008 \varghp .log
so if I run ls -ltr | head -3 | awk '{print $9 $10}... (8 Replies)
Discussion started by: tuxian
8 Replies
6. UNIX for Dummies Questions & Answers
i have file that looks like this:
031000503 2000049262784 LCK00000050
i want to look like this:
031000503 2000049262784 LCK00000050
i'd like to del 10-15
Please use code tags! (6 Replies)
Discussion started by: lawsongeek
6 Replies
7. Shell Programming and Scripting
i was faced by a question from a friend. i found it very tricky. all my months of learning unix i never can figure it out still. heres the question he faced me with. wondering if you all can help me figure a solution.
ill let him know the forums helped me out :D
What command would you use... (10 Replies)
Discussion started by: sunny231
10 Replies
8. Shell Programming and Scripting
HI Guys
I have below input :
PO 121255 SorkO_RM_,rlsmel=310_410_3_11104_43831
PO 125564 SorkO_RM_,rlsmel=007G43823
I want delete line which have "_" after = Sign
Output :
PO 125564 SorkO_RM_,rlsmel=007G43823 (2 Replies)
Discussion started by: pareshkp
2 Replies
9. Shell Programming and Scripting
Hi,
Text file has DEL character(ASCII code 127) as quotes with comma as field delimiter. If any of the field contains new line character then I need to remove it. Please help me to achieve this.
Thanks
Vikram (4 Replies)
Discussion started by: Vikramhm
4 Replies
LEARN ABOUT HPUX
tc-route
Route classifier in tc(8) Linux Route classifier in tc(8)
NAME
route - route traffic control filter
SYNOPSIS
tc filter ... route [ from REALM | fromif TAG ] [ to REALM ] [ classid CLASSID ] [ action ACTION_SPEC ]
DESCRIPTION
Match packets based on routing table entries. This filter centers around the possibility to assign a realm to routing table entries. For
any packet to be classified by this filter, a routing table lookup is performed and the returned realm is used to decide on whether the
packet is a match or not.
OPTIONS
action ACTION_SPEC
Apply an action from the generic actions framework on matching packets.
classid CLASSID
Push matching packets into the class identified by CLASSID.
from REALM
fromif TAG
Perform source route lookups. TAG is the name of an interface which must be present on the system at the time of tc invocation.
to REALM
Match if normal (i.e., destination) routing returns the given REALM.
EXAMPLES
Consider the subnet 192.168.2.0/24 being attached to eth0:
ip route add 192.168.2.0/24 dev eth0 realm 2
The following route filter will then match packets from that subnet:
tc filter add ... route from 2 classid 1:2
and pass packets on to class 1:2.
NOTES
Due to implementation details, realm values must be in a range from 0 to 255, inclusive. Alternatively, a verbose name defined in
/etc/iproute2/rt_realms may be given instead.
SEE ALSO
tc(8), ip-route(8)
iproute2 21 Oct 2015 Route classifier in tc(8)