12.07.2015 Views

download

download

download

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Network Configuration—IPv6A sample tunnel setup would look like this:# ifconfig gif0 create# ifconfig gif0 tunnel x.x.x.x y.y.y.y# ifconfig gif0 inet6 2001:470:1F03:26c::2 2001:470:1F03:26c::1prefixlen 128# route -n add -inet6 default 2001:470:1F03:26c::1# ifconfig gif0 upIn the above example, a gif interface is created and established between x.x.x.x(your IPv4 address) and y.y.y.y (your tunnel broker's IPv4 address). Then youshould assign IPv6 addresses to the tunnel. In this case, 2001:470:1F03:26c::2 isassigned to your side of the tunnel and 2001:470:1F03:26c::1 to the other side ofthe tunnel. The latter is used as your IPv6 gateway as well.The tricky part is setting up a default gateway for all IPv6 traffic to the other side ofthe tunnel, which is done using the route command (note the -inet6 flag).Once you have finished setting up the tunnel, you may want to test your connectivityby pinging the other side of the tunnel using the ping6(8) utility.SummaryFreeBSD has had IPv6 support in the base operating system since its early versions.This support has become more mature in recent releases. Since we covered basicconfiguration for IPv6 in this chapter, you may want to do more complex things thatare not covered here. There are a few useful and up-to-date resources that you canfind on the net—one of them being the FreeBSD handbook section on IPv6 and IPv6internals in the developer's handbook. It is also recommended that you read RunningIPv6 book, which contains detailed explanations of deploying the IPv6 network, withexamples involving various operating systems, including the FreeBSD.[ 182 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!