A DHCPv6 client can communicate with DHCPv6 servers on other network segments through a DHCPv6 relay, and finally obtains the IP address. In so doing, DHCPv6 clients on multiple network segments can use the same DHCP server, which saves costs and facilitates centralized management.