CN102957760A - Method, router and system for distributing internet protocol address - Google Patents

Method, router and system for distributing internet protocol address Download PDF

Info

Publication number
CN102957760A
CN102957760A CN2011102525903A CN201110252590A CN102957760A CN 102957760 A CN102957760 A CN 102957760A CN 2011102525903 A CN2011102525903 A CN 2011102525903A CN 201110252590 A CN201110252590 A CN 201110252590A CN 102957760 A CN102957760 A CN 102957760A
Authority
CN
China
Prior art keywords
gateway
address
user
router
interface
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.)
Granted
Application number
CN2011102525903A
Other languages
Chinese (zh)
Other versions
CN102957760B (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 CN201110252590.3A priority Critical patent/CN102957760B/en
Publication of CN102957760A publication Critical patent/CN102957760A/en
Application granted granted Critical
Publication of CN102957760B publication Critical patent/CN102957760B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a method, a router and a system for distributing an internet protocol IP (internet protocol) address to a point-to-point protocol over Ethernet (PPPOE) user. The method comprises the steps of: configuring a use gateway and issuing a gateway routing of the use gateway to the PPPOE user; configuring a default gateway and a subnet mask to determine a network segment to which the PPPOE user belongs, and configuring a sub-network segment under the network segment to distribute to the PPPOE user. Therefore, the user can utilize the use gateway as the gateway, thus, the IP address of the default gateway can saved.

Description

The method of assignment of the Internet protocol address, router and system
Technical field
The embodiment of the invention relates to the communications field, and more specifically, relate to a kind of in the communications field method, router and the system of assignment of the Internet protocol (Internet Protocol, IP) address.
Background technology
Along with the development of network and the expansion of scale thereof, usually use DHCP (Dynamic Host Configuration Protocol, DHCP) comes management ip address, so that dynamically assigned ip address and configuration parameter, thereby so that the user on the network can automatically apply for the IP address and need not any network parameter of manual configuration.
At present, the support of router complete machine creates under 4K address pool (address pool) and the address pool and must configure default gateway (default gateway) (being also referred to as default gateway).Behind the configuration default gateway, corresponding network segment route and 32 s' gateway route (being the main frame route) will be issued immediately.User's IP address must with the default gateway address at the same network segment, and the gateway of different address pool does not allow identically on the same equipment, perhaps the network segment of different address pool does not allow overlapping.
Existing IPOE (IP over Ethernet) and PPPOE (Point to Point Over Ethernet, the point-to-point protocol on the Ethernet) user obtains the IP address from the address pool of router.For IPOE user, default gateway must be in the same network segment with user's IP address, in order to guarantee that the user can be to ARP (the Address Resolution Protocol of router timed sending, address resolution protocol) probe messages (message) gives a response, thereby otherwise router will be thought user's releasing IP addresses that rolled off the production line.
But, for PPPOE user, because it is point-to-point communication, so the user do not need to judge default gateway whether with oneself IP address at the same network segment, but current PPPOE user's address distribution is the same with IPOE but, be the IP address that obtains of default gateway and user at the same network segment and do not allow the default gateway address assignment to the user, this certainly will cause the address unnecessary waste to PPPOE user.
Summary of the invention
The embodiment of the invention provide a kind of in the communications field method, router and the system of distributing IP address, can save the IP address for the user.
According to an aspect of the embodiment of the invention, a kind of method that is used to peer-peer protocol PPPOE user assignment Internet Protocol IP address on the Ethernet is provided, comprising: configuration is used gateway and is issued the gateway route that this uses gateway to described PPPOE user; Configuration default gateway and subnet mask are determined the network segment under the PPPOE user; And configure subnet section under the described network segment, to distribute to described PPPOE user.
According to the embodiment of the invention on the other hand, a kind of router that is used to peer-peer protocol PPPOE user assignment Internet Protocol IP address on the Ethernet is provided, comprise: the IP address assignment device, being used for configuration uses gateway and issues the gateway route that this uses gateway to described PPPOE user, configuration default gateway and subnet mask are determined the network segment under the PPPOE user, and configure subnet section under the described network segment, to distribute to described PPPOE user.
According to the embodiment of the invention on the other hand, provide a kind of communication system, comprised aforesaid router.
The embodiment of the invention can also additional configuration be used gateway except the configuration default gateway, and use the gateway route of gateway rather than the gateway route of default gateway to user's issue, therefore the user can utilize this to use gateway as gateway, thereby the IP address of default gateway can be saved out.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 illustrates the example of a concrete IP address.
Fig. 2 shows the flow chart according to the exemplary method that is used to PPPOE user assignment IP address of the embodiment of the invention.
Fig. 3 (a) and Fig. 3 (b) illustrate the comparison according to the example of the order of the example of the order that is used for the distributing IP address of the embodiment of the invention and prior art.
Fig. 4 illustrates the block diagram according to the demonstrative structure of the router that is used to PPPOE user assignment IP address of the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
In the following description, as an example of PPPOE example the embodiment of the invention is described, still, it will be appreciated by those skilled in the art that the embodiment of the invention is not limited to this, the embodiment of the invention can also be applied to other point-to-point schemes.
Below, specifically describe the embodiment of the invention with reference to accompanying drawing.
Fig. 1 illustrates the example of a concrete IP address.As shown in fig. 1, " 10.110.98.195 " is the IP address of distributing to PPPOE user, and " 255.255.254.0 " is subnet mask (category-B), and " 10.110.98.1 " is default gateway, takies an IP address.
For to user assignment IP address, at first create address pool (address pool) at router, under address pool, configure default gateway (Default Gateway) (perhaps being called default gateway) and specify the length of subnet mask, then configure subnet section (section), require the subnet section to belong to network segment scope in this address pool that default gateway limits.User's IP address obtains in the scope of subnet section just.Generally, a router support creates 4k address pool, the corresponding network segment (segment) of each address pool, and can comprise 8 sub-network segments under the network segment of an address pool.
Because PPPOE is point to point link, as long as can find corresponding router according to the IP address of gateway, so the user need not to judge gateway whether with oneself IP address whether in the same network segment.Therefore, the embodiment of the invention has also configured and has used gateway (borrowed gateway) except configuration default gateway and subnet mask.Default gateway is in esse router, naturally takies an IP address.Use gateway, namely use the IP address of local loopback loopback mouth or other physical interfaces as gateway, thereby default gateway can be saved out distributes to the user.
Fig. 2 shows the flow chart according to the exemplary method 20 that is used to PPPOE user assignment IP address of the embodiment of the invention.
As shown in Figure 2, method 20 201 in, the configuration use gateway and issue the gateway route that this uses gateway to described PPPOE user.Wherein, this gateway route can be the main frame route of the IP address that configures under the native interface.Here, the process that the process of gateway can be also definite its IP address of searching such as local loopback (loopback) interface, gigabit Ethernet (GigabitEthernet) interface or link aggregation (Eth-Trunk) interface is used in configuration.
In 202, configuration default gateway and subnet mask are determined the network segment under the PPPOE user.As is known to the person skilled in the art, can be by IP address and the subnet mask of default gateway be carried out the network segment that logical AND (AND) computing determines that PPPOE user is affiliated.In addition, according to the embodiment of the invention, the default gateway that configures can no longer must be an in esse router.
In 203, configure the subnet section under the described network segment, to distribute to described PPPOE user.For example, can distribute the subnet section according to the quantity of the required IP address of described PPPOE user.
According to the embodiment of the invention, also additional configuration is used gateway except the configuration default gateway, and use the gateway route of gateway rather than the gateway route of default gateway to PPPOE user's issue, therefore PPPOE user can utilize this to use gateway as gateway, thereby the IP address of default gateway can be saved out.
According to the embodiment of the invention, use IP address that gateway uses so long as for the IP address of arbitrary physical interface configuration of existing at router get final product, and be to open (undo shutdown) still to close (shutdown) and have nothing to do with the state of this interface.That is to say, the on/off state of interface tube is not how, as long as it is the interface that exists at router and for it has configured the IP address, then this IP address just can be used as the IP address of using gateway and uses.The on/off state of interface does not affect forwarding, can not bring other costs yet.Preferably, can use one in loopback interface, GigabitEthernet interface and the Eth-Trunk to be used as using gateway.Can come in choice for use loopback interface, GigabitEthernet interface and the Eth-Trunk which to be used as using gateway by user's manual configuration.
Configured use gateway after, to the gateway route of using gateway that PPPOE user issue configures, use as gateway so that the user can use gateway with this.In addition, the purpose of configuration default gateway and subnet mask only be to determine the network segment of this address pool, namely can be to the scope under the subnet section of the IP address of user assignment, so that IP address and default gateway to user assignment belong to the same network segment, still no longer issue 32 gateway routes (being the main frame route) of default gateway to the user.
Therefore, user's use also can be distributed in the IP address of default gateway.
Fig. 3 (a) and Fig. 3 (b) illustrate the comparison according to the example of the order of the example of the order that is used for the distributing IP address of the embodiment of the invention and prior art.Wherein, Fig. 3 (a) illustrates the command format according to the method for the embodiment of the invention, and Fig. 3 (b) illustrates the command format of prior art.
In Fig. 3 (a), at first gateway is used in configuration, supposes and utilizes the lookback interface as using gateway.Then, the configuration default gateway be " 100.0.0.200 ", and specify subnet mask length be 24 (that is, the appointment subnet mask is 255.255.255.0).Can configure subnet mask according to the number of subnet or the number of host in each subnet etc.But those skilled in the art can understand, also can determine subnet mask with any other suitable method.Only be to determine will be to the network segment under the IP address of user assignment for the purpose of " 100.0.0.20024 " for configuration default gateway and subnet mask.
Then, be " 100.0.0.100100.0.0.255 " according to this default gateway configuration subnet section.Here, according to the embodiment of the invention, owing to not issuing the gateway route of default gateway but the gateway route of only using gateway to user issue to PPPOE user, use so also can be assigned to PPPOE user as " 100.0.0.200 " of the IP address of default gateway.
By contrast, referring to Fig. 3 (b), in the prior art, namely in the situation that not configuration use gateway and only configure default gateway, gateway route as default gateway is distributed to the user, uses so its IP address " 101.0.0.1 " cannot be assigned to the user.
Therefore, according to the embodiment of the invention, when the router complete machine can be supported to create 4K address pool, needn't create an independently gateway for each address pool, can save 4K IP address for every router for this reason and use to be used for distributing to PPPOE user, can effectively help operator to improve income.
Fig. 4 illustrates the block diagram according to the demonstrative structure 40 of the router that is used to PPPOE user assignment IP address of the embodiment of the invention.
As shown in Figure 4, router four 0 can comprise IP address assignment device 401.This IP address assignment device 401 is used for configuration and uses gateway and issue the gateway route that this uses gateway to described PPPOE user, configuration default gateway and subnet mask are determined the network segment under the PPPOE user, and configure subnet section under the described network segment, to distribute to described PPPOE user.
According to the embodiment of the invention, also additional configuration is used gateway except the configuration default gateway, and use the gateway route of gateway rather than the gateway route of default gateway to PPPOE user's issue, therefore PPPOE user can utilize this to use gateway as gateway, thereby the IP address of default gateway can be saved out.
In addition, the IP address of using gateway that is configured by described IP address assignment device 401 can be the IP address for the arbitrary interface configuration that exists at router.Preferably, described arbitrary interface can be in local loopback loopback interface, GigabitEthernet interface and the Eth-Trunk.
In addition, described IP address assignment device 401 can be distributed to described PPPOE user with the subnet section that comprises the IP address of described default gateway.
Should be noted in the discussion above that for clarity and conciseness, only show the part relevant with the embodiment of the invention in Fig. 4, but it will be appreciated by those skilled in the art that, the equipment shown in Fig. 4 can comprise the unit that other are necessary.
In addition, the communication system according to the embodiment of the invention can comprise above-mentioned router.
Those of ordinary skills can recognize, unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein, can realize with electronic hardware, computer software or the combination of the two, for the interchangeability of hardware and software clearly is described, composition and the step of each example described in general manner according to function in the above description.These functions are carried out with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.The professional and technical personnel can specifically should be used for realizing described function with distinct methods to each, but this realization should not thought and exceeds scope of the present invention.
The those skilled in the art can be well understood to, and is the convenience described and succinct, and the specific works process of the system of foregoing description, device and unit can with reference to the corresponding process among the preceding method embodiment, not repeat them here.
In several embodiment that the application provides, should be understood that disclosed system, apparatus and method can realize by another way.For example, device embodiment described above only is schematic, for example, the division of described unit, only be that a kind of logic function is divided, during actual the realization other dividing mode can be arranged, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, the shown or coupling each other discussed or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
Described unit as separating component explanation can or can not be physically to separate also, and the parts that show as the unit can be or can not be physical locations also, both can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select according to the actual needs wherein some or all of unit to realize the purpose of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in the processing unit, also can be that the independent physics of unit exists, and also can be integrated in the unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, also can adopt the form of SFU software functional unit to realize.
If described integrated unit is realized with the form of SFU software functional unit and during as independently production marketing or use, can be stored in the computer read/write memory medium.Based on such understanding, part or all or part of of this technical scheme that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out all or part of step of the described method of each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), the various media that can be program code stored such as random access memory (RAM, Random Access Memory), magnetic disc or CD.
Also it is pointed out that in apparatus and method of the present invention, obviously, each parts or each step can decompose and/or reconfigure.These decomposition and/or reconfigure and to be considered as equivalents of the present invention.And, carry out the step of above-mentioned series of processes and can order naturally following the instructions carry out in chronological order, but do not need necessarily to carry out according to time sequencing.
The above; be the specific embodiment of the present invention only, but protection scope of the present invention is not limited to this, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by described protection range with claim.

