CN102957760B - The method of assignment of the Internet protocol address, router and system - Google Patents
The method of assignment of the Internet protocol address, router and system Download PDFInfo
- Publication number
- CN102957760B CN102957760B CN201110252590.3A CN201110252590A CN102957760B CN 102957760 B CN102957760 B CN 102957760B CN 201110252590 A CN201110252590 A CN 201110252590A CN 102957760 B CN102957760 B CN 102957760B
- Authority
- CN
- China
- Prior art keywords
- gateway
- address
- pppoe user
- user
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 28
- 238000004891 communication Methods 0.000 claims description 9
- 238000009826 distribution Methods 0.000 claims description 6
- 230000002776 aggregation Effects 0.000 claims description 5
- 238000004220 aggregation Methods 0.000 claims description 5
- 230000008569 process Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000003860 storage Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000000523 sample Substances 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Embodiments provide a kind of for for the method for peer-peer protocol PPPOE user assignment of the Internet protocol IP address, router and system on Ethernet.Described method includes: configuration is used gateway and issues this gateway using gateway route to described PPPOE user;Configuration default gateway and subnet mask determine the network segment belonging to PPPOE user;And configure the subnet section under the described network segment, to distribute to described PPPOE user.Therefore, user can utilize this to use gateway as gateway, such that it is able to save out by the IP address of default gateway.
Description
Technical field
The present embodiments relate to the communications field, and more particularly, to the method for one assignment of the Internet protocol in the field of communications (InternetProtocol, IP) address, router and system.
Background technology
Expansion along with the development of network and scale thereof, generally use DHCP (DynamicHostConfigurationProtocol, DHCP) carry out management ip address, so that assigned IP addresses dy and configuration parameter, so that the user on network can apply for that IP address is without any network parameter of manual configuration automatically.
At present, the support of router complete machine creates and must configure default gateway (defaultgateway) (also referred to as default gateway) under 4K address pool (addresspool) and address pool.After configuration default gateway, gateway route (i.e. Host routes) of corresponding network segment route and 32 will be issued immediately.The IP address of user have to default gateway address at the same network segment, and on same equipment, the gateway in different address pond does not allow identical, or the network segment in different address pond does not allow overlap.
Existing IPOE (IPoverEthernet) and PPPOE (PointtoPointOverEthernet, the point-to-point protocol on Ethernet) user obtains IP address from the address pool of router.For IPOE user, default gateway must be in the same network segment with the IP address of user, to ensure the ARP (AddressResolutionProtocol that router timing can be sent by user, address resolution protocol) probe messages (message) gives a response, and otherwise router will be considered to user and rolled off the production line thus discharging IP address.
But, for PPPOE user, owing to it is point-to-point communication, so user need not judge default gateway whether with the IP address of oneself at the same network segment, but the address distribution of current PPPOE user is but the same with IPOE, namely the IP address that default gateway and user obtain at the same network segment and does not allow default gateway address is distributed to user, and this certainly will cause PPPOE user's address unnecessary waste.
Summary of the invention
The embodiment of the present invention provides a kind of method of IP address of distribution in the field of communications, router and system, it is possible to save IP address for user.
An aspect according to embodiments of the present invention, it is provided that a kind of for for the method for peer-peer protocol PPPOE user assignment of the Internet protocol IP address on Ethernet, including: configuration is used gateway and issues this gateway using gateway route to described PPPOE user;Configuration default gateway and subnet mask determine the network segment belonging to PPPOE user;And configure the subnet section under the described network segment, to distribute to described PPPOE user.
Another aspect according to embodiments of the present invention, provide a kind of for for the router of peer-peer protocol PPPOE user assignment of the Internet protocol IP address on Ethernet, including: IP address distributor, use gateway for configuring and issue this gateway using gateway route to described PPPOE user, configuration default gateway and subnet mask determine the network segment belonging to PPPOE user, and configure the subnet section under the described network segment, to distribute to described PPPOE user.
Another aspect according to embodiments of the present invention, it is provided that a kind of communication system, including router as above.
The embodiment of the present invention additional configuration can also use gateway except configuration default gateway, and the gateway route of gateway route rather than the default gateway using gateway is issued to user, therefore user can utilize this to use gateway as gateway, such that it is able to save out by the IP address of default gateway.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 illustrates the example of a concrete IP address.
Fig. 2 illustrates the flow chart of the exemplary method for distributing IP address for PPPOE user according to embodiments of the present invention.
Fig. 3 (a) and Fig. 3 (b) illustrates the comparison of the example of the order for distributing IP address according to embodiments of the present invention and the example of the order of prior art.
Fig. 4 illustrates the block diagram of the demonstrative structure of the router for distributing IP address for PPPOE user according to embodiments of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
In the following description, for PPPOE, the embodiment of the present invention is described, but, it will be appreciated by those skilled in the art that the embodiment of the present invention is not limited to this, it is also possible to the embodiment of the present invention is applied to other point-to-point schemes.
Below, the embodiment of the present invention will be described in detail with reference to the accompanying drawing figures.
Fig. 1 illustrates the example of a concrete IP address.As shown in fig. 1, " 10.110.98.195 " is allocated to the IP address of PPPOE user, and " 255.255.254.0 " is subnet mask (B class), and " 10.110.98.1 " is default gateway, takies an IP address.
In order to distribute IP address to user, first address pool (addresspool) is created on the router, under address pool, configure default gateway (DefaultGateway) (or being called default gateway) and specify the length of subnet mask, then configuration subnet section (section), it is desirable to subnet section belongs to the network segment scope in this address pool that default gateway limits.The IP address of user obtains just in the scope of subnet section.Under normal circumstances, a router support creates 4k address pool, the corresponding network segment (segment) of each address pool, and can include 8 sub-network segments under the network segment of an address pool.
Owing to PPPOE is point to point link, as long as the router of correspondence can be found according to the IP address of gateway, thus user without judge gateway whether with the IP address of oneself whether in the same network segment.Therefore, the embodiment of the present invention, except configuration default gateway and subnet mask, is provided with and uses gateway (borrowedgateway).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, distribute to user such that it is able to save out by default gateway.
Fig. 2 illustrates the flow chart of the exemplary method 20 for distributing IP address for PPPOE user according to embodiments of the present invention.
As shown in Figure 2, in the 201 of method 20, configuration is used gateway and issues this gateway using gateway route to described PPPOE user.Wherein, this gateway route can be the Host routes of the IP address of configuration under native interface.Here, the process of gateway is used in configuration can be find such as local loopback (loopback) interface, gigabit Ethernet (GigabitEthernet) interface or link aggregation (Eth-Trunk) interface and determine the process of its IP address.
In 202, configuration default gateway and subnet mask determine the network segment belonging to PPPOE user.As is known to the person skilled in the art, it is possible to determine the network segment belonging to PPPOE user by the IP address of default gateway and subnet mask are carried out logical AND (AND) computing.Additionally, according to embodiments of the present invention, the default gateway configured can must be no longer an in esse router.
In 203, configure the subnet section under the described network segment, to distribute to described PPPOE user.For example, it is possible to the quantity according to the IP address needed for described PPPOE user distributes subnet section.
According to embodiments of the present invention, except configuration default gateway, also additional configuration uses gateway, and the gateway route of gateway route rather than the default gateway using gateway is issued to PPPOE user, therefore PPPOE user can utilize this to use gateway as gateway, such that it is able to save out by the IP address of default gateway.
According to embodiments of the present invention, as long as use the IP address that the IP address that gateway uses is the arbitrary physical interface configuration existed on the router, and open (undoshutdown) with the state of this interface or closedown (shutdown) is unrelated.It is to say, not the on/off state of interface tube how, as long as it is the interface existed on the router and has been configured with IP address for it, then this IP address can serve as the IP address using gateway and uses.The on/off state of interface does not affect forwarding, without bringing other costs.Preferably, it is possible to use one in loopback interface, GigabitEthernet interface and Eth-Trunk is used as using gateway.Can select to use in loopback interface, GigabitEthernet interface and Eth-Trunk by user's manual configuration which be used as using gateway.
After being configured with and using gateway, issue the gateway route using gateway configured to PPPOE user, enable a user to that this is used gateway and use as gateway.In addition, configuration default gateway and subnet mask only for purpose of determine this address pool the network segment, namely can to user distribution IP address subnet section belonging to scope, to belong to the same network segment to the IP address of user's distribution and default gateway, but no longer issue 32 gateways route (i.e. Host routes) of default gateway to user.
Therefore, user's use can also be distributed in the IP address of default gateway.
Fig. 3 (a) and Fig. 3 (b) illustrates the comparison of the example of the order for distributing IP address according to embodiments of the present invention and the example of the order of prior art.Wherein, Fig. 3 (a) illustrates the command format of method according to embodiments of the present invention, and Fig. 3 (b) illustrates the command format of prior art.
In Fig. 3 (a), first gateway is used in configuration, it is assumed that utilize lookback interface as using gateway.Then, configuration default gateway be " 100.0.0.200 ", and specify subnet mask length be 24 (namely, it is intended that subnet mask is 255.255.255.0).Subnet mask can be configured according to the number of host etc. in the number of subnet or each subnet.But, those skilled in the art it is apparent that, it is also possible to use the method that any other is suitable to determine subnet mask.Configuration default gateway and subnet mask be " 100.0.0.20024 " only for purpose of determine will to user distribute IP address belonging to the network segment.
Then, configuring subnet section according to this default gateway is " 100.0.0.100100.0.0.255 ".Here, according to embodiments of the present invention, owing to not issuing the gateway route of default gateway to PPPOE user but only issuing the gateway route using gateway to user, so " 100.0.0.200 " as the IP address of default gateway can also be assigned to PPPOE user's use.
By contrast, referring to Fig. 3 (b), in the prior art, namely when do not configure use gateway and only configure default gateway, gateway route as default gateway is distributed to user, so its IP address " 101.0.0.1 " cannot be assigned to user and use.
Therefore, according to embodiments of the present invention, when router complete machine can support to create 4K address pool, it is not necessarily each address pool and creates an independent gateway, can be that every router saves 4K IP address for distributing to PPPOE user's use for this, it is possible to effectively help operator to improve income.
Fig. 4 illustrates the block diagram of the demonstrative structure 40 of the router for distributing IP address for PPPOE user according to embodiments of the present invention.
As shown in Figure 4, router 40 can include IP address distributor 401.This IP address distributor 401 is used gateway for configuring and issues this gateway using gateway route to described PPPOE user, configuration default gateway and subnet mask determine the network segment belonging to PPPOE user, and configure the subnet section under the described network segment, to distribute to described PPPOE user.
According to embodiments of the present invention, except configuration default gateway, also additional configuration uses gateway, and the gateway route of gateway route rather than the default gateway using gateway is issued to PPPOE user, therefore PPPOE user can utilize this to use gateway as gateway, such that it is able to save out by the IP address of default gateway.
Additionally, the IP address using gateway configured by described IP address distributor 401 can be the IP address of the either interface configuration for existing on the router.Preferably, described either interface can be in local loopback loopback interface, GigabitEthernet interface and Eth-Trunk.
Additionally, the subnet section including the IP address of described default gateway can be distributed to described PPPOE user by described IP address distributor 401.
It should be noted that, for clarity and conciseness, illustrate only the part relevant to the embodiment of the present invention in the diagram, but it will be appreciated by those skilled in the art that, the equipment shown in Fig. 4 can include the unit of other necessity.
It addition, communication system according to embodiments of the present invention can include above-mentioned router.
Those of ordinary skill in the art it can be appreciated that, the unit of each example described in conjunction with the embodiments described herein and algorithm steps, can with electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate the interchangeability of hardware and software, generally describe composition and the step of each example in the above description according to function.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel specifically can should be used for using different methods to realize described function to each, but this realization is it is not considered that beyond the scope of this invention.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, and the specific works process of the system of foregoing description, device and unit, it is possible to reference to the corresponding process in preceding method embodiment, do not repeat them here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method, it is possible to realize by another way.Such as, device embodiment described above is merely schematic, such as, the division of described unit, being only a kind of logic function to divide, actual can have other dividing mode when realizing, for instance multiple unit or assembly can in conjunction with or be desirably integrated into another system, or some features can ignore, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be through INDIRECT COUPLING or the communication connection of some interfaces, device or unit, it is possible to be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, and the parts shown as unit can be or may not be physical location, both may be located at a place, or can also be distributed on multiple NE.Some or all of unit therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to be that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, it would however also be possible to employ the form of SFU software functional unit realizes.
If described integrated unit is using the form realization of SFU software functional unit and as independent production marketing or use, it is possible to be stored in a computer read/write memory medium.Based on such understanding, part or all or part of of this technical scheme that prior art is contributed by technical scheme substantially in other words can embody with the form of software product, this computer software product is stored in a storage medium, including some instructions with so that a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-OnlyMemory), the various media that can store program code such as random access memory (RAM, RandomAccessMemory), magnetic disc or CD.
It may also be noted that in apparatus and method of the present invention, it is clear that each parts or each step can decompose and/or reconfigure.These decompose and/or reconfigure the equivalents that should be regarded as the present invention.Further, the step performing above-mentioned series of processes can order naturally following the instructions perform in chronological order, but is not required to necessarily perform sequentially in time.
The above; being only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any those familiar with the art is in the technical scope that the invention discloses; change can be readily occurred in or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with scope of the claims.
Claims (11)
1. one kind for for the method for peer-peer protocol PPPOE user assignment of the Internet protocol IP address on Ethernet, it is characterised in that described method includes:
Configuration use gateway and to described PPPOE user issue this gateway using gateway route, in order to described PPPOE user use described in use gateway as gateway;
Configuration default gateway and subnet mask determine the network segment belonging to PPPOE user;And
Configure the subnet section under the described network segment, to distribute to described PPPOE user;
Wherein, the IP address to described PPPOE user distribution belongs to same subnet section with described default gateway, and the IP address of described default gateway can be distributed to described PPPOE user and use.
2. the method according to any one in claim 1, it is characterised in that: described in use the IP address that the IP address of gateway is the either interface configuration for existing on the router.
3. method according to claim 2, it is characterised in that: described either interface is in local loopback loopback interface, gigabit Ethernet GigabitEthernet interface and link aggregation Eth-Trunk.
4. method according to claim 2, it is characterised in that described configuration is used gateway and included: find in local loopback loopback interface, gigabit Ethernet GigabitEthernet interface and link aggregation Eth-Trunk and determine its IP address.
5. the method according to any one in claim 1-4, it is characterised in that the subnet section under the described network segment of described configuration includes to distribute to described PPPOE user: the subnet section including the IP address of described default gateway is distributed to described PPPOE user.
6. one kind for for the router of peer-peer protocol PPPOE user assignment of the Internet protocol IP address on Ethernet, it is characterised in that described router includes:
IP address distributor, use gateway for configuring and issue this gateway using gateway route to described PPPOE user, configuration default gateway and subnet mask determine the network segment belonging to PPPOE user, and configure the subnet section under the described network segment, to distribute to described PPPOE user, in order to described PPPOE user use described in use gateway as gateway;
Wherein, the IP address to described PPPOE user distribution belongs to same subnet section with described default gateway, and the IP address of described default gateway can be distributed to described PPPOE user and use.
7. router according to claim 6, it is characterised in that: the IP address using gateway described in the configuration of described IP address distributor is the IP address of the either interface configuration for existing on the router.
8. router according to claim 7, it is characterised in that: described either interface is in local loopback loopback interface, gigabit Ethernet GigabitEthernet interface and link aggregation Eth-Trunk.
9. router according to claim 8, it is characterised in that: described IP address distributor is by find in local loopback loopback interface, gigabit Ethernet GigabitEthernet interface and link aggregation Eth-Trunk one and determines that its IP address configures and uses gateway.
10. the router according to any one in claim 6-9, it is characterised in that: the subnet section including the IP address of described default gateway is distributed to described PPPOE user by described IP address distributor.
11. a communication system, including the router as described in any one in claim 6-10.
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 CN102957760A (en) | 2013-03-06 |
CN102957760B true 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) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112367256B (en) * | 2020-10-15 | 2022-09-30 | 深信服科技股份有限公司 | Creation method, device and storage medium |
Citations (4)
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 |
-
2011
- 2011-08-30 CN CN201110252590.3A patent/CN102957760B/en not_active Expired - Fee Related
Patent Citations (4)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN102957760A (en) | 2013-03-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102801715B (en) | Method for virtual machine migration in network, gateway and system | |
EP3073676B1 (en) | Method, apparatus and system for controlling auto-provisioning of network device | |
CN105025116B (en) | For providing the method and router of naming service in industrial communication systems | |
CN105577723B (en) | Virtualize the method and apparatus that load balancing is realized in network | |
US8948045B2 (en) | Communication system and method of configuring a communication interface | |
US20050027778A1 (en) | Automatic configuration of an address allocation mechanism in a computer network | |
EP3245778B1 (en) | Network device identification in an industrial control network | |
CN105337754B (en) | Data communication network opening method and system | |
CN102984288A (en) | Method and system for managing internet protocol version 6 (IPV6) address conflicts automatically | |
CN103475581A (en) | Network tab distribution method, equipment and system | |
CN101938370A (en) | Redundant pseudowires for border gateway patrol-based virtual private local area network service multi-homing environments | |
CN102843441B (en) | Method and device for controlling address configuration way | |
US20150358278A1 (en) | Allocation of Network Addresses for Network Subscribers | |
CN106357542A (en) | Method for providing multicast service and software defined network controller | |
CN103036692A (en) | Method and device for generating network topologies aimed at IT supporting networks | |
CN114338397B (en) | Cloud platform network configuration method, device, server, storage medium and system | |
CN103200117A (en) | Method and device of load balancing | |
CN103338275A (en) | Port distribution method and apparatus | |
CN107465621A (en) | A kind of router finds method, SDN controllers, router and network system | |
CN101404594B (en) | Hot backup performance test method and apparatus, communication equipment | |
CN102957760B (en) | The method of assignment of the Internet protocol address, router and system | |
CN109150711B (en) | Protection switching method, device and storage medium for point-to-multipoint two-layer multicast service | |
CN104104749A (en) | Method and device for allocating tunnel IP addresses | |
CN111277506B (en) | Method for improving reliability of SLAAC (slow ranging Access control) distribution IPv6 address | |
CN104579729A (en) | CGN (carrier-grade net address translation) single board fault informing method and device |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160629 |