A method of generating an Ipv6 multicast address, the method being applied to a client, comprising: obtaining location information of a target device on the client; and generating an IPv6 multicast address of a multicast group to be joined by the client based on the location information, wherein obtaining the location information of the target device comprises: during a process of obtaining an IP address of the client, obtaining the location information of the target device, and wherein the client obtains the IP address in a DHCPv6 stateful address allocation mode, wherein obtaining the location information of the target device comprises: receiving a DHCPv6 message including a OPTION_GEOLOCCATION option from a DHCPv6 server, wherein the OPTION_GEOLOCCATION option carries the location information of the target device, and wherein before receiving the DHCPv6 message, further comprising: sending a message comprising a OPTION_ORO option to a DHCPv6 server, wherein the OPTION_ORO option carries instruction information for requesting the location information of the target device, or wherein the client obtains the IP address in a stateless address allocation mode, wherein obtaining the location information of the target device comprises: receiving a router advertisement, RA, message from a gateway device, wherein the RA message comprises the location information of the target device, and wherein the location information of the target device carries a sub-option in a third option included in the RA message. obtaining location information of a target device on the client; and generating an IPv6 multicast address of a multicast group to be joined by the client based on the location information, wherein obtaining the location information of the target device comprises: during a process of obtaining an IP address of the client, obtaining the location information of the target device, and wherein the client obtains the IP address in a DHCPv6 stateful address allocation mode, wherein obtaining the location information of the target device comprises: receiving a DHCPv6 message including a OPTION_GEOLOCCATION option from a DHCPv6 server, wherein the OPTION_GEOLOCCATION option carries the location information of the target device, and wherein before receiving the DHCPv6 message, further comprising: sending a message comprising a OPTION_ORO option to a DHCPv6 server, wherein the OPTION_ORO option carries instruction information for requesting the location information of the target device, or wherein obtaining the location information of the target device comprises: receiving a DHCPv6 message including a OPTION_GEOLOCCATION option from a DHCPv6 server, wherein the OPTION_GEOLOCCATION option carries the location information of the target device, and wherein before receiving the DHCPv6 message, further comprising: sending a message comprising a OPTION_ORO option to a DHCPv6 server, wherein the OPTION_ORO option carries instruction information for requesting the location information of the target device, or wherein the client obtains the IP address in a stateless address allocation mode, wherein obtaining the location information of the target device comprises: receiving a router advertisement, RA, message from a gateway device, wherein the RA message comprises the location information of the target device, and wherein the location information of the target device carries a sub-option in a third option included in the RA message. wherein obtaining the location information of the target device comprises: receiving a router advertisement, RA, message from a gateway device, wherein the RA message comprises the location information of the target device, and wherein the location information of the target device carries a sub-option in a third option included in the RA message. <EOS>