IPsec is a protocol in which two apparatuses on the internet share secret data not known to any other, and encryption and authentication are executed based on such secret data, it is necessary in the communication to securely share secret data and mutual IPv6 addresses.