Abstract:
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.
Abstract:
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.
Abstract:
The present invention provides a Layer 2 access method, device and system on a hybrid fiber-coaxial network, where the method includes: receiving a DHCP packet of a terminal device, extracting a source MAC address and a device type from the DHCP packet, and generating a correspondence between the source MAC address and an SVLAN according to a correspondence between the device type and the SVLAN; and when a data packet of the terminal device is received, extracting the source MAC address from the data packet, obtaining the corresponding SVLAN according to the stored correspondence between the MAC address and the SVLAN, and forwarding the data packet of the terminal device according to the corresponding SVLAN.