Example of a /etc/gateway6 file for duvel with one CTI with RIPng:

#	
# out-going : my prefix (5f06:b500:805d::/64) : agregate
# all prefixes matching the site prefixes are truncated to 64
filter=out interface=cti* prefix=5f06:b500:805d::/64 len=>=64 action=trunc/64
#
# out-going : other prefixes, other tunnels : do not advertize
filter=out interface=cti* action=reject
#
# input : accept anything on cti0 and convert to a default route
# NB: this is maybe not what you really want if your site is not a 6bone leaf.
filter=in interface=cti0 act=trunc/0
#
# input : reject anyting else coming from any cti interface
filter=in interface=cti* act=reject


Comments:

Start : ndpd-router -s
Only one tunnel : cti0

The cti0 tunnel does not really need a global ipv6 source address
but in that case outgoing connexions from this machine will have a bad
source address (link local one). This might not be a problem for
dedicated routers, but if you plan to use the machine as a regular
host, you'd better set a global IPv6 address to the cti0 interface!

This address MUST be within the site #  prefix (5f06:b500:805d::/64).
As the cti0 interface access a 'virtual' link, this link MUST be numbered
i.e. it MUST have it's own prefix. The easiest thing to do is to set a
/128 prefix; then, there is no need for a token.

example: 5f06:b500:805d:0:1:0:805d:932/128
(NB: the last bits are chosen to match the IPv4 address)

