Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Here is my route -n output:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface   U     0      0        0 virbr0

And if I try to add a static route by this command:

route add -net netmask gw

I get the following output:

SIOCADDRT: No such process

Why that? Can anybody explain my the concept of adding static routes in linux.

If I also have a route-eth0 file under the /etc/sysconfig/network-scripts/ directory, with this line in it: via, no effect is achieved after I restart the network.

So, can anybody give me some explanations, links or related stuff to read on this?

share|improve this question

1 Answer 1

# ip route add via xxx.yyy.zzz.qqq

Is also valid syntax, but methinks that the error you are getting is a fouled up way of telling you:

"cannot route through, because i don't know how to get to in the first place."

Note that is in the network.

share|improve this answer
This answer is plausible, but I'd need artaxerxe to show his interface table (ifconfig -a) to be sure. – Warren Young Jan 17 '12 at 0:57
Look, if you had an (up) interface already configured on, you would not need to manually add routes, because it would already be there (ip route show) as a part of the interface activation process. "ifconfig -a", of course, should tell the same story, as should "ip addr show". What is preventing you from running these commands? – Alien Life Form Jan 17 '12 at 9:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.