Claims (12)

1. a method that is used to peer-peer protocol PPPOE user assignment Internet Protocol IP address on the Ethernet is characterized in that, comprising:
Configuration is used gateway and is issued the gateway route that this uses gateway to described PPPOE user;
Configuration default gateway and subnet mask are determined the network segment under the PPPOE user; And
Configure the subnet section under the described network segment, to distribute to described PPPOE user.
2. method according to claim 1, it is characterized in that: described PPPOE user uses the described gateway of using as gateway.
3. each described method in according to claim 1 and 2, it is characterized in that: described IP address of using gateway is the IP address for the arbitrary interface configuration that exists at router.
4. method according to claim 3, it is characterized in that: described arbitrary interface is in local loopback loopback interface, gigabit Ethernet GigabitEthernet interface and the link aggregation Eth-Trunk.
5. method according to claim 3, it is characterized in that, described configuration is used gateway and is comprised: seek in local loopback loopback interface, gigabit Ethernet GigabitEthernet interface and the link aggregation Eth-Trunk and determine its IP address.
6. the described method of each according to claim 1-5 is characterized in that, the subnet section under the described network segment of described configuration comprises to distribute to described PPPOE user: the subnet section that will comprise the IP address of described default gateway is distributed to described PPPOE user.
7. a router that is used to peer-peer protocol PPPOE user assignment Internet Protocol IP address on the Ethernet is characterized in that, comprising:
The IP address assignment device, being used for configuration uses gateway and issues the gateway route that this uses gateway to described PPPOE user, configuration default gateway and subnet mask are determined the network segment under the PPPOE user, and configure the subnet section under the described network segment, to distribute to described PPPOE user.
8. router according to claim 7 is characterized in that: the described IP address of using gateway of described IP address assignment device configuration is the IP address for the arbitrary interface configuration that exists at router.
9. router according to claim 8, it is characterized in that: described arbitrary interface is in local loopback loopback interface, gigabit Ethernet GigabitEthernet interface and the link aggregation Eth-Trunk.
10. router according to claim 9 is characterized in that: described IP address assignment device is used gateway by seeking in local loopback loopback interface, gigabit Ethernet GigabitEthernet interface and the link aggregation Eth-Trunk and determining that its IP address configures.
11. the described router of each according to claim 7-10 is characterized in that: described IP address assignment device will comprise that the subnet section of the IP address of described default gateway distributes to described PPPOE user.
12. a communication system comprises such as each the described router among the claim 7-11.
CN201110252590.3A 2011-08-30 2011-08-30 The method of assignment of the Internet protocol address, router and system Expired - Fee Related CN102957760B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110252590.3A CN102957760B (en) 2011-08-30 2011-08-30 The method of assignment of the Internet protocol address, router and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110252590.3A CN102957760B (en) 2011-08-30 2011-08-30 The method of assignment of the Internet protocol address, router and system

