WO2014094633A1 - 一种网络中的因特网协议地址获取方法、中继设备及系统 - Google Patents

一种网络中的因特网协议地址获取方法、中继设备及系统 Download PDF

Info

Publication number
WO2014094633A1
WO2014094633A1 PCT/CN2013/089968 CN2013089968W WO2014094633A1 WO 2014094633 A1 WO2014094633 A1 WO 2014094633A1 CN 2013089968 W CN2013089968 W CN 2013089968W WO 2014094633 A1 WO2014094633 A1 WO 2014094633A1
Authority
WO
WIPO (PCT)
Prior art keywords
dhcp
client
gateway
address
message
Prior art date
Application number
PCT/CN2013/089968
Other languages
English (en)
French (fr)
Inventor
贺庆涛
李勇
柯波
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP13865100.5A priority Critical patent/EP2919444B1/en
Priority to EP17152756.7A priority patent/EP3264731B1/en
Priority to ES13865100.5T priority patent/ES2628083T3/es
Priority to PL17152756T priority patent/PL3264731T3/pl
Publication of WO2014094633A1 publication Critical patent/WO2014094633A1/zh
Priority to US14/736,013 priority patent/US10122679B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies

Definitions

  • the present invention belongs to the field of communications, and in particular, to a method, a relay device and a system for acquiring an IP address in a network.
  • Dynamic Host Configuration Protocol is a dynamic address allocation scheme based on TCP/IP protocol. Compared with manually configuring the IP address, DHCP has the ability to automatically configure TCP/IP parameters (including IP address, subnet mask, default gateway, DNS wait). The assigned IP address has a lease term and can be reclaimed after the lease. Use and other advantages. In this way, all TCP/IP protocol configuration information can be stored in a centralized manner on the DHCP server. Centralized storage and management can avoid IP address conflicts, and at the same time free administrators from heavy manual configuration labor. As the size of the current network grows, the advantages of DHCP become more apparent.
  • DHCP relay agent DHCP relay agent
  • a DHCP device with DHCP relay can forward DHCP request packets to DHCP servers on other physical network segments. This allows the DHCP server to configure DHCP clients that are not on the same physical network segment. Therefore, the DHCP relay can remove the restriction of the DHCP server on each physical network segment.
  • a DHCP client type is assigned a DHCP gateway IP, so that different network segments need to be allocated for the same client type.
  • IP address in this case the current DHCP relay can not be achieved.
  • the purpose of the embodiments of the present invention is to provide a method for acquiring an IP address in a network, a relay device, and a system, which can implement multiple DHCP client types to allocate multiple IP address segments.
  • the first aspect is a method for obtaining an Internet Protocol IP address in a network, where the network includes a client, a relay device, and a dynamic host configuration protocol DHCP server, and the client is connected to the DHCP server by using the relay device.
  • the method is characterized in that: the relay device is configured with a plurality of gateway gateway IP addresses corresponding to the client type, and the method includes:
  • the relay device adds the multiple gateway IP addresses to the DHCP Discovery message of the client, and sends the IP address to the DHCP server, so that the DHCP server allocates an IP address to the client.
  • the gateway IP address of the same network segment as the assigned IP address is sent to the client, and the DHCP Offer message is sent to the client; the relay device receives the DHCP Request message from the client. Obtaining, by the DHCP Request message, the IP address of the client;
  • the relay device adds the gateway IP of the plurality of gateway IPs that are in the same network segment as the IP address of the client to the DHCP Request message, and sends the DHCP Request message with the added gateway IP address to the DHCP Request message.
  • the DHCP server such that the DHCP server assigns an IP address to the client.
  • the relay device adds the multiple gateway IP addresses to the DHCP Discovery packet of the client, and sends the information to the DHCP server. Previously included:
  • the relay device adds the multiple gateway IP addresses to the DHCP Discover message of the client, and sends the DHCP Discover message to the DHCP server.
  • the relay device adds the multiple gateway IP addresses to the DHCP Discover message of the client, and sends the DHCP Discover message to the DHCP server.
  • the fourth possibility in the first aspect includes:
  • a second aspect a relay device, comprising:
  • a user-side port configured to connect to the client, and configured to receive the dynamic host configuration protocol of the client
  • a storage configured to store a plurality of gateway IPs corresponding to the type of the client
  • Network side port used to connect to a DHCP server
  • a first processor configured to add the multiple gateway IP addresses to the DHCP Discovery Discover message of the client, and send the DHCP server to the DHCP server by using the network side port, so that the DHCP server sends the
  • the client allocates an IP address, and sends a DHCP Offer message to the client after determining that there is a gateway IP address belonging to the same network segment as the assigned IP address in the plurality of gateway IP addresses;
  • a second processor configured to obtain, after the DHCP request message from the client, the IP address of the client from the DHCP Request message, from the multiple gateway IP addresses Selecting a gateway IP that is in the same network segment as the IP address of the client, adding the selected gateway IP to the DHCP Request message, and sending the DHCP server to the DHCP server, so that the DHCP server sends the DHCP server to the client. Assign an IP address.
  • the first processor Specifically include:
  • a replication module configured to replicate the DHCP Discover 4, to obtain multiple DHCP Discover messages
  • Adding a module configured to add one of the multiple gateway IP addresses in each DHCP Discover message
  • a sending module configured to send, by the network side port, a plurality of DHCP Discover messages carrying different gateway IP addresses to the DHCP server.
  • the first processor specifically includes:
  • Adding a module configured to add the multiple gateway IPs to multiple received by the user side port
  • DHCP Discover message a DHCP IP packet is added to each DHCP Discover message.
  • the sending module is configured to send a DHCP Discover message with multiple gateway IPs to the DHCP server.
  • the relay device is a digital subscriber line access multiplexer DSLAM, an optical line terminal OLT, or a multi-service Access node MS AN.
  • a third aspect a system for obtaining an Internet Protocol IP, comprising a client, a relay device, and a dynamic host configuration protocol DHCP server, wherein the client is connected to the DHCP server through the relay device, wherein
  • the relay device is configured with a plurality of gateway gateway IP addresses corresponding to the client type, and the plurality of gateway IP addresses are added to the DHCP Discovery packet of the client and sent to the DHCP server; Receiving a DHCP Request message from the client, obtaining an IP address of the client from the DHCP Request message, and selecting one of the plurality of gateway IP addresses from the same network segment as the IP address of the client Gateway IP, the selected gateway IP is added to the DHCP Request message and sent to the DHCP server, thereby The DHCP server assigns an IP address to the client;
  • the DHCP server is configured to allocate an IP address to the client after receiving the DHCP Discover message, and determine that one of the multiple gateway IP addresses belongs to the same network segment as the assigned IP address. After the gateway IP address, the client sends a DHCP Offer message.
  • the relay device adds the multiple gateway IP addresses to the DHCP discovery Discover message of the client, and sends the information to the DHCP server. Specifically include:
  • the relay device adds the multiple gateway IP addresses to the DHCP of the client.
  • the discovery that the Discover message is sent to the DHCP server specifically includes:
  • the relay device is further used After receiving the DHCP Discover message of the client, the type of the client is obtained, and the corresponding multiple gateway IPs are obtained according to the type of the client.
  • the embodiment of the present invention provides a method for acquiring an IP address in a network, where the method configures a plurality of gateway IP addresses corresponding to the client type by using a relay device; Sending, by the DHCP server, a DHCP discovery message sent to the client to the DHCP server, so that the DHCP server allocates an IP address to the client, and determining the multiple gateway IP addresses.
  • the gateway IP add-in port of the same network segment sends a DHCP Request message with the gateway IP to the DHCP Request message.
  • the DHCP server is sent to the DHCP server to allocate an IP address to the client, so as to allocate IPs of multiple different IP address segments to the same DHCP client type.
  • FIG. 1 is a flowchart of a method for acquiring an IP address in a network according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic diagram of a method for acquiring an IP address in a network according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of a method for obtaining an IP address in a network according to an embodiment of the present invention
  • FIG. 1 is a flowchart of a method for acquiring an IP address in a network according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic diagram of a method for acquiring an IP address in a network according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of a method for obtaining an IP address in a network according to an embodiment of the present invention
  • FIG. 1 is a flowchart of a method for acquiring an IP address in a network according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic diagram of a method for acquiring an IP address
  • FIG. 5 is a schematic diagram of a method for obtaining an IP address in a network according to an embodiment of the present invention
  • FIG. 6 is a structural diagram of a device in a first processor in a relay device according to Embodiment 2 of the present invention
  • FIG. 7 is the first in a relay device according to Embodiment 2 of the present invention
  • FIG. 8 is a structural diagram of a system for obtaining an Internet Protocol IP according to Embodiment 3 of the present invention
  • FIG. 9 is a structural diagram of a device for a relay device according to Embodiment 4 of the present invention.
  • FIG. 1 is a flowchart of a method for acquiring an IP address in a network according to Embodiment 1 of the present invention. As shown in Figure 1, the method includes the following steps:
  • Step 101 The relay device adds the multiple gateway IP addresses to the DHCP Discovery message of the client, and sends the IP address to the DHCP server. After determining that one of the plurality of gateway IP addresses belongs to the gateway IP address of the same network segment as the assigned IP address, sending a DHCP Offer message to the client;
  • the method further includes: adding, by the relay device, the multiple gateway IP addresses to the DHCP discovery of the client, before the sending, to the DHCP server, the method further includes:
  • the DHCP relay device's gateway IP address is self-learning, that is, the DHCP relay device configures multiple gateway IP addresses for the same DHCP client type.
  • the relay device adds the multiple gateway IP addresses to the DHCP Discover message of the client and sends the DHCP Discover message to the DHCP server.
  • the DHCP Discover message is the first message of the DHCP client to start the DHCP process, and the DHCP client sends a DHCP Discover message to the DHCP server.
  • the DHCP server is requested to configure the DHCP client to configure the correct IP address.
  • the relay device adds the multiple gateway IP addresses to the DHCP Discover message of the client and sends the DHCP Discover message to the DHCP server.
  • Step 102 The relay device receives a DHCP Request message from the client, and obtains a message from the client. Obtaining the IP address of the client in the DHCP Request message;
  • obtaining the IP address of the client from the DHCP Request message includes:
  • the DHCP relay finds the gateway IP of the same network segment as the DHCP client among the multiple gateway IP addresses according to the Option 50 field or ciaddr in the DHCP Request message sent by the client. address.
  • Step 103 The relay device adds a gateway IP of the plurality of gateway IPs that is in the same network segment as the IP address of the client to the DHCP Request message, and adds a DHCP Request message with a gateway IP.
  • the text is sent to the DHCP server such that the DHCP server assigns an IP address to the client.
  • FIG. 2 is a schematic diagram of an IP address obtaining method in a network according to an embodiment of the present invention.
  • Figure 2 includes the following steps:
  • Step 201 The DHCP client sends a DHCP Discover message to the DHCP server, and the DHCP relay receives the DHCP Discover message, and fills the first gateway IP address of the plurality of pre-assigned gateway IP addresses into the DHCP Discover 4
  • the DHCP client is pre-allocated with the IP address of the correct IP network segment, and the pre-allocated IP address is checked and the filled-in IP address is checked. Whether the gateway IP address of the DHCP Discover message belongs to the same network segment.
  • Step 202 If the network segment does not belong to the same network segment, the DHCP server considers that the DHCP Discover message is illegal, releases the pre-allocated IP, and does not continue to send the DHCP Offer message to the DHCP client, and thereafter the DHCP client After the state machine expires, the DHCP Discover message is resent.
  • the DHCP relay selects the second gateway IP to fill the second DHCP Discover message. In the gateway IP address, the second DHCP Discover message that is filled in is sent to the DHCP server. And so on, through the heuristics until the correct gateway IP address is selected for the DHCP Discover message.
  • Step 203 If the network segment belongs to the same network segment, the DHCP server sends a DHCP Offer message to the DHCP client.
  • Step 204 After receiving the DHCP Offer message, the DHCP client sends a DHCP Request message to the DHCP server.
  • the DHCP relay is in the multiple gateways according to related features of the DHCP Request message. Find the gateway IP address of the same network segment as the DHCP client in the IP address, fill in the gateway IP address of the DHCP Request message, and send the filled DHCP Request message to the DHCP server. ;
  • Step 205 the DHCP server receives the filled DHCP Request message, and responds to the DHCP client with a DHCP ACK message, so that the DHCP client obtains the correct message according to the DHCP ACK message.
  • IP address of the IP network segment As an optional embodiment, the method further includes:
  • the DHCP server confirms that the DHCP Discover message is invalid, releases the IP address of the pre-assigned the correct IP network segment, and does not continue to send the DHCP Offer message to the DHCP client.
  • a Discover message when the DHCP relay receives the DHCP Discover message sent by the DHCP client, selecting the next gateway IP address from the multiple gateway IP addresses to fill in the resent DHCP Discover message And sending the filled DHCP Discover message to the DHCP server in the gateway IP address of the file, and performing the step of the DHCP server receiving the filled DHCP Discover message according to the DHCP Discover message.
  • the related feature is to pre-allocate the IP address of the correct IP network segment to the DHCP client, and determine whether the pre-assigned IP address and the gateway IP address of the filled DHCP Discover message belong to the same network segment.
  • FIG. 3 is a schematic diagram of an IP address obtaining method in a network according to an embodiment of the present invention.
  • Figure 3 includes the following steps:
  • Step 301 The DHCP client sends a DHCP Discover message to the DHCP server.
  • the DHCP relay receives the DHCP Discover message, and copies the DHCP Discover message into a plurality, and adds one of the multiple gateway IP addresses in each DHCP Discover message, and will The plurality of DHCP Discover messages carrying different gateway IP addresses
  • the text is sent to the DHCP server;
  • Step 302 The DHCP server receives the multiple DHCP Discover messages, and pre-allocates the IP address of the correct IP network segment to the DHCP client according to the related features of the multiple DHCP Discover messages. And determining whether the pre-assigned IP address and the gateway IP address of the multiple DHCP Discover messages after the filling belong to the same network segment, and responding to the DHCP Offer 4 message in the same network segment;
  • the DHCP server pre-allocates the correct IP network segment to the DHCP client according to the OPTION 60 or MAC address of the DHCP Discover message. And determining whether the pre-assigned IP address and the gateway IP address of the multiple DHCP Discover messages are in the same network segment, and responding to the DHCP Offer message of the DHCP Discover message on the same network segment. Text.
  • the DHCP Offer message is the DHCP server's corresponding to the DHCP Discover message.
  • Step 303 After receiving the DHCP Offer message, the DHCP client sends a DHCP Request message to the DHCP server.
  • the DHCP relay is in the multiple according to the related feature of the DHCP Request message. Find the gateway IP address of the same network segment as the DHCP client in the gateway IP address, fill in the gateway IP address of the DHCP Request message, and send the filled DHCP Request 4 message to the DHCP.
  • the DHCP Request message is a response to the DHCP Offer message of the DHCP server during the DHCP client start DHCP process, or a message sent by the DHCP client when the IP address lease is extended.
  • the DHCP relay is found in the multiple gateway IP addresses according to the IP address of the DHCP client in the DHCP Request message, that is, the Option 50 field or ciaddr in the DHCP Request message.
  • the gateway IP address of the same network segment as the DHCP client is filled in the gateway IP address of the DHCP Request message, and the filled DHCP Request message is sent to the DHCP server.
  • Step 304 The DHCP server receives the filled DHCP Request message, and responds to the DHCP client with a DHCP ACK message, so that the DHCP client obtains a correct IP network according to the DHCP ACK message.
  • the IP address of the segment is the IP address of the segment.
  • the DHCP ACK packet is a DHCP request from the DHCP server to the DHCP client. After the message is acknowledged, the DHCP client will restart the new DHCP process after receiving the message.
  • the DHCP server receives the filled DHCP Request message, and responds to the DHCP client with a DHCP ACK message, so that the DHCP client obtains the correct IP according to the DHCP ACK message.
  • the IP address of the network segment thereby completing the process of obtaining the IP by the DHCP client.
  • FIG. 4 is a schematic diagram of a method for acquiring an IP address in a network according to an embodiment of the present invention.
  • the DHCP client After the DHCP client completes the IP address acquisition process, the DHCP client sends a unicast DHCP Request message to the DHCP server when the lease time is 50%. If the DHCP server responds to the DHCP Request message, the DHCP client sends the unicast DHCP Request message. The DHCP ACK message is sent to the DHCP client, confirming that the message is valid, and confirming that the DHCP client can continue to use the currently assigned IP address.
  • the DHCP client sends a broadcast DHCP Request message to the DHCP server when the lease time is 87.5%.
  • the correct gateway IP is filled in the gateway IP address of the DHCP Request message according to the ciaddr field in the DHCP Request message.
  • the DHCP server responds to the DHCP ACK message to the DHCP client, and the DHCP client obtains the correct IP address according to the DHCP ACK message, thereby completing the DHCP.
  • An embodiment of the present invention provides a method for acquiring an IP address in a network, where the method configures a plurality of gateway IP addresses corresponding to the client type by using a relay device; the relay device adds the multiple gateway IP addresses.
  • the relay device sets the gateway IP of the plurality of gateway IPs in the same network segment as the IP address of the client Adding to the DHCP Request message, the DHCP Request message with the added gateway IP address is sent to the DHCP server, so that the DHCP server allocates an IP address to the client, thereby implementing the phase response.
  • the same DHCP client type allocates IPs for multiple different IP address segments.
  • the unicast renewal is not required, and the DHCP relay is not required.
  • the DHCP learns the ciaddr field in the DHCP Request message and fills in the correct gateway IP. The address, in this way, through a method of obtaining an IP address in the network, the process of obtaining the IP address normally or the process of renewing the lease can enable the DHCP client to obtain the correct IP address.
  • FIG. 5 is a structural diagram of a device of a relay device according to Embodiment 2 of the present invention. As shown in Figure 5, the device includes the following devices:
  • the user side port 501 is configured to connect to the client, and is configured to receive a dynamic host configuration protocol of the client, and discover a DHCP discovery message.
  • the storage 502 is configured to store multiple gateway IPs corresponding to the type of the client;
  • the first processor 504 is configured to add the multiple gateway IP addresses to the DHCP discovery Discover message of the client, and send the DHCP server to the DHCP server through the network side port, so that the DHCP server gives the The client allocates an IP address, and sends a DHCP Offer message to the client after determining that there is a gateway IP address that belongs to the same network segment as the assigned IP address in the plurality of gateway IP addresses;
  • the first processor 504 specifically includes:
  • the copy module 601 is configured to copy the DHCP Discover 4 file to obtain multiple DHCP Discover messages;
  • the adding module 602 is configured to add one of the multiple gateway IP addresses in each DHCP Discover message;
  • the sending module 603 is configured to send, by the network side port, a plurality of DHCP Discover messages carrying different gateway IP addresses to the DHCP server.
  • the first processor 504 specifically includes:
  • the adding module 701 is configured to add the multiple gateway IPs to multiple DHCP Discover messages received by the user side port, and add a gateway IP to each DHCP discover message;
  • the sending module 702 is configured to send, to the DHCP server, multiple DHCP Discover messages added with a gateway IP.
  • the second processor 505 is configured to obtain, after the DHCP request message from the client, the IP address of the client from the DHCP Request message, from the multiple gateway IPs.
  • the address selects a gateway IP that is in the same network segment as the IP address of the client, and adds the selected gateway IP to the DHCP Request message to send to the DHCP server, so that the DHCP server sends the DHCP server to the client.
  • the end assigns an IP address.
  • the second processor specifically obtains the IP address of the client from Option 50 or ciaddr of the DHCP Request message.
  • the relay device is a digital subscriber line access multiplexer DSLAM, an optical line terminal OLT or a multi-service access node MSAN.
  • An embodiment of the present invention provides a relay device, where the device configures multiple gateway IP addresses corresponding to the client type through a relay device; the relay device adds the multiple gateway IP addresses to the The DHCP discovery session of the client is sent to the DHCP server, so that the DHCP server allocates an IP address to the client, and it is determined that one of the multiple gateway IP addresses belongs to the same IP address. Sending a DHCP Offer message to the client after the gateway IP address of the network segment; the relay device adds the gateway IP of the plurality of gateway IPs that are in the same network segment as the IP address of the client to the gateway IP address.
  • the DHCP Request message In the DHCP Request message, the DHCP Request message with the gateway IP is sent to the DHCP server, so that the DHCP server allocates an IP address to the client, thereby realizing the allocation of the same DHCP client type.
  • the IP of a different IP address segment The IP of a different IP address segment.
  • FIG. 8 is a structural diagram of a system for acquiring an Internet Protocol IP according to Embodiment 3 of the present invention. As shown in Figure 8, the system includes the following:
  • a client And including a client, a relay device, and a dynamic host configuration protocol DHCP server, wherein the client is connected to the DHCP server by using the relay device, where
  • the relay device is configured with a plurality of gateway gateway IP addresses corresponding to the client type, and the plurality of gateway IP addresses are added to the DHCP discovery and discovery packets of the client.
  • the gateway IP address of the IP address is in the same network segment, and the selected gateway IP is added to the DHCP Request message and sent to the DHCP server, so that the DHCP server allocates an IP address to the client.
  • the sending, by the relay device, the multiple gateway IP addresses to the DHCP discovery of the client, and the sending to the DHCP server specifically includes:
  • a gateway IP address where the plurality of bearers are differently achievable, and the relay device adds the plurality of gateway IP addresses to the DHCP discoverer of the client, and the sending to the DHCP server includes:
  • the DHCP server is configured to allocate an IP address to the client after receiving the DHCP Discover message, and determine that one of the multiple gateway IP addresses belongs to the same network segment as the assigned IP address. After the gateway IP address, the client sends a DHCP Offer message.
  • the relay device is further configured to: after receiving the DHCP Discover message of the client, obtain the type of the client, and obtain a corresponding multiple gateway IP according to the type of the client.
  • An embodiment of the present invention provides a system, where the system configures, by using a relay device, multiple gateway IP addresses corresponding to the client type; the relay device adds the multiple gateway IP addresses to the client.
  • the DHCP discovery Discover message is sent to the DHCP server, so that the DHCP server allocates an IP address to the client, and it is determined that one of the multiple gateway IP addresses belongs to the same network as the assigned IP address.
  • the relay device adds a gateway IP of the plurality of gateway IPs that is in the same network segment as the IP address of the client to the DHCP
  • a DHCP Request message with a gateway IP is sent to the DHCP server, so that the DHCP server allocates an IP address to the client, thereby realizing assigning multiple IP addresses of different IP address segments to the same DHCP client type.
  • FIG. 9 is a structural diagram of a device of a relay device according to Embodiment 4 of the present invention.
  • FIG. 9 is a relay device 900 according to an embodiment of the present invention.
  • the specific embodiment of the present invention does not limit the specific implementation of the communication device.
  • the relay device 900 includes:
  • the processor 901, the chip 902, and the memory 903 complete communication with each other via the bus 904.
  • a chip 902 configured to communicate with a DHCP server
  • the processor 901 is configured to execute a program.
  • the program can include program code, the program code including computer operating instructions.
  • the processor 901 may be one or more central processing unit CPUs, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.
  • ASIC Application Specific Integrated Circuit
  • the memory 903 is configured to store a program.
  • the memory 903 may include a random access memory (random access memory) and may also include a non-volatile memory.
  • the processor 901 is configured to execute the program when the relay device is running:
  • the relay device adds the multiple gateway IP addresses to the DHCP Discovery message of the client, and sends the IP address to the DHCP server, so that the DHCP server allocates an IP address to the client.
  • the gateway IP address of the same network segment as the assigned IP address is sent to the client, and the DHCP Offer message is sent to the client; the relay device receives the DHCP Request message from the client. Obtaining, by the DHCP Request message, the IP address of the client;
  • the relay device adds the gateway IP of the plurality of gateway IPs that are in the same network segment as the IP address of the client to the DHCP Request message, and sends the DHCP Request message with the added gateway IP address to the DHCP Request message.
  • the DHCP server such that the DHCP server assigns an IP address to the client.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

本发明实施例公开了一种网络中IP地址获取方法、中继设备及系统,所述方法通过中继设备配置与所述客户端类型对应的多个gateway IP地址;所述中继设备将所述多个gateway IP地址添加到所述客户端的DHCP发现Discover报文中发送给所述DHCP服务器,以使得所述DHCP服务器给所述客户端分配IP地址,在判定所述多个gateway IP地址中存在一个与所分配的IP地址属于同一个网段的gateway IP地址后给所述客户端发送DHCP Offer报文;所述中继设备将所述多个gateway IP中与所述客户端的IP地址处于同一个网段的gateway IP添加到所述DHCP Request报文中,将添加有gateway IP的DHCP Request报文发送给所述DHCP服务器,从而使得所述DHCP服务器给所述客户端分配IP地址,从而实现给相同的DHCP客户机类型分配多个不同的IP地址段的IP。

Description

一种网络中的因特网协议地址获取方法、 中继 i殳备及系统 本申请要求于 2012 年 12 月 19 日提交中国专利局、 申请号为 201210553582.7、 发明名称为"一种网络中的因特网协议地址获取方法、 中继设 备及系统"的中国专利申请的优先权, 其全部内容通过 )用结合在本申请中。
技术领域
本发明属于通信领域, 尤其涉及一种网络中 IP地址获取方法、 中继设备及 系统。
背景技术
动态主机配置十办议 ( Dynamic Host Configuration Protocol, DHCP )是基于 TCP/IP协议的一种动态地址分配方案。 与手工配置 IP地址相比, DHCP具有可 自动配置 TCP/IP参数(包括 IP地址、 子网掩码、 缺省网关、 DNS等待) , 分 配的 IP地址有租借期限以及到租期后可回收重新使用等优点。 这样, 可把所有 TCP/IP协议的配置信息集中的存储到 DHCP服务器上, 集中存储和管理能避免 IP地址的冲突, 同时把管理员从繁重的手工配置劳动中解放出来。 随着目前网 络的规模越大, DHCP的优势就越明显。
由于 DHCP协议需要使用广播请求配置, 这就限制 DHCP客户机和 DHCP 服务器需要在同一个物理网段, 每一个物理网段都需要一个 DHCP服务器。 如 果 DHCP客户机和 DHCP服务器不在同一个物理网段, DHCP客户机则需要使 用到 DHCP中继 (DHCP Relay Agent, DHCP中继) , 从不是同一个物理网段 的 DHCP服务器获取 IP地址。具有 DHCP 中继功能的网络设备可以收取 DHCP 请求报文转发给其他物理网段的 DHCP服务器, 这样 DHCP服务器就可以给不 是同一个物理网段的 DHCP客户机做相应的配置。 从而通过 DHCP中继可以去 掉每个物理网段上都需要 DHCP服务器的限制。
由于目前 DHCP中继的实现是根据 DHCP请求 4艮文中 OPTION60或 MAC 地址区分出来的 DHCP客户机类型, 一种 DHCP客户机类型分配一个 DHCP gateway IP,这样对于同一种客户机类型需要分配不同网段的情况,如两种 DHCP 客户机其 OPTION60相同, 但是为了根据其所在的不同区域位置或者根据其提 供的不同业务类型,需要 DHCP服务器为这两种 DHCP客户机分配不同 IP段的 IP地址, 在这种情况下目前的 DHCP中继就无法实现。
发明内容
本发明实施例的目的在于提供一种网络中 IP地址获取方法及中继设备、 系 统, 可以实现相同的 DHCP客户机类型分配多个不同 IP地址段 IP。
第一方面, 一种网络中的因特网协议 IP地址获取方法, 所述网络包括客户 端、 中继设备和动态主机配置协议 DHCP服务器, 所述客户端通过所述中继设 备与所述 DHCP服务器相连, 其特征在于, 所述中继设备上配置有与所述客户 端类型对应的多个网关 gateway IP地址, 所述方法包括:
所述中继设备将所述多个 gateway IP地址添加到所述客户端的 DHCP发现 Discover报文中发送给所述 DHCP服务器, 以使得所述 DHCP服务器给所述客 户端分配 IP地址,在判定所述多个 gateway IP地址中存在一个与所分配的 IP地 址属于同一个网段的 gateway IP地址后给所述客户端发送 DHCP Offer报文; 所述中继设备接收来自所述客户端的 DHCP Request报文, 从所述 DHCP Request报文中获取所述客户端的 IP地址;
所述中继设备将所述多个 gateway IP中与所述客户端的 IP地址处于同一个 网段的 gateway IP添加到所述 DHCP Request报文中, 将添加有 gateway IP的 DHCP Request报文发送给所述 DHCP服务器,从而使得所述 DHCP服务器给所 述客户端分配 IP地址。
结合第一方面, 在第一方面的第一种可能的实现方式中, 所述中继设备将 所述多个 gateway IP地址添加到所述客户端的 DHCP发现 Discover报文中发送 给所述 DHCP服务器之前还包括:
获取所述客户端的类型, 根据客户端的类型获取对应的多个 gateway IP。 结合第一方面, 在第一方面的第二种可能的实现方式中, 所述中继设备将 所述多个 gateway IP地址添加到所述客户端的 DHCP Discover报文中发送给所 述 DHCP服务器具体包括:
接收来自所述客户端的 DHCP Discover报文, 对所述 DHCP Discover报文 进行复制, 得到多个 DHCP Discover报文, 在每个 DHCP Discover报文中添加 所述多个 gateway IP地址中的一个 gateway IP地址 ,将所述多个携带不同 gateway 结合第一方面, 在第一方面的第三种可能的实现方式中, 所述中继设备将 所述多个 gateway IP地址添加到所述客户端的 DHCP Discover报文中发送给所 述 DHCP服务器具体包括:
接收所述客户端的多个 DHCP Discover报文, 依次将所述多个 gateway IP 中添加到所述多个 DHCP Discover报文中发送给所述 DHCP服务器, 其中, 每 一个 DHCP Discover报文携带一个不同的 gateway IP。
结合第一方面或者第一方面的第一种可能的实现方式或者第一方面的第二 种可能的实现方式或者第一方面的第三种可能的实现方式, 在第一方面的第四 种可能的实现方式中, 从所述 DHCP Request报文中获取所述客户端的 IP地址 具体包括:
从所述 DHCP Request报文的 Option 50或者 ciaddr中获取所述客户端的 IP 地址。
第二方面, 一种中继设备, 其特征在于, 包括:
用户侧端口, 用于连接客户端, 用于接收所述客户端的动态主机配置协议
DHCP发现 Discover报文;
存储器, 用于存储与所述客户端的类型对应的多个 gateway IP;
网络侧端口, 用于连接 DHCP服务器;
第一处理器, 用于将所述多个 gateway IP地址添加到所述客户端的 DHCP 发现 Discover报文中, 通过所述网络侧端口发送给所述 DHCP服务器, 以使得 所述 DHCP服务器给所述客户端分配 IP地址, 在判定所述多个 gateway IP地址 中存在一个与所分配的 IP地址属于同一个网段的 gateway IP地址后给所述客户 端发送 DHCP Offer报文;
第二处理器, 用于在所述用户侧端口接收到来自所述客户端的 DHCP Request报文后, 从所述 DHCP Request报文中获取所述客户端的 IP地址, 从所 述多个 gateway IP 地址选择一个与所述客户端的 IP 地址处于同一个网段的 gateway IP, 将选择的 gateway IP添加到所述 DHCP Request 4艮文中发送给所述 DHCP服务器, 从而使得所述 DHCP服务器给所述客户端分配 IP地址。
结合第二方面, 在第二方面的第一种可能的实现方式中, 所述第一处理器 具体包括:
复制模块, 用于对所述 DHCP Discover 4艮文进行复制, 得到多个 DHCP Discover 艮文;
添加模块, 用于在每个 DHCP Discover报文中添加所述多个 gateway IP地 址中的一个 gateway IP地址;
发送模块, 用于将多个携带不同 gateway IP地址的 DHCP Discover报文通 过所述网络侧端口发送给所述 DHCP服务器。
结合第二方面, 在第二方面的第二种可能的实现方式中, 所述第一处理器 具体包括:
添加模块, 用于将所述多个 gateway IP添加到所述用户侧端口接收的多个
DHCP Discover报文中, 每一个 DHCP discover报文中添加一个 gateway IP; 发送模块, 用于将多个添加有 gateway IP的 DHCP Discover报文发送给所 述 DHCP服务器。
结合第二方面或者第二方面的第一种可能的实现方式或者第二方面的第二 种可能的实现方式, 在第二方面的第三种可能的实现方式中, 所述第二处理器 具体从所述 DHCP Request报文的 Option 50或者 ciaddr中获取所述客户端的 IP 地址。
结合第二方面的第三种可能的实现方式, 在第二方面的第四种可能的实现 方式中, 所述中继设备为数字用户线接入复用器 DSLAM、 光线路终端 OLT或 者多业务接入节点 MS AN。
第三方面, 一种获取因特网协议 IP的系统, 包括客户端、 中继设备和动态 主机配置协议 DHCP服务器, 所述客户端通过所述中继设备与所述 DHCP服务 器相连, 其特征在于,
所述中继设备,配置有与所述客户端类型对应的多个网关 gateway IP地址, 将所述多个 gateway IP地址添加到所述客户端的 DHCP发现 Discover报文中发 送给所述 DHCP服务器; 以及接收来自所述客户端的 DHCP Request报文,从所 述 DHCP Request报文中获取所述客户端的 IP地址, 从所述多个 gateway IP地 址选择一个与所述客户端的 IP 地址处于同一个网段的 gateway IP, 将选择的 gateway IP添加到所述 DHCP Request报文中发送给所述 DHCP服务器, 从而使 得所述 DHCP服务器给所述客户端分配 IP地址;
所述 DHCP服务器, 用于收到所述 DHCP Discover报文后, 给所述客户端 分配 IP地址,在判定所述多个 gateway IP地址中存在一个与所分配的 IP地址属 于同一个网段的 gateway IP地址后给所述客户端发送 DHCP Offer报文。
结合第三方面, 在第三方面的第一种可能的实现方式中, 所述中继设备将 所述多个 gateway IP地址添加到所述客户端的 DHCP发现 Discover报文中发送 给所述 DHCP服务器具体包括:
接收来自所述客户端的所述 DHCP Discover报文, 对所述 DHCP Discover 报文进行复制, 得到多个 DHCP Discover报文, 在每个 DHCP Discover报文中 添加所述多个 gateway IP地址中的一个 gateway IP地址, 将所述多个携带不同 结合第三方面, 在第三方面的第二种可能的实现方式中, 所述中继设备将 所述多个 gateway IP地址添加到所述客户端的 DHCP发现 Discover报文中发送 给所述 DHCP服务器具体包括:
接收所述客户端的多个 DHCP Discover报文, 依次将所述多个 gateway IP 中添加到所述多个 DHCP Discover报文中发送给所述 DHCP服务器, 其中, 每 一个 DHCP Discover报文携带一个不同的 gateway IP。
结合第三方面或者第三方面的第一种可能的实现方式或者第三方面的第二 种可能的实现方式, 在第三方面的第三种可能的实现方式中, 所述中继设备还 用于接收到所述客户端的 DHCP Discover报文后, 获取所述客户端的类型, 根 据客户端的类型获取对应的多个 gateway IP。
与现有技术相比, 本发明实施例提供一种网络中 IP地址获取方法, 所述方 法通过中继设备配置与所述客户端类型对应的多个 gateway IP地址; 所述中继 设备将所述多个 gateway IP地址添加到所述客户端的 DHCP发现 Discover报文 中发送给所述 DHCP服务器,以使得所述 DHCP服务器给所述客户端分配 IP地 址, 在判定所述多个 gateway IP地址中存在一个与所分配的 IP地址属于同一个 网段的 gateway IP地址后给所述客户端发送 DHCP Offer报文; 所述中继设备将 所述多个 gateway IP中与所述客户端的 IP地址处于同一个网段的 gateway IP添 力口到所述 DHCP Request报文中, 将添加有 gateway IP的 DHCP Request报文发 送给所述 DHCP服务器 ,从而使得所述 DHCP服务器给所述客户端分配 IP地址 , 从而实现给相同的 DHCP客户机类型分配多个不同的 IP地址段的 IP。
附图说明 为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例中所需要 使用的附图作筒单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一 些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 图 1是本发明实施例一提供的一种网络中的 IP地址获取的方法流程图; 图 2是本发明实施例提供的一种网络中的 IP地址获取的方法示意图; 图 3是本发明实施例提供的一种网络中的 IP地址获取的方法示意图; 图 4是本发明实施例提供的一种网络中的 IP地址获取的方法示意图; 图 5是本发明实施例二提供的一种中继设备的装置结构图; 图 6是本发明实施例二提供的一种中继设备中第一处理器中的装置结构图; 图 7是本发明实施例二提供的一种中继设备中第一处理器中的装置结构图; 图 8是本发明实施例三提供的一种获取因特网协议 IP的系统结构图; 图 9是本发明实施例四提供的一种中继设备的装置结构图。
具体实施例 为了使本发明的目的、 技术方案及优点更加清楚明白, 以下结合附图及实 施例, 对本发明进行进一步详细说明。 应当理解, 此处所描述的具体实施例仅 仅用以解释本发明, 并不用于限定本发明。 以上所述仅为本发明的较佳实施例而已, 并不用以限制本发明, 凡在本发 明的精神和原则之内所作的任何修改、 等同替换和改进等, 均应包含在本发明 的保护范围之内。 实施例一 参考图 1 , 图 1是本发明实施例一提供的一种网络中的 IP地址获取方法流 程图。 如图 1所示, 该方法包括以下步骤:
步骤 101 , 所述中继设备将所述多个 gateway IP地址添加到所述客户端的 DHCP发现 Discover报文中发送给所述 DHCP服务器, 以使得所述 DHCP服务 器给所述客户端分配 IP地址, 在判定所述多个 gateway IP地址中存在一个与所 分配的 IP地址属于同一个网段的 gateway IP地址后给所述客户端发送 DHCP Offer 艮文;
可实现的, 所述中继设备将所述多个 gateway IP地址添加到所述客户端的 DHCP发现 Discover 4艮文中发送给所述 DHCP服务器之前还包括:
获取所述客户端的类型, 根据客户端的类型获取对应的多个 gateway IP。 本步骤中, DHCP中继设备 gateway IP地址自学习, 即 DHCP中继设备对 于同一种 DHCP客户机类型, 配置多个 gateway IP地址。
可实现的, 所述中继设备将所述多个 gateway IP地址添加到所述客户端的 DHCP Discover报文中发送给所述 DHCP服务器具体包括:
接收来自所述客户端的 DHCP Discover报文, 对所述 DHCP Discover报文 进行复制, 得到多个 DHCP Discover报文, 在每个 DHCP Discover报文中添加 所述多个 gateway IP地址中的一个 gateway IP地址,将所述多个携带不同 gateway 本步骤中, DHCP Discover报文是所述 DHCP客户机开始 DHCP过程的第 一个报文, 所述 DHCP客户机向所述 DHCP服务器发送 DHCP Discover报文, 以请求所述 DHCP服务器给所述 DHCP客户机配置正确的 IP地址。
可实现的, 所述中继设备将所述多个 gateway IP地址添加到所述客户端的 DHCP Discover报文中发送给所述 DHCP服务器具体包括:
接收所述客户端的多个 DHCP Discover报文, 依次将所述多个 gateway IP 中添加到所述多个 DHCP Discover报文中发送给所述 DHCP服务器, 其中, 每 一个 DHCP Discover报文携带一个不同的 gateway IP。
步骤 102, 所述中继设备接收来自所述客户端的 DHCP Request报文, 从所 述 DHCP Request报文中获取所述客户端的 IP地址;
可实现的, 从所述 DHCP Request报文中获取所述客户端的 IP地址具体包 括:
从所述 DHCP Request报文的 Option 50或者 ciaddr中获取所述客户端的 IP 地址。
本步骤中,所述 DHCP中继根据所述客户机发送的 DHCP Request 4艮文中的 Option 50字段或 ciaddr, 在所述多个 gateway IP地址中找到和所述 DHCP客户 机相同网段的 gateway IP地址。
步骤 103 , 所述中继设备将所述多个 gateway IP中与所述客户端的 IP地址 处于同一个网段的 gateway IP 添加到所述 DHCP Request报文中, 将添加有 gateway IP的 DHCP Request报文发送给所述 DHCP服务器,从而使得所述 DHCP 服务器给所述客户端分配 IP地址。
具体的, 参考图 2所示, 图 2是本发明实施例提供的一种网络中的 IP地址 获取方法示意图。 图 2包括以下步骤:
步骤 201 , DHCP客户机向 DHCP服务器发送 DHCP Discover报文, DHCP 中继接收所述 DHCP Discover报文, 将预先分配的多个 gateway IP地址中的第 一个 gateway IP地址填入所述 DHCP Discover 4艮文的 gateway IP地址中, 并将 据 DHCP Discover报文中的相关特征, 为所述 DHCP客户机预分配正确 IP网段 的 IP地址, 同时检查预分配的 IP地址与所述填入后的 DHCP Discover报文的 gateway IP地址是否属于同一个网段。
步骤 202, 若不属于同一个网段, 则所述 DHCP服务器认为所述 DHCP Discover报文非法, 释放预分配的 IP , 不再继续向该 DHCP客户机发送 DHCP Offer报文, 此后 DHCP客户机的状态机超时, 又会重新发送 DHCP Discover报 文, DHCP中继收到 DHCP客户机发送的第二个 DHCP Discover报文后, 选择第 二个 gateway IP填充到所述第二个 DHCP Discover报文的 gateway IP地址中, 并将填入后的所述第二个 DHCP Discover报文发给所述 DHCP服务器。 依次类 推, 通过逐一试探的方式直到为 DHCP Discover报文选择正确的 gateway IP地 址。 步骤 203 , 若属于同一网段, 则所述 DHCP服务器将 DHCP Offer报文发给 所述 DHCP客户机;
步骤 204 ,所述 DHCP客户机接收所述 DHCP Offer报文之后,给所述 DHCP 服务器发送 DHCP Request报文; 所述 DHCP中继根据所述 DHCP Request报文 的相关特征, 在所述多个 gateway IP地址中找到和所述 DHCP客户机相同网段 的 gateway IP地址, 填入所述 DHCP Request 4艮文的 gateway IP地址中, 并将填 入后的 DHCP Request 4艮文发送给所述 DHCP服务器;
步骤 205所示, 所述 DHCP服务器接收所述填入后的 DHCP Request报文, 并向所述 DHCP客户机回应 DHCP ACK报文, 以使得所述 DHCP客户机根据 所述 DHCP ACK报文获取正确 IP网段的 IP地址。 作为一种可选的实施例, 所述方法还包括:
若不属于同一网段, 则所述 DHCP服务器确认所述 DHCP Discover报文非 法, 释放所述预分配正确 IP网段的 IP地址, 不再继续向所述 DHCP客户机发 送 DHCP Offer报文;
此后所述 DHCP客户机的状态超时, 又会向所述 DHCP服务器重新发送
Discover报文, 所述 DHCP中继接收所述 DHCP客户机重新发送的 DHCP Discover 4艮文时,从所述多个 gateway IP地址中选择下一个 gateway IP地址填入 所述重新发送的 DHCP Discover报文的 gateway IP地址中,并将填入后的 DHCP Discover报文发送给所述 DHCP服务器, 执行步骤所述 DHCP服务器接收所述 填入后的 DHCP Discover报文, 根据所述 DHCP Discover报文的相关特征, 为 所述 DHCP客户机预分配正确 IP网段的 IP地址, 并判断所述预分配的 IP地址 和所述填入后的 DHCP Discover报文的 gateway IP地址是否属于同一网段。
具体的, 参考图 3所示, 图 3是本发明实施例提供的一种网络中的 IP地址 获取方法示意图。 图 3包括以下步骤:
步骤 301 , DHCP客户机向 DHCP服务器发送 DHCP Discover报文; 所述
DHCP中继接收所述 DHCP Discover报文, 将所述 DHCP Discover 4艮文复制成 多个, 在每个 DHCP Discover报文中添加所述多个 gateway IP地址中的一个 gateway IP地址,并将将所述多个携带不同 gateway IP地址的 DHCP Discover报 文发送给所述 DHCP服务器;
步骤 302,所述 DHCP服务器接收所述填入后的多个 DHCP Discover报文, 根据所述多个 DHCP Discover报文的相关特征, 为所述 DHCP客户机预分配正 确 IP网段的 IP地址, 并判断所述预分配的 IP地址和所述填入后的多个 DHCP Discover报文的 gateway IP 地址是否属于同一网段, 并对相同网段的 DHCP Discover 4艮文回应 DHCP Offer 4艮文;
本步骤中, 所述 DHCP服务器接收所述填入后的多个 DHCP Discover报文 后, 才艮据所述 DHCP Discover报文的 OPTION60或 MAC地址, 为所述 DHCP 客户机预分配正确 IP网段的 IP地址, 并判断所述预分配的 IP地址和所述填入 后的多个 DHCP Discover报文的 gateway IP地址是否属于同一网段, 并对相同 网段的 DHCP Discover报文回应 DHCP Offer报文。
其中, DHCP Offer报文是 DHCP服务器对 DHCP Discover报文的相应。 步骤 303 ,所述 DHCP客户机接收所述 DHCP Offer 4艮文之后,给所述 DHCP 服务器发送 DHCP Request报文; 所述 DHCP中继根据所述 DHCP Request报文 的相关特征, 在所述多个 gateway IP地址中找到和所述 DHCP客户机相同网段 的 gateway IP地址, 填入所述 DHCP Request 4艮文的 gateway IP地址中, 并将填 入后的 DHCP Request 4艮文发送给所述 DHCP服务器;
其中, DHCP Request报文是 DHCP客户机开始 DHCP过程中, 对 DHCP 服务器的 DHCP Offer报文的回应, 或者是 DHCP客户机续延 IP地址租期时发 出的报文。
本步骤中, 所述 DHCP中继根据所述 DHCP Request 4艮文中的所述 DHCP 客户机的 IP地址, 即 DHCP Request报文中的 Option 50字段或 ciaddr, 在所述 多个 gateway IP地址中找到和所述 DHCP客户机相同网段的 gateway IP地址, 填入所述 DHCP Request报文的 gateway IP地址中,并将填入后的 DHCP Request 报文发送给所述 DHCP服务器。
步骤 304, 所述 DHCP服务器接收所述填入后的 DHCP Request报文, 并向 所述 DHCP客户机回应 DHCP ACK报文, 以使得所述 DHCP客户机根据所述 DHCP ACK报文获取正确 IP网段的 IP地址。
其中, DHCP ACK报文是 DHCP服务器对 DHCP客户机的 DHCP Request 报文的确认响应报文, DHCP客户机收到此报文后,一般会重新开始新的 DHCP 过程。
本步骤中, 所述 DHCP服务器接收所述填入后的 DHCP Request报文, 并向 所述 DHCP客户机回应 DHCP ACK报文, 以使得所述 DHCP客户机根据所述 DHCP ACK报文获取正确 IP网段的 IP地址, 从而完成所述 DHCP客户机获取 IP的过程。
作为另一种可选的实施例, 参考图 4, 图 4是本发明实施例提供的一种网络 中 IP地址获取方法的方法示意图。
DHCP客户机完成 IP地址获取的过程后, 在租期为 50%时, 所述 DHCP客 户机向 DHCP服务器发送单播 DHCP Request报文, 若所述 DHCP服务器响应 此 DHCP Request报文后, 则发送 DHCP ACK报文给所述 DHCP客户机, 确认 此报文有效, 并确认所述 DHCP客户机可以继续使用当前分配的 IP地址。
当所述单播 DHCP Request报文失败时, 在租期为 87.5%时, 所述 DHCP客 户机向所述 DHCP服务器发送广播 DHCP Request报文, DHCP中继接收所述广 播 DHCP Request报文后, 根据所述 DHCP Request报文中的 ciaddr字段, 将正 确的 gateway IP填入所述 DHCP Request报文的 gateway IP地址中。 所述 DHCP 服务器接收填入后的 DHCP Request报文后,回应 DHCP ACK报文给所述 DHCP 客户机, 所述 DHCP客户机根据所述 DHCP ACK报文获取正确的 IP地址, 从 而完成所述 DHCP客户机获取 IP地址的过程。
本发明实施例提供一种网络中 IP地址获取方法, 所述方法通过中继设备配 置与所述客户端类型对应的多个 gateway IP 地址; 所述中继设备将所述多个 gateway IP地址添加到所述客户端的 DHCP发现 Discover 4艮文中发送给所述 DHCP服务器, 以使得所述 DHCP服务器给所述客户端分配 IP地址, 在判定所 述多个 gateway IP地址中存在一个与所分配的 IP地址属于同一个网段的 gateway IP地址后给所述客户端发送 DHCP Offer报文;所述中继设备将所述多个 gateway IP中与所述客户端的 IP地址处于同一个网段的 gateway IP添加到所述 DHCP Request报文中, 将添加有 gateway IP的 DHCP Request报文发送给所述 DHCP 服务器, 从而使得所述 DHCP服务器给所述客户端分配 IP地址, 从而实现给相 同的 DHCP客户机类型分配多个不同的 IP地址段的 IP。
本实施例中, 对于 DHCP客户机的续租处理, 其单播续租, 不需要 DHCP 中继, 而对于广播续租报文, DHCP学习 DHCP Request报文中的 ciaddr字段, 填写正确的 gateway IP地址, 这样, 通过一种网络中 IP地址获取方法, 无论是 正常获取 IP地址的过程还是续租的过程, 都可以使得 DHCP客户机获取正确的 IP地址。
实施例二 参考图 5 , 图 5是本发明实施例二提供的一种中继设备的装置结构图。如图 5所示, 该装置包括以下设备:
用户侧端口 501 , 用于连接客户端, 用于接收所述客户端的动态主机配置协 议 DHCP发现 Discover报文;
存储器 502, 用于存储与所述客户端的类型对应的多个 gateway IP;
网络侧端口 503 , 用于连接 DHCP服务器;
第一处理器 504 , 用于将所述多个 gateway IP 地址添加到所述客户端的 DHCP发现 Discover报文中, 通过所述网络侧端口发送给所述 DHCP服务器, 以使得所述 DHCP服务器给所述客户端分配 IP地址,在判定所述多个 gateway IP 地址中存在一个与所分配的 IP地址属于同一个网段的 gateway IP地址后给所述 客户端发送 DHCP Offer报文;
可实现的, 所述第一处理器 504具体包括:
复制模块 601 , 用于对所述 DHCP Discover 4艮文进行复制, 得到多个 DHCP Discover 艮文;
添加模块 602 , 用于在每个 DHCP Discover报文中添加所述多个 gateway IP 地址中的一个 gateway IP地址;
发送模块 603 ,用于将多个携带不同 gateway IP地址的 DHCP Discover报文 通过所述网络侧端口发送给所述 DHCP服务器。
可实现的, 所述第一处理器 504具体包括:
添加模块 701 ,用于将所述多个 gateway IP添加到所述用户侧端口接收的多 个 DHCP Discover报文中, 每一个 DHCP discover报文中添加一个 gateway IP; 发送模块 702 ,用于将多个添加有 gateway IP的 DHCP Discover报文发送给 所述 DHCP服务器。
第二处理器 505 , 用于在所述用户侧端口接收到来自所述客户端的 DHCP Request报文后, 从所述 DHCP Request报文中获取所述客户端的 IP地址, 从所 述多个 gateway IP 地址选择一个与所述客户端的 IP 地址处于同一个网段的 gateway IP, 将选择的 gateway IP添加到所述 DHCP Request 4艮文中发送给所述 DHCP服务器, 从而使得所述 DHCP服务器给所述客户端分配 IP地址。
可实现的, 所述第二处理器具体从所述 DHCP Request报文的 Option 50或 者 ciaddr中获取所述客户端的 IP地址。
所述中继设备为数字用户线接入复用器 DSLAM、 光线路终端 OLT或者多 业务接入节点 MSAN。
本发明实施例提供一种中继设备, 所述设备通过中继设备配置与所述客户 端类型对应的多个 gateway IP地址; 所述中继设备将所述多个 gateway IP地址 添加到所述客户端的 DHCP发现 Discover报文中发送给所述 DHCP服务器, 以 使得所述 DHCP服务器给所述客户端分配 IP地址, 在判定所述多个 gateway IP 地址中存在一个与所分配的 IP地址属于同一个网段的 gateway IP地址后给所述 客户端发送 DHCP Offer报文; 所述中继设备将所述多个 gateway IP中与所述客 户端的 IP地址处于同一个网段的 gateway IP添加到所述 DHCP Request报文中, 将添加有 gateway IP的 DHCP Request报文发送给所述 DHCP服务器,从而使得 所述 DHCP服务器给所述客户端分配 IP地址,从而实现给相同的 DHCP客户机 类型分配多个不同的 IP地址段的 IP。
实施例三 参考图 8, 图 8是本发明实施例三提供的一种获取因特网协议 IP的系统结 构图。 如图 8所示, 所述系统包括以下装置:
包括客户端、 中继设备和动态主机配置协议 DHCP服务器, 所述客户端通 过所述中继设备与所述 DHCP服务器相连, 其特征在于,
所述中继设备,配置有与所述客户端类型对应的多个网关 gateway IP地址, 将所述多个 gateway IP地址添加到所述客户端的 DHCP发现 Discover报文中发 送给所述 DHCP服务器; 以及接收来自所述客户端的 DHCP Request报文,从所 述 DHCP Request报文中获取所述客户端的 IP地址, 从所述多个 gateway IP地 址选择一个与所述客户端的 IP 地址处于同一个网段的 gateway IP, 将选择的 gateway IP添加到所述 DHCP Request报文中发送给所述 DHCP服务器, 从而使 得所述 DHCP服务器给所述客户端分配 IP地址;
可实现的, 所述中继设备将所述多个 gateway IP地址添加到所述客户端的 DHCP发现 Discover 4艮文中发送给所述 DHCP服务器具体包括:
接收来自所述客户端的所述 DHCP Discover报文, 对所述 DHCP Discover 报文进行复制, 得到多个 DHCP Discover报文, 在每个 DHCP Discover报文中 添加所述多个 gateway IP地址中的一个 gateway IP地址, 将所述多个携带不同 可实现的, 所述中继设备将所述多个 gateway IP地址添加到所述客户端的 DHCP发现 Discover 4艮文中发送给所述 DHCP服务器具体包括:
接收所述客户端的多个 DHCP Discover报文, 依次将所述多个 gateway IP 中添加到所述多个 DHCP Discover报文中发送给所述 DHCP服务器, 其中, 每 一个 DHCP Discover报文携带一个不同的 gateway IP。
所述 DHCP服务器, 用于收到所述 DHCP Discover报文后, 给所述客户端 分配 IP地址,在判定所述多个 gateway IP地址中存在一个与所分配的 IP地址属 于同一个网段的 gateway IP地址后给所述客户端发送 DHCP Offer报文。
作为一种可选的实施例, 所述中继设备还用于接收到所述客户端的 DHCP Discover报文后, 获取所述客户端的类型, 根据客户端的类型获取对应的多个 gateway IP。
本发明实施例提供一种系统, 所述系统通过中继设备配置与所述客户端类 型对应的多个 gateway IP地址; 所述中继设备将所述多个 gateway IP地址添加 到所述客户端的 DHCP发现 Discover报文中发送给所述 DHCP服务器, 以使得 所述 DHCP服务器给所述客户端分配 IP地址, 在判定所述多个 gateway IP地址 中存在一个与所分配的 IP地址属于同一个网段的 gateway IP地址后给所述客户 端发送 DHCP Offer报文; 所述中继设备将所述多个 gateway IP中与所述客户端 的 IP地址处于同一个网段的 gateway IP添加到所述 DHCP Request报文中, 将 添加有 gateway IP的 DHCP Request报文发送给所述 DHCP服务器,从而使得所 述 DHCP服务器给所述客户端分配 IP地址,从而实现给相同的 DHCP客户机类 型分配多个不同的 IP地址段的 IP。
实施例四
参考图 9, 图 9是本发明实施例四提供的一种中继设备的装置结构图。 参考 图 9, 图 9是本发明实施例提供的中继设备 900, 本发明具体实施例并不对所述 通信设备的具体实现做限定。 所述中继设备 900包括:
处理器 (processor)901 , 芯片 A902, 存储器 (memory)903 , 总线 904。
处理器 901 , 芯片 902, 存储器 903通过总线 904完成相互间的通信。
芯片 902, 用于与 DHCP服务器进行通信;
处理器 901 , 用于执行程序。
具体地, 程序可以包括程序代码, 所述程序代码包括计算机操作指令。 处理器 901可能是一个或多个中央处理器 CPU,或者是特定集成电路 ASIC ( Application Specific Integrated Circuit ), 或者是被配置成实施本发明实施例的 一个或多个集成电路。
存储器 903 , 用于存储程序。 存储器 903可能包含高速随机存储器 (random access memory , 筒称 RAM) , 也可能还包括非易失性存储器 ( non-volatile memory )。
当所述中继设备运行时, 所述处理器 901用于执行所述程序:
所述中继设备将所述多个 gateway IP地址添加到所述客户端的 DHCP发现 Discover报文中发送给所述 DHCP服务器, 以使得所述 DHCP服务器给所述客 户端分配 IP地址,在判定所述多个 gateway IP地址中存在一个与所分配的 IP地 址属于同一个网段的 gateway IP地址后给所述客户端发送 DHCP Offer报文; 所述中继设备接收来自所述客户端的 DHCP Request报文, 从所述 DHCP Request报文中获取所述客户端的 IP地址;
所述中继设备将所述多个 gateway IP中与所述客户端的 IP地址处于同一个 网段的 gateway IP添加到所述 DHCP Request报文中, 将添加有 gateway IP的 DHCP Request报文发送给所述 DHCP服务器,从而使得所述 DHCP服务器给所 述客户端分配 IP地址。 本领域普通技术人员可以理解实现本发明各实施例方法中的全部或部分流 程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于一 计算机可读取存储介质中, 该程序在执行时, 可包括如上述各方法的实施例的 流程。 其中, 所述的存储介质可为磁碟、 光盘、 只读存储记忆体(Read-Only Memory, ROM )或随机存储记忆体 ( Random Access Memory, RAM )等。
以上所列举的仅为本发明较佳实施例而已, 当然不能以此来限定本发明之 权利范围, 因此依本发明权利要求所作的等同变化, 仍属本发明所涵盖的范围。

Claims

权利要求书
1、 一种网络中的因特网协议 IP地址获取方法, 所述网络包括客户端、 中继 设备和动态主机配置协议 DHCP服务器, 所述客户端通过所述中继设备与所述 DHCP服务器相连,其特征在于,所述中继设备上配置有与所述客户端类型对应 的多个网关 gateway IP地址, 所述方法包括:
所述中继设备将所述多个 gateway IP地址添加到所述客户端的 DHCP发现 Discover报文中发送给所述 DHCP服务器, 以使得所述 DHCP服务器给所述客 户端分配 IP地址,在判定所述多个 gateway IP地址中存在一个与所分配的 IP地 址属于同一个网段的 gateway IP地址后给所述客户端发送 DHCP Offer报文; 所述中继设备接收来自所述客户端的 DHCP Request报文, 从所述 DHCP Request报文中获取所述客户端的 IP地址;
所述中继设备将所述多个 gateway IP中与所述客户端的 IP地址处于同一个 网段的 gateway IP添加到所述 DHCP Request报文中, 将添加有 gateway IP的 DHCP Request报文发送给所述 DHCP服务器,从而使得所述 DHCP服务器给所 述客户端分配 IP地址。
2、 根据权利要求 1 所述的方法, 其特征在于, 所述中继设备将所述多个 gateway IP地址添加到所述客户端的 DHCP发现 Discover 4艮文中发送给所述 DHCP服务器之前还包括:
获取所述客户端的类型, 根据客户端的类型获取对应的多个 gateway IP。
3、 根据权利要求 1 所述的方法, 其特征在于, 所述中继设备将所述多个 gateway IP地址添加到所述客户端的 DHCP Discover报文中发送给所述 DHCP 服务器具体包括:
接收来自所述客户端的 DHCP Discover报文, 对所述 DHCP Discover报文 进行复制, 得到多个 DHCP Discover报文, 在每个 DHCP Discover报文中添加 所述多个 gateway IP地址中的一个 gateway IP地址,将所述多个携带不同 gateway
4、 根据权利要求 1 所述的方法, 其特征在于, 所述中继设备将所述多个 gateway IP地址添加到所述客户端的 DHCP Discover报文中发送给所述 DHCP 服务器具体包括:
接收所述客户端的多个 DHCP Discover报文, 依次将所述多个 gateway IP 中添加到所述多个 DHCP Discover报文中发送给所述 DHCP服务器, 其中, 每 一个 DHCP Discover报文携带一个不同的 gateway IP。
5、 根据权利要求 1-4任意一项所述的方法, 其特征在于, 从所述 DHCP Request报文中获取所述客户端的 IP地址具体包括:
从所述 DHCP Request报文的 Option 50或者 ciaddr中获取所述客户端的 IP 地址。
6、 一种中继设备, 其特征在于, 包括:
用户侧端口, 用于连接客户端, 用于接收所述客户端的动态主机配置协议 DHCP发现 Discover报文;
存储器, 用于存储与所述客户端的类型对应的多个 gateway IP;
网络侧端口, 用于连接 DHCP服务器;
第一处理器, 用于将所述多个 gateway IP地址添加到所述客户端的 DHCP 发现 Discover报文中, 通过所述网络侧端口发送给所述 DHCP服务器, 以使得 所述 DHCP服务器给所述客户端分配 IP地址, 在判定所述多个 gateway IP地址 中存在一个与所分配的 IP地址属于同一个网段的 gateway IP地址后给所述客户 端发送 DHCP Offer报文;
第二处理器, 用于在所述用户侧端口接收到来自所述客户端的 DHCP Request报文后, 从所述 DHCP Request报文中获取所述客户端的 IP地址, 从所 述多个 gateway IP 地址选择一个与所述客户端的 IP 地址处于同一个网段的 gateway IP, 将选择的 gateway IP添加到所述 DHCP Request 4艮文中发送给所述 DHCP服务器, 从而使得所述 DHCP服务器给所述客户端分配 IP地址。
7、 根据权利要求 6所述的设备, 其特征在于, 所述第一处理器具体包括: 复制模块, 用于对所述 DHCP Discover 4艮文进行复制, 得到多个 DHCP
Discover 艮文;
添加模块, 用于在每个 DHCP Discover报文中添加所述多个 gateway IP地 址中的一个 gateway IP地址;
发送模块, 用于将多个携带不同 gateway IP地址的 DHCP Discover报文通 过所述网络侧端口发送给所述 DHCP服务器。
8、 根据权利要求 6所述的设备, 其特征在于, 所述第一处理器具体包括: 添加模块, 用于将所述多个 gateway IP添加到所述用户侧端口接收的多个
DHCP Discover报文中, 每一个 DHCP discover报文中添加一个 gateway IP; 发送模块, 用于将多个添加有 gateway IP的 DHCP Discover报文发送给所 述 DHCP服务器。
9、 根据权利要求 6-8任意一项所述的设备, 其特征在于, 所述第二处理器 具体从所述 DHCP Request报文的 Option 50或者 ciaddr中获取所述客户端的 IP 地址。
10、 根据权利要求 9 所述的设备, 其特征在于, 所述中继设备为数字用户 线接入复用器 DSLAM、 光线路终端 OLT或者多业务接入节点 MSAN。
11、 一种获取因特网协议 IP的系统, 包括客户端、 中继设备和动态主机配 置协议 DHCP服务器,所述客户端通过所述中继设备与所述 DHCP服务器相连, 其特征在于,
所述中继设备,配置有与所述客户端类型对应的多个网关 gateway IP地址, 将所述多个 gateway IP地址添加到所述客户端的 DHCP发现 Discover报文中发 送给所述 DHCP服务器; 以及接收来自所述客户端的 DHCP Request报文,从所 述 DHCP Request报文中获取所述客户端的 IP地址, 从所述多个 gateway IP地 址选择一个与所述客户端的 IP 地址处于同一个网段的 gateway IP, 将选择的 gateway IP添加到所述 DHCP Request报文中发送给所述 DHCP服务器, 从而使 得所述 DHCP服务器给所述客户端分配 IP地址;
所述 DHCP服务器, 用于收到所述 DHCP Discover报文后, 给所述客户端 分配 IP地址,在判定所述多个 gateway IP地址中存在一个与所分配的 IP地址属 于同一个网段的 gateway IP地址后给所述客户端发送 DHCP Offer报文。
12、 根据权利要求 11所述的系统, 其特征在于, 所述中继设备将所述多个 gateway IP地址添加到所述客户端的 DHCP发现 Discover 4艮文中发送给所述 DHCP服务器具体包括:
接收来自所述客户端的所述 DHCP Discover报文, 对所述 DHCP Discover 报文进行复制, 得到多个 DHCP Discover报文, 在每个 DHCP Discover报文中 添加所述多个 gateway IP地址中的一个 gateway IP地址, 将所述多个携带不同
13、 根据权利要求 11所述的系统, 其特征在于, 所述中继设备将所述多个 gateway IP地址添加到所述客户端的 DHCP发现 Discover 4艮文中发送给所述 DHCP服务器具体包括:
接收所述客户端的多个 DHCP Discover报文, 依次将所述多个 gateway IP 中添加到所述多个 DHCP Discover报文中发送给所述 DHCP服务器, 其中, 每 一个 DHCP Discover报文携带一个不同的 gateway IP。
14、 根据权利要求 11-13任意一项所述的系统, 其特征在于, 所述中继设备 还用于接收到所述客户端的 DHCP Discover报文后, 获取所述客户端的类型, 根据客户端的类型获取对应的多个 gateway IP。
PCT/CN2013/089968 2012-12-19 2013-12-19 一种网络中的因特网协议地址获取方法、中继设备及系统 WO2014094633A1 (zh)

Priority Applications (5)

Application Number Priority Date Filing Date Title
EP13865100.5A EP2919444B1 (en) 2012-12-19 2013-12-19 Method, relay device, and system for acquiring internet protocol address in network
EP17152756.7A EP3264731B1 (en) 2012-12-19 2013-12-19 Method, relay agent, and system for acquiring internet protocol address in network
ES13865100.5T ES2628083T3 (es) 2012-12-19 2013-12-19 Método, dispositivo de retransmisión y sistema para adquirir una dirección de protocolo Internet en una red
PL17152756T PL3264731T3 (pl) 2012-12-19 2013-12-19 Sposób, jednostka przekaźnikowa i system do pozyskania adresu protokołu internetowego w sieci
US14/736,013 US10122679B2 (en) 2012-12-19 2015-06-10 Method, relay agent, and system for acquiring internet protocol address in network

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210553582.7 2012-12-19
CN201210553582.7A CN103888551B (zh) 2012-12-19 2012-12-19 一种网络中的因特网协议地址获取方法、中继设备及系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/736,013 Continuation US10122679B2 (en) 2012-12-19 2015-06-10 Method, relay agent, and system for acquiring internet protocol address in network

Publications (1)

Publication Number Publication Date
WO2014094633A1 true WO2014094633A1 (zh) 2014-06-26

