On Wed, Nov 05, 2008 at 10:37:27AM +0100, Michael wrote: > Hi, > > I've got trouble adding a IPv6 route to the routing table. Looked at the > man pages and searched the web but that didn't help. > > I've got a setup like this > > [ISP A]--- > |---[router] > [ISP B]--- > > [ISP A] and [ISP B] are ALIX boxes and [router] is another box I where > want to add the rule. All traffic to 2a01:198:xxx::/48 should go through > the [ISP B] box. To do that I tried: > > route add -inet6 2a01:198:xxx::/48 2a01:198:yyy::3 > > but I always get: > > route: 2a01:198:xxx::/48: bad value > > Also tried other formats of 2a01:198:xxx::/48 but nothing seems to work. > Adding just 2a01:198:xxx:: will rewrite it to /64 in the routing table. > > Any ideas? >
The man page does not mention that you can use CIDR notation for IPv6. Use -prefixlen instead that will work: route add -inet6 2a01:198:xxx:: -repfixlen 48 2a01:198:yyy::3 -- :wq Claudio