Publications (2)

Publication Number Publication Date
CN102957760A true CN102957760A (en) 2013-03-06
CN102957760B CN102957760B (en) 2016-06-29

Family

ID=47765974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110252590.3A Expired - Fee Related CN102957760B (en) 2011-08-30 2011-08-30 The method of assignment of the Internet protocol address, router and system

Country Status (1)

Country Link
CN (1) CN102957760B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112367256A (en) * 2020-10-15 2021-02-12 深信服科技股份有限公司 Creation method, apparatus and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5867647A (en) * 1996-02-09 1999-02-02 Secure Computing Corporation System and method for securing compiled program code
CN1549546A (en) * 2003-05-09 2004-11-24 中兴通讯股份有限公司 Apparatus and method for realizing PPPOE user dynamic obtaining IP address utilizing DHCP protocol
CN1874355A (en) * 2005-05-31 2006-12-06 华为技术有限公司 Method for dynamic distributing address of medium access control in Ethernet
CN101494669A (en) * 2009-03-10 2009-07-29 华为技术有限公司 Method and apparatus for distributing IP address for user terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5867647A (en) * 1996-02-09 1999-02-02 Secure Computing Corporation System and method for securing compiled program code
CN1549546A (en) * 2003-05-09 2004-11-24 中兴通讯股份有限公司 Apparatus and method for realizing PPPOE user dynamic obtaining IP address utilizing DHCP protocol
CN1874355A (en) * 2005-05-31 2006-12-06 华为技术有限公司 Method for dynamic distributing address of medium access control in Ethernet
CN101494669A (en) * 2009-03-10 2009-07-29 华为技术有限公司 Method and apparatus for distributing IP address for user terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112367256A (en) * 2020-10-15 2021-02-12 深信服科技股份有限公司 Creation method, apparatus and storage medium

