Subject: Re: Default Route in IPv6
To: None <symka@vejas.lt>
From: None <itojun@iijlab.net>
List: tech-net
Date: 03/23/2001 01:33:29
>what is syntax, to set default gw (gw is IPv6), for ipv4 - route add default x.x.x.x,
>but for IPv6 ?
if you are a host (not a router), you want to autoconfigure by
listening to router advertisements from your adjacent router.
http://www.netbsd.org/Documentation/network/ipv6/#setup_host
http://www.netbsd.org/Documentation/network/ipv6/#autoconfig
if you are a router, you want to exchange routes by running route6d(8)
or pkgsrc/net/zebra.
if you really really need to set a static route,
# route add -inet6 default <linklocal address of gateway>
never use global address as gateway.
or, if you are setting route to p2p interface,
# route add -inet6 default ::1
# route change -inet6 default ::1 -ifp <name of interface>
itojun