Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use route command to add new route in my routing table. But it my new root is not added. Also it doesn't show any error for my command. Here is the console

#route add ::/0 via fe::2
route: resolving fe::2

So when I use route -A inet6, I can't see the newly added route.

share|improve this question

migrated from Jul 25 '12 at 13:10

This question came from our site for professional and enthusiast programmers.

... You're trying to add a default route via local-link addresses? – Ignacio Vazquez-Abrams Jul 25 '12 at 5:21
I don't know about local address. But I want to assign this address,fe80::02d9:98ff:fec1:8eea as default route to my linux machine. – theB Jul 25 '12 at 5:23

I found the answer. The correct syntax to add a route is

#ip -6 route add <destination> dev <device> via <gateway>
share|improve this answer

You must log in to answer this question.