Also Published As

Publication number Publication date
CN102957760B (en) 2016-06-29

Similar Documents

Publication Publication Date Title
CN102801715B (en) Method for virtual machine migration in network, gateway and system
EP3245778B1 (en) Network device identification in an industrial control network
US20050027778A1 (en) Automatic configuration of an address allocation mechanism in a computer network
CN103095495A (en) Network implementation configuration method, device and system
US20060256736A1 (en) Dynamic hierarchical address resource management architecture, method and apparatus
CN105025116B (en) For providing the method and router of naming service in industrial communication systems
CN103475581A (en) Network tab distribution method, equipment and system
CN102843441B (en) Method and device for controlling address configuration way
CN102143229A (en) Method and system for upgrading terminals in batches
CN102984288A (en) Method and system for managing internet protocol version 6 (IPV6) address conflicts automatically
US10091162B2 (en) Allocation of network addresses for network subscribers
CN108259215A (en) A kind of device management method and device
CN106357542A (en) Method for providing multicast service and software defined network controller
CN102035899B (en) Method and device for determining addresses in IPv6 (internet protocol version 6) based LAN (local area network)
CN102447746A (en) Information supply method, family gateway and family network system
CN103338275A (en) Port distribution method and apparatus
CN104104749A (en) Method and device for allocating tunnel IP addresses
CN107465621A (en) A kind of router finds method, SDN controllers, router and network system
CN102957760B (en) The method of assignment of the Internet protocol address, router and system
CN101908982A (en) Detection method, device and system of VLAN (Virtual Local Area Network)
CN103916278A (en) Method and device for unified management based on LAN and SAN
CN102204189A (en) Router and obtainment method for forwarding information base of router cluster
CN102404190B (en) Method and device for determining Att signs under multi-topology
CN104967539A (en) Wireless mesh network management information data acquisition method
CN102710800B (en) Method and network device for configuring RD (route distinguisher)

Legal Events

Date Code Title Description
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: 20160629

CF01 Termination of patent right due to non-payment of annual fee