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.

As you have seen so far, there are some special (reserved) IPv6 addresses. Thefollowing table shows a list of reserved addresses:Chapter 11Address Name Descriptionfe80::fec0::ff00:::: Unspecified Equivalent to 0.0.0.0 in IPv4::1 Loopback address Equivalent to 127.0.0.1 in IPv4Link-localSite-localMulticastIn case you want to configure the static IPv6 address on an interface, it can be doneas in a typical IPv4 scenario:# ifconfig vr0 inet6 2a01:3c8::21c:42ff:dead:beef prefixlen 64This will manually configure an IP address on the specified interface. Note theprefixlen keyword that is equivalent to subnet mask in IPv4.Routing IPv6Similar to IPv4, your host does not automatically forward IPv6 traffic betweeninterfaces, by default. In order to enable packet forwarding between the twoIPv6 enabled interfaces, you should modify the net.inet6.ip6.forwardingsysctl variable:# sysctl net.inet6.ip6.forwarding=1This can also be achieved by adding the following variable to the /etc/rc.conf file:ipv6_gateway_enable="YES"After enabling IPv6 forwarding in the /etc/rc.conf file, you should reboot yoursystem or run relevant rc script:# /etc/rc.d/network_ipv6 restartThe rtadvd(8) daemon is another component that you may want to enable ona IPv6 router. As mentioned earlier, the hosts automatically configure the IPv6addresses on their interface, based on the advertisements they receive from theIPv6 enabled routers on the same subnet. These advertisements are called RouterAdvertisement (RA) packets. The rtadvd(8) daemon sends router advertisementson the specified network interfaces, helping hosts to automatically configure IPv6address on their interfaces. This is done based on the IPv6 prefix it advertises, as wellas identifying itself as the gateway for the network.[ 179 ]

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

Saved successfully!

Ooh no, something went wrong!