IPv6 is implemented at system bootup by the script /etc/rc2.d/S69inet . This script determines whether the system is a router or a host, and starts the relevant processes. This section describes the IPv6 processes and how to configure IPv6 interfaces. Neighbor Discovery Protocol (NDP)The neighbor discovery protocol (NDP) is implemented in IPv6 to provide the following facilities:
The daemon process that implements NDP is in.ndpd and is started at boot time by the startup script /etc/rc2.d/S69inet . The script tests to see whether the system is acting as a router by checking for the existence of the configuration file /etc/inet/ndpd.conf . If the file is present, the system is assumed to be an IPv6 router, if not, an IPv6 host.
IPv6 Configuration on a Non-RouterIPv6 addresses can be configured automatically with the autoconfiguration facility, or manually with the ifconfig command at the command-line. The two options can be described as follows :
View the status of IPv6 interfaces by using the ifconfig -a command, the same as for IPv4. If you want to see just IPv6 interface status, then specify the inet6 argument as follows: ultra10# ifconfig -a inet6 lo0: flags=2000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6> mtu 8252 index 1 inet6 ::1/128 hme0: flags=2000841<UP,RUNNING,MULTICAST,IPv6> mtu 1500 index 2 inet6 fe80::a00:20ff:feb3:4153/10 IPv6 Configuration on a RouterIPv6 interfaces are defined in the same manner for a router as for a non-router, as described in the previous section. To configure your system as an IPv6 router, create the configuration file /etc/inet/ndpd.conf . The file needs at least one entry, which turns on router advertisements. Enter the following into the file: ifdefault AdvSendAdvertisements on Further entries can be added to the configuration file to advertise prefixes. The following example entries advertise a global and site-local prefix for the 192.168 network: prefix 2:0:0:c0a8::0/64 hme0 prefix fec0:0:0:c0a8::0/64 hme0 Reboot the system. When the system starts up, it will be configured as an IPv6 router and, as well as running the neighbor discovery protocol daemon in.ndpd , it will also be running the IPv6 routing daemon in.ripngd . Configuring IPv6 Logical InterfacesLogical interfaces can be created in IPv6, just as in IPv4. To configure a logical IPv6 interface hme0:3 , for example, with an IPv6 address of fe80::1111:abcd , enter the following command: ifconfig hme0:3 inet6 plumb fe80::1111:abcd/10 up The /10 at the end of the IPv6 address specifies that the address uses the first 10 bits as the format prefix, making the address a link-local unicast address. To remove an IPv6 logical interface, the same procedure is used as with IPv4. The following command removes the hme0:3 logical interface created in the previous example: ifconfig hme0:3 inet6 down unplumb
|