|
NAMEu6rd —
user-space 6rd (RFC 5569) implementation
SYNOPSIS
DESCRIPTIONTheu6rd daemon is a userland implementation of 6rd (RFC
5569) for 6rd customer edge routers. It does not provide the functionality of
6rd relay routers.
It runs in the user-space using the tun(4) interface and the raw socket interface. The following options are available:
The argument prefix/prefixlen specifies the 6rd prefix, which does not count the embedded IPv4 address part. relay_v4_addr is the IPv4 address of the 6rd relay router. my_v4_addr is your global IPv4 address. Currently,
The FILES
EXAMPLESExample parameters in this section:
Your 6rd delegated prefix is calculated to be 2001:db8:cb00:7101::/64. Note that, converting from IPv4 decimal to IPv6 colon hexadecimal notation, 203.0.113.1 corresponds to cb00:7101. The IPv6 default route in the following examples (2001:db8::1) was chosen semi-arbitrary within the 6rd prefix but outside of delegated prefix, so that all IPv6 packets are routed into the tun0 interface. It could be specified explicitly by the “-ifp tun0” option. FreeBSD 9.0# ifconfig tun0 create # ifconfig tun0 inet6 2001:db8:cb00:7101::1/32 # ifconfig tun0 inet6 -nud # route add -inet6 default 2001:db8::1 # u6rd -u nobody tun0 2001:db8::/32 198.51.100.1 203.0.113.1 FreeBSD's tun driver will reset its address after the owning
process exits. When you restart FreeBSD 9.0 (configuring at start up)/etc/rc.confcloned_interfaces="tun0" ifconfig_tun0_ipv6="inet6 2001:db8:cb00:7101::1/32 -nud" ipv6_defaultrouter="2001:db8::1" /usr/local/sbin/u6rd -u nobody tun0 2001:db8::/32 \ 198.51.100.1 203.0.113.1 NetBSD 5.1# ifconfig tun0 create # ifconfig tun0 inet6 2001:db8:cb00:7101::1/32 # ndp -i tun0 -- -nud # sysctl -w net.inet6.tcp6.mss_ifmtu=1 # route add -inet6 default 2001:db8::1 # u6rd -u nobody tun0 2001:db8::/32 198.51.100.1 203.0.113.1 Setting net.inet6.tcp6.mss_ifmtu to 1 is recommended. Mac OS X 10.7 (Darwin 11.3.0)# u6rd -u nobody utun0 2001:db8::/32 198.51.100.1 203.0.113.1 # ifconfig utun0 inet6 2001:db8:cb00:7101::1/32 # ndp -i utun0 -- -nud # route add -inet6 default 2001:db8::1 The utun device, instead of tun, is used on Mac OS X. A utun interface is created by the daemon (cannot be created with ifconfig), so the interface address and the default route need to be configured after executing the daemon. More complex example on FreeBSDParameters are same except that the common prefix length is 8 bits in your 6rd addressing domain. In this case, the delegated prefix is concatenation of the 6rd prefix (32 bits) and unique bits of your IPv4 address (32 - 8 = 24 bits), so its length is 56 bits.# ifconfig tun0 create # ifconfig tun0 inet6 2001:db8:71:100::1/32 # ifconfig tun0 inet6 -nud # ifconfig em0 inet6 2001:db8:71:101::1/64 # route add -inet6 default 2001:db8::1 # route add -inet6 2001:db8:71:100:: -prefixlen 56 ::1 -reject # u6rd -u nobody -r 8 tun0 2001:db8::/32 198.51.100.1 203.0.113.1 SEE ALSOtun(4), ifconfig(8), route(8), sysctl(8)B. Carpenter and K. Moore, Connection of IPv6 Domains via IPv4 Clouds, RFC 3056, February 2001. P. Savola and C. Patel, Security Considerations for 6to4, RFC 3964, December 2004. R. Despres, IPv6 Rapid Deployment on IPv4 Infrastructures (6rd), RFC 5569, January 2010. W. Townsley and O. Troan, IPv6 Rapid Deployment on IPv4 Infrastructures (6rd) -- Protocol Specification, RFC 5969, August 2010. AUTHORSKAMADA Ken'ichi.BUGS
Visit the GSP FreeBSD Man Page Interface. |