Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a route configured. dev eth1  proto kernel  scope link  src

I'd like to add a static route to pass traffic destined for via a load balancer's redundant virtual interface at

ip route add mask via

When I try to add the static route I get this error.

Error: either "to" is duplicate or "default" is garbage."

Is there a way around this?



share|improve this question
That doesn't look like a "default" route. – Dan Carley Jun 25 '10 at 9:25
Thanks Dan, I've corrected the question. – Athanasios Dec 11 '10 at 13:26

1 Answer 1

up vote 2 down vote accepted

Does ip route add via accomplish what you need?

share|improve this answer
Thanks Kyle, it worked! Strange that the mask didn't work. – Athanasios May 11 '10 at 13:55

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.