Static Address

Sometime using static address can improve security. For example, if your local router uses Neighbor Discovery or radvd (RFC 2461), your interface will automatically be assigned an address based its MAC address (using IPv6's Stateless Autoconfiguration). This may be less than ideal for security since it allows a system to be tracked even if the network portion of the IP address changes.

To assign a static address (for example 2001:470:1000:1000::5/64):

Add your static IP using netcfg. Follow the netcfg article. When copying an example use ethernet-static and modify it like so:

otherwise there could be some connection errors because hosts are resolved to there IPv6 address which is not reachable.

Other programs

Disabling IPv6 functionality in the kernel does not prevent other programs from trying to use IPv6. In most cases, this is completely harmless, but if you find yourself having issues with that program, you should consult the program's man page(s) for a way to disable that functionality.

For example, dhcpcd will continue to harmlessly attempt to perform IPv6 router solicitation. To disable this, as stated in the dhcpcd.conf man page, add the following to /etc/dhcpcd.conf: