Method, relay agent, and system for acquiring internet protocol address in network
Embodiments of the present invention disclose a method, relay agent and system for acquiring an IP address in a network. According to the method, the relay agent configures multiple gateway IP addresses corresponding to a type of a client, adds the multiple gateway IP addresses to a DHCP Discover packet of the client, and sends the DHCP Discover packet to a DHCP server, so that the DHCP server allocates an IP address to the client, and sends a DHCP Offer packet to the client after determining that one gateway IP address in the multiple gateway IP addresses belongs to a same network segment as the allocated IP address, so that the DHCP server allocates the IP address to the client, thereby implementing that multiple IPs in different IP address segments are allocated to a same DHCP client type.
Huawei Technologies Co., Ltd.
H H
H04L H04L
inventional inventional
Yong Qingtao Bo
Li He Ke