howto set inet6 routes?

Folkert Saathoff folkert at feedface.com
Thu Jul 14 07:07:58 GMT 2005


hello list,

i try to setup a small ipv6 test network.
however, it seems like i am too dump to setup my routes.
when i bring up the interface for the first time,
all is well and ping6 works just nicely:

$ ifconfig rl1
rl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         options=8<VLAN_MTU>
         inet6 3ffe:feed:face:cafe:0:2:2e39:f9 prefixlen 64
         ether 00:02:2e:39:00:f9
         media: Ethernet autoselect (10baseT/UTP)
         status: active

$ netstat -rn -finet6
<SNIP>
3ffe:feed:face:cafe::/64          link#2                         
UC          rl1
</SNAP>

so far, so good :)
however, when i delete the route to the network
3ffe:feed:face:cafe::/64, (which is reachable
via rl1 directly), i am not able to recreate it.

the commands

$ route add -inet6 -net 3ffe:feed:face:cafe::/64 -iface rl1
and
$ route add -inet6 -net 3ffe:feed:face:cafe::/64 -interface rl1

yield only the following:

$ netstat -rn -finet6
<SNIP>
3ffe:feed:face:cafe::/64          00:02:2e:39:00:f9              
ULS         rl1
</SNAP>

with which ping6 doesnt work, no packets are written onto
the ether at all.


so i guess my question is:
what is the exact parameter syntax to route(8) which yields a
netstat -rn -finet6 output with a link#NN target??



cheers/ thnx,
/folkert










                                                                         
      /*
   _   
_                                                                        
*
   _|| 
_                                                                        
*
    ||                                                  
folkert at feedface.com   *
                                                                         
      */





More information about the freebsd-stable mailing list