linux route command not working

1

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.

theB

Posted 2012-07-25T05:17:29.827

Reputation: 181

... You're trying to add a default route via local-link addresses? – Ignacio Vazquez-Abrams – 2012-07-25T05:21:33.787

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. – None – 2012-07-25T05:23:15.990

Answers

3

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

#ip -6 route add <destination> dev <device> via <gateway>

theB

Posted 2012-07-25T05:17:29.827

Reputation: 181