CN105530326B - Method and device for detecting three-layer interface IP address conflict - Google Patents
Method and device for detecting three-layer interface IP address conflict Download PDFInfo
- Publication number
- CN105530326B CN105530326B CN201410579746.2A CN201410579746A CN105530326B CN 105530326 B CN105530326 B CN 105530326B CN 201410579746 A CN201410579746 A CN 201410579746A CN 105530326 B CN105530326 B CN 105530326B
- Authority
- CN
- China
- Prior art keywords
- address
- network
- layer
- addresses
- interfaces
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a method and a device for detecting IP address conflict of a three-layer interface, wherein the method comprises the following steps: acquiring IP addresses of three-layer interfaces of a whole network in a network consisting of transmission equipment, wherein the IP addresses of the three-layer interfaces of the whole network comprise the IP addresses of three-layer interfaces of different private networks consisting of three-layer virtual private networks L3VPN with the same subnet name and the IP addresses of three-layer interfaces of a public network except the three-layer interfaces of the private network; the invention solves the problem that the IP of all kinds of three-layer interfaces of the whole network can not be detected when the IP conflict of the three-layer interfaces occurs in the related technology, can quickly detect the IP address conflict of all kinds of three-layer interfaces of the whole network (a public network and all private networks), and helps a user to quickly locate the IP address with the IP conflict.
Description
Technical Field
The invention relates to the field of computers, in particular to a method and a device for detecting IP address conflict of a three-layer interface.
Background
The Internet Protocol (IP) address between networks is a number of computers on the Internet. It is normal for each networked computer to have an IP address to communicate properly. Comparing "computer" to "phone", the "IP address" is equivalent to "phone number". A "telephone number" cannot be in conflict (i.e., identical) and, similarly, an IP address cannot be in conflict (i.e., identical).
When data is transmitted between transmission devices, three-layer interfaces are required to be created, and the three-layer interfaces have various types, such as: a three-layer Virtual Local Area Network (VLAN) interface, a three-layer Ethernet port and a three-layer Ethernet sub-port. The three-layer interface of the transmission equipment needs to be configured with an IP address, the IP addresses of the three-layer interfaces of all the transmission equipment in a network consisting of the transmission equipment cannot conflict, and if the IP addresses conflict, data transmission failure in the network can be caused, so that normal network communication is influenced.
The network consisting of transmission devices is divided into two components: several private networks and public networks. A Private Network represents all Three-layer Virtual Private networks (Level Three Virtual Private networks abbreviated as L3 VPNs) belonging to a subnet; the public network represents a network other than all private networks. Or telephone, the private network is an internal telephone network of a company, and the public network is a telephone network outside the internal telephone networks of all companies. There cannot be a duplicate telephone number in the telephone network inside the company, nor in all telephone networks outside the company's internal telephone network. Similarly, there cannot be conflicting IP addresses in the private and public networks.
In the related art, the network management only provides a method for performing conflict detection in the respective configuration functions of various types of three-layer interfaces, but does not provide conflict detection in the configuration functions of some types of three-layer interfaces. Therefore, in the related art, it can only be minimally ensured that the IP addresses of some kinds of three-layer interfaces do not conflict, and it cannot be ensured that the IP addresses of all kinds of three-layer interfaces in the whole network do not conflict. Furthermore, if an IP address conflict occurs, the related art cannot immediately acquire address information with the IP conflict, and can find out the conflicting IP only in a manner of manual checking by a configurator when a problem occurs in data transmission.
Aiming at the problem that in the related art, when IP conflicts of three-layer interfaces occur, the IP of all kinds of three-layer interfaces of the whole network cannot be detected, an effective solution is not provided at present.
Disclosure of Invention
The present invention provides a method and an apparatus for detecting IP address conflicts of three-layer interfaces, so as to solve at least the problem that in the related art, when IP conflicts of three-layer interfaces occur, the IP of all kinds of three-layer interfaces of the whole network cannot be detected.
In order to achieve the above object, the present invention provides a method for detecting IP address conflicts of a three-layer interface, including: acquiring IP addresses of three-layer interfaces of a whole network in a network consisting of transmission equipment, wherein the IP addresses of the three-layer interfaces of the whole network comprise the IP addresses of three-layer interfaces of different private networks consisting of three-layer virtual private networks L3VPN with the same subnet name and the IP addresses of three-layer interfaces of a public network except the three-layer interfaces of the private networks; and carrying out IP address conflict detection on the IP addresses of the three-layer interfaces of the whole network.
Further, the detecting the IP address conflict for the IP addresses of the three-layer interfaces of the whole network includes: searching the IP address of the three-layer interface of the private network from the IP addresses of the three-layer interfaces of the whole network; filtering the three-layer interface of the private network to obtain a three-layer interface of a public network, and then obtaining an IP address of the three-layer interface of the public network; and carrying out IP address conflict detection on the IP address of the three-layer interface of the private network and the IP address of the three-layer interface of the public network.
Further, the detecting of the IP address conflict for the IP address of the three-layer interface of the private network includes: establishing a mapping relation between a private network name and a private network lower three-layer interface set corresponding to the private network name; inquiring the IP addresses of the three-layer interfaces with IP address conflict in the IP addresses of the three-layer interfaces included in each private network according to the mapping relation; and traversing each private network included in the whole network, and recording the name of the private network, the three-layer interface with confliction of the IP address and the IP address of the three-layer interface with confliction of the IP address.
Further, the detecting of IP address collision for the IP address of the three-layer interface of the public network includes: creating a first preset table for storing all three-layer interfaces in the whole network and IP addresses of all three-layer interfaces in the whole network; creating a second preset table for storing the three-layer interfaces of the public network and the IP addresses of the three-layer interfaces of the public network, which are inquired in the first preset table; and performing IP address conflict detection on the IP address of the three-layer interface of the public network in a mode of executing a preset query statement on the second preset table.
Further, after detecting an IP address conflict for the IP address of the three-layer interface of the whole network, the method further includes: and displaying a detection result obtained after the IP address conflict detection is carried out on the IP addresses of the three layers of interfaces of the whole network.
According to another aspect of the present invention, there is provided a device for detecting IP address collision of a three-layer interface, including: the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring the IP addresses of three layers of interfaces of the whole network in a network consisting of transmission equipment, wherein the IP addresses of the three layers of interfaces of the whole network comprise the IP addresses of three layers of interfaces of different private networks consisting of three layers of virtual private networks L3VPN with the same subnet name and the IP addresses of three layers of interfaces of a public network except the three layers of interfaces of the private networks; and the detection module is used for carrying out IP address conflict detection on the IP addresses of the three layers of interfaces of the whole network.
Further, the detection module includes: the searching unit is used for searching the IP address of the three-layer interface of the private network from the IP addresses of the three-layer interface of the whole network; the filtering unit is used for filtering the three-layer interface of the private network to obtain the three-layer interface of the public network and then obtaining the IP address of the three-layer interface of the public network; and the detection unit is used for carrying out IP address conflict detection on the IP address of the three-layer interface of the private network and the IP address of the three-layer interface of the public network.
Further, the detection unit is also used for establishing a mapping relation between a private network name and a private network lower layer interface set corresponding to the private network name; inquiring the IP addresses of the three-layer interfaces with IP address conflict in the IP addresses of the three-layer interfaces included in each private network according to the mapping relation; and traversing each private network included in the whole network, and recording the name of the private network, the three-layer interface with confliction of the IP address and the IP address of the three-layer interface with confliction of the IP address.
Further, the detecting unit is further configured to respectively create a first preset table for storing all three-layer interfaces in the entire network and IP addresses of all three-layer interfaces in the entire network; creating a second preset table for storing the three-layer interfaces of the public network and the IP addresses of the three-layer interfaces of the public network, which are inquired in the first preset table; and performing IP address conflict detection on the IP address of the three-layer interface of the public network in a mode of executing a preset query statement on the second preset table.
Further, the apparatus further comprises: and the display module is used for displaying a detection result obtained after the IP address conflict detection is carried out on the IP addresses of the three layers of interfaces of the whole network.
By acquiring the IP addresses of the three-layer interfaces in the whole network consisting of the private network and the public network and detecting the IP address conflict of the three-layer interfaces in the whole network, the invention solves the problem that the IP of all kinds of three-layer interfaces in the whole network cannot be detected when the IP conflicts of the three-layer interfaces occur in the related technology, can quickly detect the IP address conflict of all kinds of three-layer interfaces in the whole network (the public network and all private networks) and helps a user to quickly locate the IP address with the IP conflict.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of a method for detecting three-layer interface IP address conflicts according to an embodiment of the present invention;
fig. 2 is a block diagram of a three-layer interface IP address collision detection apparatus according to an embodiment of the present invention;
FIG. 3 is a block diagram of an alternative structure of a device for detecting IP address conflicts of three-layer interfaces according to an embodiment of the present invention;
FIG. 4 is a block diagram of an alternative structure of a device for detecting IP address conflicts of a three-layer interface according to an embodiment of the present invention;
fig. 5 is a flow diagram of a method for detecting all kinds of three-layer interface IP address conflicts throughout a network in accordance with an alternative embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
The steps illustrated in the flow charts of the drawings may be performed in a computer system such as a set of computer-executable instructions and, although a logical order is illustrated in the flow charts, in some cases, the steps illustrated or described may be performed in an order different than here.
This embodiment provides a method for detecting a three-layer interface IP address conflict, fig. 1 is a flowchart of a method for detecting a three-layer interface IP address conflict according to an embodiment of the present invention, as shown in fig. 1, the method includes the steps of:
step S102: acquiring IP addresses of three-layer interfaces of a whole network in a network consisting of transmission equipment;
the IP addresses of the three layers of interfaces of the whole network comprise the IP addresses of the three layers of interfaces of different private networks consisting of three layers of virtual private networks L3VPN with the same subnet name and the IP addresses of the three layers of interfaces of a public network except the three layers of interfaces of the private network;
step S104: and carrying out IP address conflict detection on the IP addresses of the three-layer interfaces of the whole network.
By acquiring the IP addresses of the three-layer interfaces in the whole network consisting of the private network and the public network and detecting the IP address conflict of the three-layer interfaces in the whole network, the embodiment of the invention solves the problem that the IP of all kinds of three-layer interfaces in the whole network cannot be detected when the IP conflicts of the three-layer interfaces occur in the related technology, can quickly detect the IP address conflict of all kinds of three-layer interfaces in the whole network (the public network and all the private networks) and helps a user to quickly locate the IP address with the IP conflict.
In this embodiment, there are various ways to perform IP address collision detection on the IP address of the three-layer interface of the entire network, and in an optional implementation of this embodiment, the collision detection is performed on the IP address of the three-layer interface of the entire network by steps:
step A: searching the IP address of the three-layer interface of the private network from the IP addresses of the three-layer interface of the whole network;
and B: filtering the three-layer interface of the private network to obtain the three-layer interface of the public network, and then obtaining the IP address of the three-layer interface of the public network;
and C: and carrying out IP address conflict detection on the IP address of the three-layer interface of the private network and the IP address of the three-layer interface of the public network.
In order to better detect a conflicting IP address in a private network, an optional implementation manner of the embodiment of the present invention employs the following manner, which includes the following steps:
step S11: establishing mapping relation between private network name and private network name corresponding private network lower three-layer interface set
Step S12: inquiring the IP addresses of the three-layer interfaces with IP address conflict in the IP addresses of the three-layer interfaces included in each private network according to the mapping relation;
step S13: and traversing each private network included in the whole network, and recording the private network name, the IP address of the three-layer interface with the IP address conflict and the IP address of the three-layer interface with the IP address conflict.
Of course, the mapping relationship between the private network name and all three layers of interfaces under the private network corresponding to the private network name is only an optional way in the embodiment of the present invention, and other ways capable of performing collision detection on the IP addresses of the three layers of interfaces of the private network are also within the scope of protection of the present invention.
In order to better detect a conflicting IP address in a private network, an optional implementation manner of the embodiment of the present invention employs the following manner, which includes the following steps:
step S21: creating a first preset table for storing all three-layer interfaces in the whole network and IP addresses of all three-layer interfaces in the whole network;
step S22: and creating a second preset table for storing the three-layer interfaces of the public network inquired in the first preset table and the IP addresses of the three-layer interfaces of the public network.
In order to enable a user to conveniently and quickly find an IP address with a conflict, in an optional implementation manner of this embodiment, a detection result obtained by performing IP address conflict detection on IP addresses of three interfaces of a whole network is displayed. Of course, other ways of quickly notifying the user of IP conflicting address information are within the scope of the present invention.
The embodiment of the invention also provides a device for detecting the IP address conflict of the three-layer interface, and the device can be used for realizing the method embodiment of the invention. Fig. 2 is a block diagram of a device for detecting IP address collision of a three-layer interface according to an embodiment of the present invention, and as shown in fig. 2, the device includes: the acquiring module 22 is configured to acquire IP addresses of three layers of interfaces of a whole network in a network composed of transmission devices, where the IP addresses of the three layers of interfaces of the whole network include IP addresses of three layers of interfaces of different private networks composed of three layers of virtual private networks L3 VPNs with the same subnet name, and IP addresses of three layers of interfaces of a public network except for the three layers of interfaces of the private network; the detecting module 24 is coupled to the obtaining module 22, and is configured to perform IP address collision detection on IP addresses of three-layer interfaces of the entire network.
Fig. 3 is a block diagram of an alternative structure of a device for detecting IP address conflicts of a three-layer interface according to an embodiment of the present invention, as shown in fig. 3, the detecting module 24 includes: the searching unit 32 is used for searching the IP address of the three-layer interface of the private network from the IP addresses of the three-layer interface of the whole network; the filtering unit 34 is coupled to the searching unit 32, and configured to filter the IP address of the three-layer interface of the private network to obtain the IP address of the three-layer interface of the public network after obtaining the three-layer interface of the public network; the detecting unit 36 is coupled to the filtering unit 34, and is configured to perform IP address collision detection on the IP address of the three-layer interface of the private network and the IP address of the three-layer interface of the public network.
Optionally, the detecting unit is further configured to establish a mapping relationship between the private network name and a private network lower layer interface set corresponding to the private network name; inquiring the IP addresses of the three-layer interfaces with IP address conflict in the IP addresses of the three-layer interfaces included in each private network according to the mapping relation; and traversing each private network included in the whole network, and recording the private network name, the IP address of the three-layer interface with the IP address conflict and the IP address of the three-layer interface with the IP address conflict.
Optionally, the detecting unit is further configured to create a first preset table for storing all three-layer interfaces in the entire network and IP addresses of all three-layer interfaces in the entire network; creating a second preset table for storing the three-layer interfaces of the public network inquired in the first preset table and the IP addresses of the three-layer interfaces of the public network; and performing IP address conflict detection on the IP addresses of the three-layer interfaces of the public network in a mode of executing a preset query statement on the second preset table.
Fig. 4 is a block diagram of an alternative structure of a device for detecting IP address conflicts with a three-layer interface according to an embodiment of the present invention, where the device further includes: the display module 42 is coupled to the detection module 24, and is configured to display a detection result obtained after performing IP address collision detection on IP addresses of three-layer interfaces of the entire network.
It should be noted that the short message processing apparatus described in the apparatus embodiment corresponds to the above-mentioned method embodiment, and the specific implementation process thereof has been described in detail in the method embodiment, and is not described herein again.
The invention will be illustrated below with reference to an alternative embodiment of the invention and the accompanying drawings.
The preferred embodiment of the invention provides a method for simply, conveniently and efficiently detecting all kinds of three-layer interface IP address conflicts in the whole network. Fig. 5 is a flowchart of a method for detecting IP address conflicts of all kinds of three-layer interfaces of the whole network according to an alternative embodiment of the present invention, and as shown in fig. 5, the flowchart includes the following steps:
step S502: creating a table 1 in a database of a network manager, and storing all kinds of three-layer interfaces and IP addresses of the three-layer interfaces;
table 1 corresponds to the first predetermined table, which is used for the convenience of the following query.
Step S504: creating a table 2 in a database of a network manager, and storing the three-layer interfaces belonging to the public network and the IP addresses of the three-layer interfaces;
table 2 corresponds to the second preset table, and an index is created in the IP address column of the three-layer interface of the table, and the index is used to complete the quick search of the conflicting IP addresses.
Step S506: inquiring all L3 VPNs;
the query result comprises the name of the subnet to which the L3VPN belongs and a three-layer interface included by the L3 VPN. All L3 VPNs with the same subnet name are a private network. Generating two groups of data according to the query result:
a) the private network name and the three-layer interface set of the private network are stored in a mapping;
b) the three-tier interfaces of all private networks are stored in one set.
Step S508: inquiring IP addresses of three-layer interfaces and three-layer interfaces of all network elements;
wherein, the query result is filtered by using the data b) of the step S506, and the three-layer interface in the data b) not belonging to the step S506 belongs to the three-layer interface of the public network. The IP addresses of the three-layer interface of the public network and the three-layer interface thereof are stored in the table created in step S504.
Step S510: performing IP address conflict detection on the data;
wherein, traversing all private networks, each private network performs the following operations:
step a: inquiring IP addresses of three-layer interfaces of a private network;
step b: the IP addresses are traversed and conflicting IP addresses are found. And recording the private network name, the three-layer interfaces with IP address conflict and the IP addresses of the three-layer interfaces.
Step S512: and executing a query statement on the table created in the step S504 in the database, finding out the IP addresses with conflicts, and recording the three-layer interfaces with the conflicts of the IP addresses and the IP addresses of the three-layer interfaces.
Step S514: the table created in step S504 is deleted from the database.
Step S516: recording three-layer interfaces with confliction of IP addresses in the private network and the public network and IP addresses of the three-layer interfaces, and presenting a detection result.
The network management of the related art only provides collision detection in the respective configuration functions of the three-layer interfaces of various types, but some types of three-layer interface configuration functions do not provide collision detection yet. Therefore, in the related art, it can only be guaranteed to the minimum extent that the IP addresses of some kinds of three-layer interfaces do not conflict, and it cannot be guaranteed that the IP addresses of all kinds of three-layer interfaces in the whole network do not conflict. If the IP address conflicts, the problem cannot be found immediately, and the problem can only be found by a manual checking mode of a configurator when the data transmission has problems, that is, the mode in the related art is inefficient and the IP address with conflicts cannot be found immediately. By the optional embodiment of the invention, all kinds of three-layer interface IP address conflicts of the whole network (public network and all private networks) can be rapidly detected, and the detection result is presented to the user, so that the user is helped to rapidly locate the problem, and a series of problems caused by the IP address conflicts are avoided.
The invention will be further described with reference to an alternative embodiment of the invention. The example of this implementation is:
the following three-layer interfaces and the IP addresses of the three-layer interfaces exist in the current whole network:
three layer interface 1, IP address is 10.8.22.1
Three layer interface 2, IP address is 10.8.22.2
Three layer interface 3, IP address is 10.8.22.1
Three-layer interface 4, IP address is 192.168.1.1
Three-layer interface 5, IP address 192.168.1.2
Three-layer interface 6, IP address 192.168.1.1
Three-layer interface 7, IP address 192.168.2.1
Three layer interface 8, IP address is 192.168.2.2
Three-layer interface 9, IP address 192.168.2.1
Wherein, the three-layer interfaces 1, 2 and 3 belong to a public network; the three-layer interfaces 4, 5, 6 belong to an L3VPN, and the subnet name of the L3VPN is: a private network 1; the three-layer interfaces 7, 8, 9 belong to an L3VPN, and the subnet name of the L3VPN is: a private network 2.
The collision detection method comprises the following steps:
step S1: a table is created in the database of the network manager for storing all kinds of three-layer interfaces and IP addresses of the three-layer interfaces.
Step S2: a table is created in a database of a network manager and used for storing three-layer interfaces belonging to a public network and IP addresses of the three-layer interfaces.
Step S3: two groups of data are generated according to the inquired L3VPN data, and the following steps are carried out:
Map
{
private network 1, Set { three-layer interface 4, three-layer interface 5, three-layer interface 6}
Private network 2, Set { three-layer interface 7, three-layer interface 8, three-layer interface 9}
}
Set
{
A three-layer interface 4, a three-layer interface 5, a three-layer interface 6,
Three-layer interface 7, three-layer interface 8 and three-layer interface 9
}
Step S4: and inquiring IP addresses of the three-layer interfaces and the three-layer interfaces of all network elements as follows:
Set
{
three layer interface 1, IP address is 10.8.22.1
Three layer interface 2, IP address is 10.8.22.2
Three layer interface 3, IP address is 10.8.22.1
Three-layer interface 4, IP address is 192.168.1.1
Three-layer interface 5, IP address 192.168.1.2
Three-layer interface 6, IP address 192.168.1.1
Three-layer interface 7, IP address 192.168.2.1
Three layer interface 8, IP address is 192.168.2.2
Three-layer interface 9, IP address 192.168.2.1
}
Filtering the query result by using Set { three-layer interface 4, three-layer interface 5, three-layer interface 6, three-layer interface 7, three-layer interface 8 and three-layer interface 9}, filtering out three-layer interfaces of the public network as Set { three-layer interface 1, three-layer interface 2 and three-layer interface 3}, and storing the IP addresses of the three-layer interface and the three-layer interface of the public network in the table created in the step 1, wherein the stored data are as follows:
Set
{
three layer interface 1, IP address is 10.8.22.1
Three layer interface 2, IP address is 10.8.22.2
Three layer interface 3, IP address is 10.8.22.1
}
Step S5: traversing the private network, and inquiring the IP address of the three-layer interface of the private network as follows:
a private network (1) is provided,
Set
{
three-layer interface 4, IP address is 192.168.1.1
Three-layer interface 5, IP address 192.168.1.2
Three-layer interface 6, IP address 192.168.1.1
}
The private network (2) is provided with,
Set
{
three-layer interface 7, IP address 192.168.2.1
Three layer interface 8, IP address is 192.168.2.2
Three-layer interface 9, IP address 192.168.2.1
}
Traversing the IP address, wherein the three-layer interface of the IP address conflict and the conflicting IP address are as follows:
Map
{
a private network (1) is provided,
Set
{
three-layer interface 4, IP address is 192.168.1.1
Three-layer interface 6, IP address 192.168.1.1
}
The private network (2) is provided with,
Set
{
three-layer interface 7, IP address 192.168.2.1
Three-layer interface 9, IP address 192.168.2.1
}
}
Step S6: executing a query statement on the table created in the step 1 in the database, and finding out a conflicted IP address, wherein three layers of interfaces of the IP address conflict and the conflicted IP address are as follows:
public network
Set
{
Three layer interface 1, IP address is 10.8.22.1
Three layer interface 3, IP address is 10.8.22.1
}
Step S7: the table created in step 1 is deleted in the database.
Step S8: the IP addresses of the three-layer interface and the three-layer interface of the conflict between the private network and the public network are as follows:
Map
{
a private network (1) is provided,
Set
{
three-layer interface 4, IP address is 192.168.1.1
Three-layer interface 6, IP address 192.168.1.1
}
The private network (2) is provided with,
Set
{
three-layer interface 7, IP address 192.168.2.1
Three-layer interface 9, IP address 192.168.2.1
}
Public network
Set
{
Three layer interface 1, IP address is 10.8.22.1
Three layer interface 3, IP address is 10.8.22.1
}
}
By the optional implementation of the optional embodiment of the invention, all kinds of three-layer interface IP address conflicts of the whole network (public network and all private networks) can be quickly detected, and the detection result is presented to the user, so that the user is helped to quickly locate the problem, and a series of problems caused by the IP address conflicts are avoided.
The above description is only an alternative embodiment of the present invention, and is not intended to limit the present invention, and various modifications and variations of the present invention may occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A method for detecting IP address conflict of a three-layer interface is characterized by comprising the following steps:
acquiring IP addresses of three-layer interfaces of a whole network in a network consisting of transmission equipment, wherein the IP addresses of the three-layer interfaces of the whole network comprise the IP addresses of three-layer interfaces of different private networks, the IP addresses of three-layer interfaces of a public network except the three-layer interfaces of the private networks, and a private network consists of three-layer virtual private networks L3VPN with the same subnet name;
and carrying out IP address conflict detection on the IP addresses of the three-layer interfaces of the whole network.
2. The method of claim 1, wherein performing IP address collision detection on the IP addresses of the three-layer interfaces of the whole network comprises:
searching the IP address of the three-layer interface of the private network from the IP addresses of the three-layer interfaces of the whole network;
filtering the three-layer interface of the private network to obtain a three-layer interface of a public network, and then obtaining an IP address of the three-layer interface of the public network;
and carrying out IP address conflict detection on the IP address of the three-layer interface of the private network and the IP address of the three-layer interface of the public network.
3. The method of claim 2, wherein performing IP address collision detection on the IP address of the three-tier interface of the private network comprises:
establishing a mapping relation between a private network name and a private network lower three-layer interface set corresponding to the private network name;
inquiring the IP addresses of the three-layer interfaces with IP address conflict in the IP addresses of the three-layer interfaces included in each private network according to the mapping relation;
and traversing each private network included in the whole network, and recording the name of the private network, the three-layer interface with confliction of the IP address and the IP address of the three-layer interface with confliction of the IP address.
4. The method of claim 2, wherein performing IP address collision detection on the IP address of the three-layer interface of the public network comprises:
creating a first preset table for storing all three-layer interfaces in the whole network and IP addresses of all three-layer interfaces in the whole network;
creating a second preset table for storing the three-layer interfaces of the public network and the IP addresses of the three-layer interfaces of the public network, which are inquired in the first preset table;
and performing IP address conflict detection on the IP address of the three-layer interface of the public network in a mode of executing a preset query statement on the second preset table.
5. The method of claim 1, further comprising, after performing IP address collision detection on the IP addresses of the three-layer interfaces of the whole network:
and displaying a detection result obtained after the IP address conflict detection is carried out on the IP addresses of the three layers of interfaces of the whole network.
6. An apparatus for detecting IP address collision of a three-layer interface, comprising:
the system comprises an acquisition module, a transmission module and a control module, wherein the acquisition module is used for acquiring the IP addresses of three layers of interfaces of the whole network in a network consisting of transmission equipment, wherein the IP addresses of the three layers of interfaces of the whole network comprise the IP addresses of three layers of interfaces of different private networks, the IP addresses of three layers of interfaces of a public network except the three layers of interfaces of the private network, and a private network consists of three layers of virtual private networks L3VPN with the same subnet name;
and the detection module is used for carrying out IP address conflict detection on the IP addresses of the three layers of interfaces of the whole network.
7. The apparatus of claim 6, wherein the detection module comprises:
the searching unit is used for searching the IP address of the three-layer interface of the private network from the IP addresses of the three-layer interface of the whole network;
the filtering unit is used for filtering the three-layer interface of the private network to obtain the three-layer interface of the public network and then obtaining the IP address of the three-layer interface of the public network;
and the detection unit is used for carrying out IP address conflict detection on the IP address of the three-layer interface of the private network and the IP address of the three-layer interface of the public network.
8. The apparatus of claim 7, wherein the detecting unit is further configured to establish a mapping relationship between a private network name and a private network lower third layer interface set corresponding to the private network name;
inquiring the IP addresses of the three-layer interfaces with IP address conflict in the IP addresses of the three-layer interfaces included in each private network according to the mapping relation;
and traversing each private network included in the whole network, and recording the name of the private network, the three-layer interface with confliction of the IP address and the IP address of the three-layer interface with confliction of the IP address.
9. The apparatus of claim 7, wherein the detection unit is further configured to,
creating a first preset table for storing all three-layer interfaces in the whole network and IP addresses of all three-layer interfaces in the whole network;
creating a second preset table for storing the three-layer interfaces of the public network and the IP addresses of the three-layer interfaces of the public network, which are inquired in the first preset table;
and performing IP address conflict detection on the IP address of the three-layer interface of the public network in a mode of executing a preset query statement on the second preset table.
10. The apparatus of claim 6, further comprising:
and the display module is used for displaying a detection result obtained after the IP address conflict detection is carried out on the IP addresses of the three layers of interfaces of the whole network.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410579746.2A CN105530326B (en) | 2014-10-24 | 2014-10-24 | Method and device for detecting three-layer interface IP address conflict |
PCT/CN2015/072335 WO2016061947A1 (en) | 2014-10-24 | 2015-02-05 | Method and apparatus for detecting three-layer interface ip address conflict |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410579746.2A CN105530326B (en) | 2014-10-24 | 2014-10-24 | Method and device for detecting three-layer interface IP address conflict |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105530326A CN105530326A (en) | 2016-04-27 |
CN105530326B true CN105530326B (en) | 2020-01-07 |
Family
ID=55760136
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410579746.2A Active CN105530326B (en) | 2014-10-24 | 2014-10-24 | Method and device for detecting three-layer interface IP address conflict |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105530326B (en) |
WO (1) | WO2016061947A1 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111064818B (en) * | 2019-12-11 | 2022-03-25 | 新华三大数据技术有限公司 | Configuration method and device |
CN112637377B (en) * | 2020-12-17 | 2023-10-10 | 上海云轴信息科技有限公司 | Method and equipment for detecting IP address conflict |
CN113098991B (en) * | 2021-03-29 | 2022-11-04 | 北京金山云网络技术有限公司 | Message processing method and device, private line access gateway and public cloud system |
CN113746950B (en) * | 2021-09-07 | 2023-11-21 | 中国联合网络通信集团有限公司 | IP address conflict pre-detection method, system, computer equipment and storage medium |
CN114465987B (en) * | 2021-12-10 | 2023-04-07 | 达闼机器人股份有限公司 | Network address allocation method, internet of things system, device, equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1744565A (en) * | 2005-09-22 | 2006-03-08 | 武汉思为同飞网络技术有限公司 | System and method for solving VPN sub-net address collision |
CN101227465A (en) * | 2007-12-29 | 2008-07-23 | 北京亿阳信通软件研究院有限公司 | Method and system for administrating IP address |
US7406526B2 (en) * | 2001-09-28 | 2008-07-29 | Uri Benchetrit | Extended internet protocol network address translation system |
CN101594375A (en) * | 2008-05-30 | 2009-12-02 | 华为技术有限公司 | The method of ARP proxy and ARP proxy equipment |
CN102546849A (en) * | 2010-12-30 | 2012-07-04 | 华为技术有限公司 | Detection method for IP (Internet Protocol) address conflict and network equipment |
CN102571606A (en) * | 2012-02-24 | 2012-07-11 | 中兴通讯股份有限公司 | Private network data forwarding method, device and system for layer-3 virtual private network |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101931565B (en) * | 2009-06-23 | 2012-07-18 | 中兴通讯股份有限公司 | Network segment detection method and device |
CN101610182B (en) * | 2009-06-26 | 2011-09-07 | 杭州华三通信技术有限公司 | Multi-primary apparatus conflict detection method in stack and stack member apparatus |
CN102843282B (en) * | 2011-06-20 | 2017-07-14 | 中兴通讯股份有限公司 | A kind of message processing method and system |
-
2014
- 2014-10-24 CN CN201410579746.2A patent/CN105530326B/en active Active
-
2015
- 2015-02-05 WO PCT/CN2015/072335 patent/WO2016061947A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7406526B2 (en) * | 2001-09-28 | 2008-07-29 | Uri Benchetrit | Extended internet protocol network address translation system |
CN1744565A (en) * | 2005-09-22 | 2006-03-08 | 武汉思为同飞网络技术有限公司 | System and method for solving VPN sub-net address collision |
CN101227465A (en) * | 2007-12-29 | 2008-07-23 | 北京亿阳信通软件研究院有限公司 | Method and system for administrating IP address |
CN101594375A (en) * | 2008-05-30 | 2009-12-02 | 华为技术有限公司 | The method of ARP proxy and ARP proxy equipment |
CN102546849A (en) * | 2010-12-30 | 2012-07-04 | 华为技术有限公司 | Detection method for IP (Internet Protocol) address conflict and network equipment |
CN102571606A (en) * | 2012-02-24 | 2012-07-11 | 中兴通讯股份有限公司 | Private network data forwarding method, device and system for layer-3 virtual private network |
Also Published As
Publication number | Publication date |
---|---|
CN105530326A (en) | 2016-04-27 |
WO2016061947A1 (en) | 2016-04-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105530326B (en) | Method and device for detecting three-layer interface IP address conflict | |
CN107733670B (en) | Forwarding strategy configuration method and device | |
CN105391811B (en) | domain name resolution method, access method of application server and terminal thereof | |
US20130070639A1 (en) | Information processing device, information processing method, and computer readable medium | |
CN109981493B (en) | Method and device for configuring virtual machine network | |
US10097424B2 (en) | Route display method and route display apparatus | |
US10735370B1 (en) | Name based internet of things (IoT) data discovery | |
US8914503B2 (en) | Detected IP link and connectivity inference | |
EP3884641B1 (en) | Apparatus and method for migrating existing access control list policies to intent based policies and vice versa | |
CN110505152A (en) | Route filtering method, device and electronic equipment | |
US20150052575A1 (en) | Steering Traffic Among Multiple Network Services Using a Centralized Dispatcher | |
CN103780613A (en) | Method and system for linking fixed network and mobile network | |
CN103684885A (en) | Method and device for determining web server accessing abnormities | |
CN108023763A (en) | The creation method and device of a kind of network topological diagram | |
CN108337739A (en) | Establish method and device, the data processing method of wireless debugging connection | |
CN103401706B (en) | A kind of method and device for configuring port security | |
US9729426B2 (en) | Stitching together partial network topologies | |
CN107249050B (en) | Method and device for managing resources in cloud platform | |
CN110868450B (en) | Dual-computer room multi-entrance session keeping method, system, device and storage medium | |
CN104486459A (en) | Dual-IP and dual-line server and serving method | |
CN105991794B (en) | A kind of address learning method and device | |
CN105991428B (en) | Method and device for processing switch routing conflict | |
CN102763376A (en) | Method and system for common group action filtering in telecom network environments | |
CN103986600A (en) | Enterprise-level network automatic finding and filtering method and system based on multiple protocols | |
CN103731347A (en) | VPNV4 routing processing method and device based on nested VPN |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |