CN1184776C - Method for the point-to-point protocol log-on user to obtain Internet protocol address - Google Patents

Method for the point-to-point protocol log-on user to obtain Internet protocol address Download PDF

Info

Publication number
CN1184776C
CN1184776C CNB021039259A CN02103925A CN1184776C CN 1184776 C CN1184776 C CN 1184776C CN B021039259 A CNB021039259 A CN B021039259A CN 02103925 A CN02103925 A CN 02103925A CN 1184776 C CN1184776 C CN 1184776C
Authority
CN
China
Prior art keywords
address
user
dhcp
message
point
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CNB021039259A
Other languages
Chinese (zh)
Other versions
CN1437360A (en
Inventor
宋强
周和秘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB021039259A priority Critical patent/CN1184776C/en
Publication of CN1437360A publication Critical patent/CN1437360A/en
Application granted granted Critical
Publication of CN1184776C publication Critical patent/CN1184776C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The present invention relates to a method for users to obtain Internet proposal addresses on networks through a point-to-point protocol, particularly to a method for users who get on the Internet by PPP to obtain Internet proposal (IP) addresses through a dynamic host configuration protocol (DHCP). The method has the procedures: an internal information message for requesting for allocating IP addresses is transmitted to a DHCP trunk module; the DHCP trunk module simulates an IP address request message in a DHCP format for the user and transmits the IP address request message to a DHCP server; the DHCP server allocates an IP address according to the content of the received IP address request message and gives the additional information of the address, and the IP address and the additional information informs the user through the DHCP trunk module. The present invention enables users who get on the Internet through PPP and VLAN to obtain IP addresses through the DHCP server, the present invention is convenient for the unified management of IP address pools, and the conflict condition of IP addresses can be effectively prevented.

Description

Obtain the method for Internet protocol address by the user of point-to-point protocol online
Technical field
The present invention relates to the method that a kind of Internet user obtains Internet protocol (IP) address, relate in particular to a kind of user by the PPP(Point-to-Point Protocol) online obtains IP from DHCP (DHCP) server method.
Background technology
At present, the mode of obtaining the IP address of the user by PPP online has two kinds: a kind of user of being passes through the authentication back and is composed to an IP address by access server; Another kind is after the user authenticates access service (RADIUS) authentication by remote subscriber, give IP address of user by radius server, perhaps being indicated by network access server distributing IP address (NAS-Alloc-IP) in authenticating by message by radius server, is that the user distributes an IP address by access server then.Access server manages by local ip pool the management of IP address resource, if by radius server distributing IP address, then the IP address resource is managed by disposing an address pool by radius server.
Some present network access equipments are used for convenience, are set to the form that can allow PPP and Virtual Local Area Network to insert simultaneously; Obtain the IP address by the VLAN Internet user by DHCP, the IP address pool is managed by Dynamic Host Configuration Protocol server; And obtain the IP address by the user of PPP online by DHCP (DHCP) as can be seen, and provide the IP address pool of IP address to manage by Dynamic Host Configuration Protocol server to the Internet user by above-mentioned prior art; Just make two kinds of different Internet users' IP address assignment not carry out unified management in this case, the disunity of IP address is managed, and then has the hidden danger of IP address conflict; Can't make simultaneously numerous users dynamically share same address pool, in addition, can not satisfy the demand of Internet Service Provider the unified management of Internet resources.
Summary of the invention
The purpose of this invention is to provide the method that a kind of user by the point-to-point protocol online obtains Internet protocol address, make user also can obtain the IP address by DHCP by the PPP online.
The object of the present invention is achieved like this: the method by the user of point-to-point protocol online obtains Internet protocol address comprises:
(1) by the user of ppp protocol online,, sends the inside story message of distributing IP Address requests to the DHCP relay module by system by behind the network authentication;
(2) the DHCP relay module simulates the IP Address requests message of DHCP form according to above-mentioned message for this user, and sends to Dynamic Host Configuration Protocol server;
(3) Dynamic Host Configuration Protocol server distributes an IP address according to the IP Address requests message content of receiving, and provides the additional messages of this address, and the DHCP relay module is returned in this IP address and additional messages;
(4) the DHCP relay module sends to system with IP address and additional messages, distributes to this user's IP address under the DHCP relay module records simultaneously;
(5) system is packaged in above-mentioned IP address and additional messages in internet control protocol (ipcp) the stage message of PPP, and notice is by the user of PPP online.
The IP Address requests message of described DHCP form comprises: Internet user's port information, gateway address.
Described step (3) is to be finished by following process:
(31) the IP Address requests message sent according to the DHCP relay module of Dynamic Host Configuration Protocol server distributes an IP address for the user;
(32) the above-mentioned IP address is sent to the DHCP relay module, the DHCP relay module sends a DHCP message of confirming this IP address according to this IP address to Dynamic Host Configuration Protocol server;
(33) Dynamic Host Configuration Protocol server returns an affirmation (ACK) relay messages to the DHCP relay module after receiving above-mentioned message, and message content is the additional information of user's IP address and this IP address.
Described Dynamic Host Configuration Protocol server is that address pool comprises a plurality of network segments by address pool management IP address, and network segment handle is gateway ip address and mask.
Such scheme provided by the present invention can make the user by the PPP online also can obtain the IP address by Dynamic Host Configuration Protocol server, thereby make user who passes through the PPP online who uses consolidated network access device access network and the user who surfs the Net by VLAN, can obtain the IP address by Dynamic Host Configuration Protocol server, be convenient to the unified management of IP address pool, realized the unified distribution of IP address, the unified recovery, the IP addresses centralized has been prevented effectively the generation of IP address conflict situation.Unified management and distributing IP address can also provide more convenience to the management of Internet resources for the Internet Service Provider.
Description of drawings
Fig. 1 obtains the flow chart of IP address for the user by the PPP online from Dynamic Host Configuration Protocol server;
Fig. 2 obtains the sequential chart of IP address for the user by the PPP online from Dynamic Host Configuration Protocol server.
Embodiment
User by the PPP online provided by the invention is described below from the embodiment that Dynamic Host Configuration Protocol server obtains the method for IP address:
Step 1: by user's logging in network of PPP online, with the PPP processing module link that connects, the PPP processing module is for finishing the functional module of ppp protocol service in network access server, and the user by the PPP online is called the PPP client;
Step 2:PPP client sends authentication request packet to the PPP processing module, is carrying user's information such as user name, password in the message, authentication request packet be used for user's request by authentication and obtain the IP address become can accesses network the Internet user;
Step 3:PPP processing module sends to the authentication module of access server with above-mentioned authentication request packet affix user's information such as the expection network segment, and authentication module is used for according to user's information the user being authenticated, to determine whether the user is legal;
Step 4: after authentication module authentication is passed through, the inside story of distributing IP Address requests is sent to the DHCP relay module, inside story comprises information such as the residing network segment of user;
The message conversion that the DHCP relay module is used for that authentication module is sent becomes to meet the message of DHCP form, and the also responsible simultaneously needs that Dynamic Host Configuration Protocol server is returned send to the message that converts PPP user side form by the user's of PPP online message to;
Step 5:DHCP trunk module is intended the IP Address requests message about this user's DHCP form according to above-mentioned inside story module, and this message is sent to Dynamic Host Configuration Protocol server, and the request Dynamic Host Configuration Protocol server distributes an IP address for this user;
Step 6:DHCP server responds above-mentioned message, from address pool, distribute an IP address according to the residing network segment of user for the user, and the message that will carry this IP address returns the DHCP relay module, also need to reject the address of the illegal and conflict in the corresponding network segment during for user's distributing IP address, give user, then this of refusing user's time request if can not find suitable IP address assignment;
Dynamic Host Configuration Protocol server can be an external server, and the DHCP relay module is by dhcp server ip address and its exchange message;
Dynamic Host Configuration Protocol server also can be a built-in services device, and the DHCP relay module is by the address 127.0.0.1 of ring certainly and its exchange message of Dynamic Host Configuration Protocol server;
The address pool of described Dynamic Host Configuration Protocol server can comprise a plurality of network segments, network segment handle is that gateway ip address or routed ip address add mask, also can be only with gateway ip address or routed ip address as network segment handle, in the message of Dynamic Host Configuration Protocol server request distributing IP address, it may be noted that user's gateway ip address or routed ip address, so that Dynamic Host Configuration Protocol server can find the corresponding network segment with this user, and in this network segment this user's distributing IP address;
Step 7:DHCP trunk module returns an IP Address Confirmation request message to Dynamic Host Configuration Protocol server after receiving the message of the above-mentioned IP of carrying address, confirms that the user accepts this IP address;
After step 8:DHCP server is received IP Address Confirmation request message, send one to the DHCP relay module and confirm to distribute the message of this IP address to this user, the additional information that is comprising IP address and this IP address in the message is as information such as rental period of this IP address, domain name systems;
The rental period of IP address has defined the effective storage life of this IP address, and the user for by the PPP online can be set to infinitely in the IP address rental period;
Step 9:DHCP trunk module sends to above-mentioned IP address and additional messages message the authentication module of access server, simultaneously, distribute to this user's IP address under the DHCP relay module records, and with user name, port information and this IP address binding, so that management system and administrative staff inquire about, the management ip address distribution condition;
Step 10: the data message that authentication module will authenticate by reaching IP forms such as IP address sends to the PPP processing module;
Step 11:PPP processing module will authenticate the message informing user who passes through;
Step 12: the user receives by after the authentication message, to the request of PPP processing module transmission based on internet control protocol (ipcp);
Step 13:PPP processing module is confirmed this request, and the information such as user's IP address, domain name system of will distributing to be encapsulated in ipcp message in notify the user.
Equally, the Internet user needs to discharge employed IP address in its accesses network process after surfing the Net and finishing, the process and the said process that discharge the IP address are similar, also are the release that goes out exchange message realization IP address between corresponding message and Dynamic Host Configuration Protocol server by the DHCP relay module simulation.
By the specific embodiment of the invention described above as can be seen, user by the PPP online becomes possibility by Dynamic Host Configuration Protocol server distributing IP address, thereby the management of IP address in the network access equipment that allows simultaneously to insert with PPP and VLAN mode can be united, two kinds of network access users can dynamically be shared same address pool, have made things convenient for the management of IP address.

Claims (4)

1, a kind of user by the point-to-point protocol online obtains the method for Internet protocol address, comprising:
(1) by the user of ppp protocol online,, sends the inside story message of distributing IP Address requests to the DHCP relay module by system by behind the network authentication;
(2) the DHCP relay module simulates the IP Address requests message of DHCP form according to above-mentioned message for this user, and sends to Dynamic Host Configuration Protocol server;
(3) Dynamic Host Configuration Protocol server distributes an IP address according to the IP Address requests message content of receiving, and provides the additional messages of this address, and the DHCP relay module is returned in this IP address and additional messages;
(4) the DHCP relay module sends to system with IP address and additional messages, distributes to this user's IP address under the DHCP relay module records simultaneously;
(5) system is packaged in above-mentioned IP address and additional messages in internet control protocol (ipcp) the stage message of PPP, and notice is by the user of PPP online.
2, the user by the point-to-point protocol online according to claim 1 obtains the method for Internet protocol address, it is characterized in that the IP Address requests message of described DHCP form comprises: Internet user's port information, gateway address.
3, the user by the point-to-point protocol online according to claim 1 and 2 obtains the method for Internet protocol address, and it is characterized in that described step (3) is to be finished by following process: the IP Address requests message that (31) Dynamic Host Configuration Protocol server is sent according to the DHCP relay module distributes an IP address for the user;
(32) the above-mentioned IP address is sent to the DHCP relay module, the DHCP relay module sends a DHCP message of confirming this IP address according to this IP address to Dynamic Host Configuration Protocol server;
(33) Dynamic Host Configuration Protocol server returns an affirmation (ACK) relay messages to the DHCP relay module after receiving above-mentioned message, and message content is the additional information of user's IP address and this IP address.
4, the user by the point-to-point protocol online according to claim 1 obtains the method for Internet protocol address, it is characterized in that described Dynamic Host Configuration Protocol server is by address pool management IP address, address pool comprises a plurality of network segments, and network segment handle is gateway ip address and mask.
CNB021039259A 2002-02-07 2002-02-07 Method for the point-to-point protocol log-on user to obtain Internet protocol address Expired - Fee Related CN1184776C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021039259A CN1184776C (en) 2002-02-07 2002-02-07 Method for the point-to-point protocol log-on user to obtain Internet protocol address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021039259A CN1184776C (en) 2002-02-07 2002-02-07 Method for the point-to-point protocol log-on user to obtain Internet protocol address

Publications (2)

Publication Number Publication Date
CN1437360A CN1437360A (en) 2003-08-20
CN1184776C true CN1184776C (en) 2005-01-12

Family

ID=27627943

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021039259A Expired - Fee Related CN1184776C (en) 2002-02-07 2002-02-07 Method for the point-to-point protocol log-on user to obtain Internet protocol address

Country Status (1)

Country Link
CN (1) CN1184776C (en)

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1549546B (en) * 2003-05-09 2011-06-22 中兴通讯股份有限公司 Apparatus and method for realizing PPPOE user dynamic obtaining IP address utilizing DHCP protocol
CN100362820C (en) * 2003-08-29 2008-01-16 华为技术有限公司 Method and system for bearing PPP proxy server with Ethernet
CN100334855C (en) * 2004-08-17 2007-08-29 杭州华为三康技术有限公司 Method to allocate protocol relay address table and server address pool for synchronization dynamic host machine
US20060085851A1 (en) * 2004-10-14 2006-04-20 International Business Machines Corporation Systems, Methods, and Computer Readable Medium for Avoiding a Network Address Collision
CN100442735C (en) * 2005-06-30 2008-12-10 华为技术有限公司 Dynamic configuration insertion terminal realizing method
CN1845554B (en) * 2005-12-06 2010-05-05 华为技术有限公司 Control method for dynamically distributing IP address in 3G network
CN1980253B (en) * 2005-12-06 2010-12-08 华为技术有限公司 Method an system for obtaining otherplace network DHCPv6 server information
CN1889572B (en) * 2006-07-27 2010-06-09 杭州华三通信技术有限公司 Internet protocol address distributing method and dynamic main machine configuration protocol relay
CN100426816C (en) * 2006-11-13 2008-10-15 华为技术有限公司 Method and system for sending DHCP message and obtaining configuration information by PPP line
CN101304363B (en) * 2007-05-12 2011-12-07 华为技术有限公司 Method for managing conversation connection as well as apparatus and system
CN101335700B (en) * 2007-06-25 2013-04-24 华为技术有限公司 Address acquiring method, signaling routing method, communication system and related apparatus
CN101924800B (en) 2009-06-11 2015-03-25 华为技术有限公司 Method for obtaining IP address of DHCPv6 server, DHCPv6 server and DHCPv6 communication system
CN101577738B (en) * 2009-06-25 2011-08-31 杭州华三通信技术有限公司 Address distribution method and equipment thereof
WO2011153679A1 (en) * 2010-06-07 2011-12-15 华为技术有限公司 Method, device and system for service configuration
CN102281333B (en) * 2010-06-11 2015-06-03 中兴通讯股份有限公司 Method and system for avoiding IP address conflict, DHCP server and DHCP client
CN101873320B (en) * 2010-06-17 2014-02-12 杭州华三通信技术有限公司 Client information verification method based on DHCPv6 relay and device thereof
CN101951417B (en) * 2010-09-21 2013-01-30 北京星网锐捷网络技术有限公司 Method, system and trunk equipment for assigning multiple server addresses
CN102439949A (en) * 2011-10-17 2012-05-02 华为技术有限公司 Method for solving internet protocol address assignment conflict and related device and system
JP6600606B2 (en) * 2016-07-04 2019-10-30 エイチ・シー・ネットワークス株式会社 Server device and network system
CN111092961B (en) * 2019-11-15 2021-12-17 中国电子科技集团公司第三十研究所 Method for realizing IP address negotiation based on PPP protocol
CN112532767A (en) * 2020-12-17 2021-03-19 安徽皖通邮电股份有限公司 Rapid management system based on OTN channel

Also Published As

Publication number Publication date
CN1437360A (en) 2003-08-20

Similar Documents

Publication Publication Date Title
CN1184776C (en) Method for the point-to-point protocol log-on user to obtain Internet protocol address
EP1876754B1 (en) Method system and server for implementing dhcp address security allocation
CN101110847B (en) Method, device and system for obtaining medium access control address
US7313611B1 (en) Automated provisioning system
CN1213567C (en) Concentrated network equipment managing method
CN103039038B (en) Method and system for efficient use of a telecommunication network and the connection between the telecommunications network and a customer premises equipment
CN1918885A (en) System and method for user authorization access management at the local administrative domain during the connection of a user to an ip network
CN105812488A (en) Cloud computing distributed service cluster system and method of using the system
CN1889577A (en) IP address distributing method based on DHCP extended attribute
CN1252961C (en) Method for authenticating group broadcast service
CN101043331A (en) System and method for distributing address for network equipment
CN101056178A (en) A method and system for controlling the user network access right
CN1859409A (en) Method and system for improving network dynamic host configuration DHCP safety
CN1859440A (en) Method for distributing service based on terminal mark
CN1859441A (en) Method for distributing service based on terminal physical position
CN1713629A (en) Realization of user login name and IP address binding
CN1248448C (en) Broadband network access method
WO2003067837A2 (en) Dynamic host configuration protocol lease time determination
CN110445889A (en) Switch ip address management method and system under a kind of ethernet environment
KR100714368B1 (en) Internet protocol address management system co-operated with authentication server
CN1481112A (en) Service renting and authorizing method for realizing resource sharing in household network
CN107343058B (en) IP address distribution system and working method thereof
CN1783780A (en) Method and device for realizing domain authorization and network authority authorization
CN1489341A (en) Method and service device for allocating local network resource to terminal according to types of terminal
CN1505345A (en) A method for accessing user forced access identification server

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20050112

Termination date: 20150207

EXPY Termination of patent right or utility model