Family

ID=50957267

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/089968 WO2014094633A1 (zh) 2012-12-19 2013-12-19 一种网络中的因特网协议地址获取方法、中继设备及系统

Country Status (6)

Country Link
US (1) US10122679B2 (zh)
EP (2) EP3264731B1 (zh)
CN (1) CN103888551B (zh)
ES (2) ES2715187T3 (zh)
PL (1) PL3264731T3 (zh)
WO (1) WO2014094633A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600407A (zh) * 2018-03-28 2018-09-28 新华三技术有限公司 一种ip地址分配方法、装置、设备及机器可读存储介质

Families Citing this family (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104104744B (zh) * 2014-07-09 2018-02-09 新华三技术有限公司 一种ip地址分配的方法和装置
US9521109B2 (en) * 2014-10-01 2016-12-13 The Boeing Company Systems, methods, and computer-readable media for allocation and renewal of IP addresses
CN104394242A (zh) * 2014-11-21 2015-03-04 华为技术有限公司 一种ip地址分配方法及装置
CN105847464B (zh) * 2016-05-30 2019-11-29 上海斐讯数据通信技术有限公司 一种多dhcp服务器网络环境下的ip地址管理方法和dhcp客户机
CN106878481B (zh) * 2016-12-30 2020-08-18 瑞斯康达科技发展股份有限公司 一种网络互连协议ip地址获取方法、装置和系统
CN106993067B (zh) * 2017-03-16 2020-07-21 华为技术有限公司 路由下发方法及设备
EP3609162B1 (en) 2017-04-27 2021-10-27 Huawei Technologies Co., Ltd. Method and terminal for realizing data service
CN107809384B (zh) * 2017-11-01 2020-05-29 携程旅游网络技术(上海)有限公司 终端设备的路由分配方法、装置、电子设备、存储介质
CN108600408A (zh) * 2018-03-30 2018-09-28 新华三技术有限公司 请求地址的方法及装置
CN109150638A (zh) * 2018-11-01 2019-01-04 郑州云海信息技术有限公司 一种路由管理方法及装置
US11425044B2 (en) * 2020-10-15 2022-08-23 Cisco Technology, Inc. DHCP layer 2 relay in VXLAN overlay fabric
CN112804377B (zh) * 2021-04-08 2021-07-06 紫光恒越技术有限公司 数据查询方法、电子设备、服务器、存储设备和网关设备
US11757933B1 (en) 2021-06-24 2023-09-12 Airgap Networks Inc. System and method for agentless lateral movement protection from ransomware for endpoints deployed under a default gateway with point to point links
US11722519B1 (en) 2021-06-24 2023-08-08 Airgap Networks Inc. System and method for dynamically avoiding double encryption of already encrypted traffic over point-to-point virtual private networks for lateral movement protection from ransomware
US11916957B1 (en) * 2021-06-24 2024-02-27 Airgap Networks Inc. System and method for utilizing DHCP relay to police DHCP address assignment in ransomware protected network
US12058171B1 (en) 2021-06-24 2024-08-06 Airgap Networks, Inc. System and method to create disposable jump boxes to securely access private applications
US11695799B1 (en) 2021-06-24 2023-07-04 Airgap Networks Inc. System and method for secure user access and agentless lateral movement protection from ransomware for endpoints deployed under a default gateway with point to point links
US11757934B1 (en) 2021-06-24 2023-09-12 Airgap Networks Inc. Extended browser monitoring inbound connection requests for agentless lateral movement protection from ransomware for endpoints deployed under a default gateway with point to point links
US12057969B1 (en) 2021-06-24 2024-08-06 Airgap Networks, Inc. System and method for load balancing endpoint traffic to multiple security appliances acting as default gateways with point-to-point links between endpoints
US12074906B1 (en) 2021-06-24 2024-08-27 Airgap Networks Inc. System and method for ransomware early detection using a security appliance as default gateway with point-to-point links between endpoints
US11736520B1 (en) 2021-06-24 2023-08-22 Airgap Networks Inc. Rapid incidence agentless lateral movement protection from ransomware for endpoints deployed under a default gateway with point to point links
US11711396B1 (en) 2021-06-24 2023-07-25 Airgap Networks Inc. Extended enterprise browser blocking spread of ransomware from alternate browsers in a system providing agentless lateral movement protection from ransomware for endpoints deployed under a default gateway with point to point links
CN114268603B (zh) * 2021-11-09 2023-09-22 国网浙江省电力有限公司宁波供电公司 一种自动获取配电自动化终端ip地址的方法及设备
US11765128B2 (en) * 2021-12-07 2023-09-19 Arris Enterprises Llc DHCP server IP address allocation improvement to nullify the impact of mac randomization
CN116347541A (zh) * 2021-12-23 2023-06-27 北京小米移动软件有限公司 通信方法、装置及存储介质
CN117527569A (zh) * 2023-12-05 2024-02-06 深圳市皖通邮电科技有限公司 Dhcp客户机自动适配dhcp网关的方法、设备及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949784A (zh) * 2005-10-12 2007-04-18 华为技术有限公司 Dhcp中继为dhcp客户端请求ip地址的方法
CN101534329A (zh) * 2009-04-16 2009-09-16 华为技术有限公司 一种ip地址分配方法及系统
CN102404418A (zh) * 2011-11-18 2012-04-04 华为数字技术有限公司 为用户终端分配ip地址的方法、装置和系统

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6587468B1 (en) * 1999-02-10 2003-07-01 Cisco Technology, Inc. Reply to sender DHCP option
US7337224B1 (en) * 2002-10-24 2008-02-26 Cisco Technology, Inc. Method and apparatus providing policy-based determination of network addresses
US7649866B2 (en) * 2003-06-24 2010-01-19 Tropos Networks, Inc. Method of subnet roaming within a network
DE102007036962A1 (de) * 2007-08-04 2009-02-05 Hirschmann Automation And Control Gmbh Verfahren zur DHCP Server-Konfiguration unter Verwendung von DHCP Option 82
WO2012163007A1 (zh) * 2011-10-17 2012-12-06 华为技术有限公司 解决网际协议地址分配冲突的方法及相关设备和系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949784A (zh) * 2005-10-12 2007-04-18 华为技术有限公司 Dhcp中继为dhcp客户端请求ip地址的方法
CN101534329A (zh) * 2009-04-16 2009-09-16 华为技术有限公司 一种ip地址分配方法及系统
CN102404418A (zh) * 2011-11-18 2012-04-04 华为数字技术有限公司 为用户终端分配ip地址的方法、装置和系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2919444A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600407A (zh) * 2018-03-28 2018-09-28 新华三技术有限公司 一种ip地址分配方法、装置、设备及机器可读存储介质
CN108600407B (zh) * 2018-03-28 2022-03-01 新华三技术有限公司 一种ip地址分配方法、装置、设备及机器可读存储介质

Also Published As

Publication number Publication date
ES2628083T3 (es) 2017-08-01
EP2919444B1 (en) 2017-04-26
PL3264731T3 (pl) 2019-05-31
CN103888551B (zh) 2017-09-12
US20150281172A1 (en) 2015-10-01
EP3264731A1 (en) 2018-01-03
US10122679B2 (en) 2018-11-06
ES2715187T3 (es) 2019-06-03
CN103888551A (zh) 2014-06-25
EP2919444A1 (en) 2015-09-16
EP2919444A4 (en) 2016-02-24
EP3264731B1 (en) 2018-12-19

Similar Documents

Publication Publication Date Title
WO2014094633A1 (zh) 一种网络中的因特网协议地址获取方法、中继设备及系统
CN108307002B (zh) 一种dhcp报文处理方法及装置
US6697360B1 (en) Method and apparatus for auto-configuring layer three intermediate computer network devices
US8125993B2 (en) Network element having a DHCP lease timer
WO2013159641A1 (zh) 地址分配方法、设备和系统
JP5967173B2 (ja) ネットワーク中継装置、ネットワーク中継装置が有するパケット中継処理部の動作モードを設定する方法、およびコンピュータープログラム
WO2011147353A1 (zh) 一种报文发送方法及装置
WO2013123763A1 (zh) 家庭网关动态配置ipv6的方法
WO2014015775A1 (zh) 一种IPv6地址无状态自动配置的系统、数据卡及其实现方法
JP5907239B2 (ja) ネットワーク中継装置、ネットワーク中継装置が有するパケット中継処理部の動作モードを設定する方法、およびコンピュータープログラム
CN112654049B (zh) 用于配置无线通信覆盖扩展系统的方法、系统、节点和介质
KR20110060895A (ko) 다중 인터넷 액세스를 제공하기 위한 방법 및 게이트웨이
WO2014086167A1 (zh) 一种移动终端及其地址分配方法和系统
WO2007028306A1 (fr) Procede de reconstruction de l'adresse reseau dans le reseau d'acces ipv6
US20150304274A1 (en) Method and apparatus for configuring dhcp client
TW201008203A (en) Network address assignment
WO2011000258A1 (zh) 基于动态主机分配协议的配置信息的获取方法和装置
CN103384282A (zh) 一种获取ipv6nd地址的方法及bars
CN106878481B (zh) 一种网络互连协议ip地址获取方法、装置和系统
US7085836B1 (en) System and method for automatic private IP address selection
JP2016063458A (ja) ネットワーク機器
WO2014169838A1 (zh) 动态主机配置协议服务器、中继的管理方法及装置
WO2013178164A1 (zh) IPv6域名服务器DNS地址分配、获取方法及装置
EP2568666A1 (en) Ip address obtaining method and network access device
JP2008227663A (ja) Ip通信装置及びこれを備えたip通信システム並びにipアドレス設定方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13865100

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2013865100

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2013865100

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE