CN102938711A - Internet access information configuration method and network equipment - Google Patents

Internet access information configuration method and network equipment Download PDF

Info

Publication number
CN102938711A
CN102938711A CN2012104644403A CN201210464440A CN102938711A CN 102938711 A CN102938711 A CN 102938711A CN 2012104644403 A CN2012104644403 A CN 2012104644403A CN 201210464440 A CN201210464440 A CN 201210464440A CN 102938711 A CN102938711 A CN 102938711A
Authority
CN
China
Prior art keywords
network interface
address
network
routing table
sign
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
CN2012104644403A
Other languages
Chinese (zh)
Other versions
CN102938711B (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 CN201210464440.3A priority Critical patent/CN102938711B/en
Publication of CN102938711A publication Critical patent/CN102938711A/en
Application granted granted Critical
Publication of CN102938711B publication Critical patent/CN102938711B/en
Active 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 an internet access information configuration method and network equipment. The internet access information configuration method comprises the steps of receiving a first configuration request which requests internet protocol (IP) address configuration of a first internet access, wherein the first configuration request comprises an identification of the first internet access and a first IP address configured for the first internet access; if the first IP address is different from IP addresses of other internet accesses other than the first internet access, configuring a connected route corresponding with the first IP address to a routing list of the first internet access according to the identification of the first internet access, generating and storing a mapping relation among the identification of the first internet access, the first IP address and the routing list of the first internet access. By means of the technical scheme of the internet access information configuration method and network equipment, not only the problem of routing conflict can be resolved, but also the use ratio of network address resources can be improved.

Description

Network interface information configuring methods and the network equipment
Technical field
The present invention relates to the communication technology, relate in particular to a kind of network interface information configuring methods and the network equipment.
Background technology
On memory device, generally there are a plurality of network interfaces, comprise management network port and service network port, these network interfaces all are based on transmission control protocol/Internet Interconnection agreement (Transmission ControlProtocol/Internet Protocol is referred to as TCP/IP) agreement and send or the receive data bag.The user can be to the network interface configuration of IP address, when being the network interface configuration of IP address, need in the routing table of memory device, add a direct-connected route, so-called direct-connected route refer to destination address be join the network address at place, IP address, in addition, the user can also add, delete to network interface other routes etc.
In the prior art, if, then will there be the identical route table items in address of many clauses and subclauses at the same network segment in the IP address of a plurality of network interfaces in the routing table of memory device, namely there is the problem of route conflict.Like this, when sending packet, memory device only can select that article one is by the route table items in mating in the routing table, and the network interface of appointment sends packet from this list item.In order to solve the problem of route conflict, the mode that prior art adopts the configuration to the IP address of network interface and route to limit, described restriction comprises: (1) IP to be configured can not with configuration of IP at the same network segment; (2) IP to be configured can not with the destination address of the route that has disposed at the same network segment; (3) destination address of route to be configured can not with the IP that has disposed at the same network segment; (4) destination address of route to be configured can not with the destination address of the route that has disposed at the same network segment; (5) can only to a network interface allocating default gateway, generally select management network port allocating default gateway.The configuration operation of this limited subscriber is evaded the method for route collision problem, can not take full advantage of network address resources.
Summary of the invention
The embodiment of the invention provides a kind of network interface information configuring methods and the network equipment, in order to improve the utilance of network address resources.
First aspect provides a kind of network interface information configuring methods, comprise: the network equipment receives the Internet protocol IP address configuration is carried out in request to the first network interface the first configuring request, described the first configuring request comprises the sign of described the first network interface and is an IP address of described the first network interface configuration that the described network equipment comprises described the first network interface and other network interfaces; If a described IP address is not identical with the IP address of described other network interfaces, the described network equipment is according to the sign of described the first network interface, the direct-connected routing configuration that a described IP address is corresponding generates and stores the mapping relations between the routing table of the sign of described the first network interface, a described IP address and described the first network interface in the routing table of described the first network interface.
In the possible implementation of the first of first aspect, the described network equipment comprises after generating and storing mapping relations between the routing table of the sign of described the first network interface, a described IP address and described the first network interface: the described network equipment receives request described the first network interface is carried out the second configuring request of routing configuration, and described the second configuring request comprises the sign of described the first network interface and the first routing iinformation that adds for described the first network interface; The described network equipment adds described the first routing iinformation in the routing table of described the first network interface to according to the mapping relations between the routing table of the sign of described the first network interface and the sign of described the first network interface, a described IP address and described the first network interface.
In conjunction with the possible implementation of the first of first aspect or first aspect, in the possible implementation of the second of first aspect, the described network equipment comprises after generating and storing mapping relations between the routing table of the sign of described the first network interface, a described IP address and described the first network interface: the described network equipment receives request described the first network interface is carried out the 3rd configuring request of routing configuration, and described the 3rd configuring request comprises the sign of described the first network interface and is the secondary route information of described the first network interface deletion; The described network equipment is deleted described secondary route information according to the mapping relations between the routing table of the sign of described the first network interface and the sign of described the first network interface, a described IP address and described the first network interface from the routing table of described the first network interface.
In conjunction with the possible implementation of the first of first aspect or first aspect or the possible implementation of the second of first aspect, in the third possible implementation of first aspect, the described network equipment generates and stores the sign of described the first network interface, comprise after the mapping relations between the routing table of a described IP address and described the first network interface: the described network equipment is according to the sign of source IP address and described first network interface of packet to be sent, mapping relations between the routing table of a described IP address and described the first network interface are obtained Third Road in the purpose IP matching addresses of described packet to be sent by information from the routing table of described the first network interface; The described network equipment sends described packet to be sent from described Third Road by the network interface of information appointment.
In conjunction with the possible implementation of the second of the possible implementation of the first of first aspect or first aspect or first aspect or the third possible implementation of first aspect, in the 4th kind of possible implementation of first aspect, the described network equipment is according to the sign of described the first network interface, direct-connected routing configuration corresponding to a described IP address comprised in the routing table of described the first network interface: the described network equipment judges according to the sign of described the first network interface whether the routing table of described the first network interface exists; If judged result is yes, the described network equipment directly is configured to direct-connected route corresponding to a described IP address in the routing table of described the first network interface; If the determination result is NO, the described network equipment creates the routing table of described the first network interface, and then the direct-connected routing configuration that a described IP address is corresponding is in the routing table of described the first network interface.
The 4th kind of possible implementation in conjunction with first aspect, in the 5th kind of possible implementation of first aspect, the described network equipment comprises before direct-connected route corresponding to a described IP address directly being configured in the routing table of described the first network interface: the described network equipment is starting or when having the I/O card to insert the described network equipment, is creating the routing table of described the first network interface.
Second aspect provides a kind of network equipment, comprising:
Receiver module is used for receiving first configuring request of asking the first network interface of the described network equipment is carried out the Internet protocol IP address configuration, and described the first configuring request comprises the sign of described the first network interface and is an IP address of described the first network interface configuration;
Configuration module, be used for when not identical with the IP address of other network interfaces of the described network equipment except described the first network interface in a described IP address, sign according to described the first network interface, the direct-connected routing configuration that a described IP address is corresponding generates and stores the mapping relations between the routing table of the sign of described the first network interface, a described IP address and described the first network interface in the routing table of described the first network interface.
In the possible implementation of the first of second aspect, described receiver module is also for after the mapping relations between the routing table that generates and stores the sign of described the first network interface, a described IP address and described the first network interface at described configuration module, receive second configuring request of asking described the first network interface is carried out routing configuration, described the second configuring request comprises the sign of described the first network interface and is the first routing iinformation that described the first network interface adds; Described configuration module also is used for according to the mapping relations between the routing table of the sign of described the first network interface and the sign of described the first network interface, a described IP address and described the first network interface described the first routing iinformation being added in the routing table of described the first network interface.
In conjunction with the possible implementation of the first of second aspect or second aspect, in the possible implementation of the second of second aspect, described receiver module is also for after the mapping relations between the routing table that generates and stores the sign of described the first network interface, a described IP address and described the first network interface at described configuration module, receive the 3rd configuring request of asking described the first network interface is carried out routing configuration, described the 3rd configuring request comprises the sign of described the first network interface and is the secondary route information of described the first network interface deletion; Described configuration module also is used for according to the mapping relations between the routing table of the sign of described the first network interface and the sign of described the first network interface, a described IP address and described the first network interface described secondary route information being deleted from the routing table of described the first network interface.
In conjunction with the possible implementation of the first of second aspect or second aspect or the possible implementation of the second of second aspect, in the third possible implementation of second aspect, the described network equipment also comprises: acquisition module, be used for generating and storing at described configuration module the sign of described the first network interface, after the mapping relations between the routing table of a described IP address and described the first network interface, sign according to source IP address and described first network interface of packet to be sent, mapping relations between the routing table of a described IP address and described the first network interface are obtained Third Road in the purpose IP matching addresses of described packet to be sent by information from the routing table of described the first network interface; Sending module is used for sending described packet to be sent from described Third Road by the network interface of information appointment.
In conjunction with the possible implementation of the second of the possible implementation of the first of second aspect or second aspect or second aspect or the third possible implementation of second aspect, described configuration module is used for the sign according to described the first network interface, direct-connected routing configuration corresponding to a described IP address comprised in the routing table of described the first network interface: described configuration module specifically is used for the sign according to described the first network interface, whether the routing table of judging described the first network interface exists, in judged result when being, direct-connected route corresponding to a described IP address directly is configured in the routing table of described the first network interface, and when the determination result is NO, create the routing table of described the first network interface, then the direct-connected routing configuration that a described IP address is corresponding is in the routing table of described the first network interface.
The 4th kind of possible implementation in conjunction with second aspect, in the 5th kind of possible implementation of second aspect, the described network equipment also comprises: creation module, be used for before described configuration module directly is configured to the routing table of described the first network interface with direct-connected route corresponding to a described IP address, in described network equipment startup or when having the I/O card to insert the described network equipment, create the routing table of described the first network interface.
Network interface information configuring methods and the network equipment that the embodiment of the invention provides, each network interface uses separately a routing table, when the request that receives is carried out the configuring request of IP address configuration to network interface, sign according to network interface in this configuring request, the direct-connected routing configuration that the IP address of request configuration is corresponding is in the routing table of this network interface, generate and store simultaneously the sign of this network interface, mapping relations between the IP address that disposes and the routing table of this network interface, for follow-up for this network interface configuration route and carry out Packet Generation etc. based on the routing table of this network interface condition is provided, because each network interface uses separately a routing table, also it doesn't matter even the route table items of different network interfaces clashes, therefore, need not again the configuration of network interface information is limited, be conducive to take full advantage of network address resources, improve the utilance of network address resources.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do one to the accompanying drawing of required use in embodiment or the description of the Prior Art and introduce simply, apparently, accompanying drawing in the following describes 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.
The flow chart of a kind of network interface information configuring methods that Fig. 1 provides for the embodiment of the invention;
A plurality of network interfaces that Fig. 2 provides for the embodiment of the invention and the corresponding relation schematic diagram between the routing table;
The flow chart of the another kind of network interface information configuring methods that Fig. 3 provides for the embodiment of the invention;
The flow chart of another network interface information configuring methods that Fig. 4 provides for the embodiment of the invention;
The flow chart of another network interface information configuring methods that Fig. 5 provides for the embodiment of the invention;
The structural representation of a kind of network equipment that Fig. 6 provides for the embodiment of the invention;
The structural representation of the another kind of network equipment that Fig. 7 provides for the embodiment of the invention;
The structural representation of another network equipment that Fig. 8 provides for the embodiment of the invention.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, 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 prior art, the routing iinformation of each network interface of the network equipment is configured in the same routing table, the route collision problem may occur in this, for example the IP address of a plurality of network interfaces of the network equipment is at the same network segment, the identical route table items in address that many clauses and subclauses are then just arranged in routing table, direct-connected route corresponding to these network interfaces for example, because the routing iinformation conflict can cause occuring can only have a port to be used to the forwarding data bag in a plurality of ports of routing iinformation conflict, other ports can't the forwarding data bag, might cause the package forward mistake.In order to overcome above-mentioned route collision problem, prior art proposes to limit by the configuration of various restrictive conditions to network interface information, thereby solves the method for route conflict, but this method can not take full advantage of network address resources.
In order to solve above-mentioned route collision problem and not affect the utilance of network address resources, following examples of the present invention have provided solution, the main thought of this solution is: each network interface uses separately a routing table, for each network interface, being the mapping relations between the routing table of the sign of safeguarding this network interface in this network interface configuration of IP address process, the IP address that disposes for this network interface and this network interface, dispose route and carry out the processing such as forwarding of packet for this network interface based on the mapping relations of safeguarding.Because each network interface uses separately a routing table, the forwarding of packet even the routing iinformation of different network interfaces exists conflict also not affect the forwarding of packet, has solved the problem of routing iinformation conflict based on different routing tables; In addition, owing to allow the routing iinformation of different port to have conflict, so that do not need the configuration of network interface information is limited, network address resources is fully used, thereby has improved the utilance of network address resources.
The flow chart of a kind of network interface information configuring methods that Fig. 1 provides for the embodiment of the invention.As shown in Figure 1, the method for present embodiment comprises:
Step 101, the network equipment receive the IP address configuration is carried out in request to the first network interface the first configuring request, this first configuring request comprises the sign of the first network interface and is an IP address of the first network interface configuration that the described network equipment comprises the first network interface and other network interfaces.
If step 102 an IP address is not identical with the IP address of described other network interfaces, the network equipment is according to the sign of the first network interface, the direct-connected routing configuration that the one IP address is corresponding in the routing table of the first network interface, generate and store the first network interface sign, be the mapping relations between the routing table of an IP address of the first network interface configuration and the first network interface.
In the present embodiment, the first network interface can be certain network interface on any network equipment with a plurality of network interfaces, for example can be management network port or service network port.The described network equipment can be any equipment with a plurality of network interfaces, such as memory device, server or router etc.
Optionally, the network equipment can provide interactive interface to the user, allows the user by this interactive interface each network interface on the network equipment to be configured.For example, the user can send by the interactive interface of the network equipment configuring request of the IP address of request configuration the first network interface to the network equipment.Optionally, the user can also pass through other equipment, and for example user's terminal equipment sends request to the configuring request of the first network interface configuration of IP address to the network equipment.Wherein, be the sign of the configuring request of the first network interface configuration of IP address the first network interface of carrying user's specified configuration and be the IP address of this first network interface configuration.In order distinguishing with follow-up other configuring request, the configuring request that is the first network interface configuration of IP address here to be called the first configuring request, and will to be called an IP address for the IP address of the first network interface configuration.
Optionally, the sign of the first network interface can be the numbering of the first network interface, but is not limited to this.The network equipment can distribute a unique numbering for each network interface, and the numbering of each network interface is as can be known to the user.
Concrete, the network equipment receives the IP address configuration is carried out in request to the first network interface the first configuring request.Then, from the first configuring request, obtain the sign of the first network interface and be an IP address of the first network interface configuration, determine the network interface of needs configuration of IP address according to the sign of the first network interface, then judge whether an IP address is identical with the IP address of other network interfaces, if the determination result is NO, illustrate that an IP address do not conflict with the IP address of other network interfaces, then with an IP address configuration in the routing table of the first network interface, meanwhile, generate the sign of the first network interface, be the mapping relations between the routing table of an IP address of the first network interface configuration and the first network interface, and store this mapping relations.
If an IP address is identical with the IP address of other network interfaces, illustrate that the IP address of an IP address and other network interfaces clashes, optional, the network equipment can be pointed out corresponding error message, such as pointing out IP address conflict etc.
Optionally, the network equipment generate the first network interface sign, be that the mode of the mapping relations between the routing table of an IP address of the first network interface configuration and the first network interface can be: the network equipment uses a mapping table, in mapping table the sign of corresponding stored the first network interface, be an IP address of the first network interface configuration and the information that is used for the routing table of sign the first network interface.Perhaps, the network equipment also can use different mapping tables, mapping table is stored the sign of the first network interface and is the mapping relations of an IP address of the first network interface configuration, and another mapping table is stored as the mapping relations of the routing table of an IP address of the first network interface configuration and the first network interface.
In an optional execution mode, when the network equipment was not identical with the IP address of other network interfaces that remove the first network interface in an IP address, according to the sign of the first network interface, the direct-connected routing configuration that an IP address is corresponding comprised to the process in the routing table of the first network interface:
The network equipment judges according to the sign of the first network interface whether the routing table of the first network interface exists; If judged result is yes, the direct-connected route that then network equipment is corresponding with an IP address directly is configured in the routing table of the first network interface; If the determination result is NO, then the network equipment at first creates the routing table of the first network interface, and then the direct-connected routing configuration that an IP address is corresponding is in the routing table of the first network interface.
In an optional execution mode, the network equipment is except creating in the process that is the first network interface configuration of IP address the routing table of the first network interface, can also be before being the first network interface configuration of IP address, for example can when the network equipment starts or when having the I/O card to insert the network equipment, create the routing table of the first network interface.Based on this, the network equipment before the routing table of the first network interface, can judge first whether the routing table of the first network interface exists in the direct-connected routing configuration that an IP address is corresponding.
In addition, the network equipment is that the process of the first network interface configuration of IP address can be to be the first network interface configuration of IP address for the first time, can also be to be the first network interface configuration of IP address again, again be in the situation of the first network interface configuration of IP address so, on the first network interface can because before configuration of IP address process and have routing table.Based on this, the network equipment before the routing table of the first network interface, can judge first whether the routing table of the first network interface exists in the direct-connected routing configuration that an IP address is corresponding.
Suppose to have on the network equipment n network interface, be respectively P0, P1, P2 ..., Pn; The corresponding routing table of each network interface, be respectively T0, T1, T2 ..., Tn, the method that then adopts present embodiment is for after each network interface configuration of IP address, the corresponding relation on the network equipment between network interface and the routing table as shown in Figure 2.
In an optional execution mode, as shown in Figure 3, described method also comprises after step 102:
Step 103, the network equipment receive second configuring request of asking the first network interface is carried out routing configuration, and this second configuring request comprises the sign of the first network interface and is the first routing iinformation that the first network interface adds.
Step 104, the network equipment according to the sign of the sign of the first network interface and the first network interface of storing, be the mapping relations between the routing table of an IP address of the first network interface configuration and the first network interface, the first routing iinformation is added in the routing table of the first network interface.
Be that the user can be the first network interface configuration route after the first network interface disposed an IP address and generates mapping relations between the routing table of sign, an IP address and the first network interface of the first network interface.For example, the user can to send by the interactive interface that the network equipment provides be the configuring request of the first network interface configuration route.Perhaps, to send to the network equipment be the configuring request of the first network interface configuration route to user's terminal equipment that also can use by oneself.Wherein, this configuring request comprises the sign of the first network interface and is the first routing iinformation that the first network interface adds.Here the configuring request that is the first network interface interpolation route is the second configuring request.
The network equipment receives the second configuring request, obtains the sign of the first network interface and be the first routing iinformation that the first network interface adds from the second configuring request, knows that according to the sign of the first network interface needs add the network interface of routing iinformation.Then, the network equipment is inquired about the mapping relations between the routing table of the IP address of sign, configuration of each network interface and network interface according to the sign of the first network interface, obtain the mapping relations between the routing table of sign, an IP address and the first network interface of the first network interface of sign correspondence of the first network interface, and then find the routing table of the first network interface, then the first routing iinformation is added in the routing table of the first network interface.
In an optional execution mode, as shown in Figure 4, after step 102, also comprise:
Step 105, the network equipment receive the 3rd configuring request of asking the first network interface is carried out routing configuration, and the 3rd configuring request comprises the sign of the first network interface and is the secondary route information of the first network interface deletion.
Step 106, the network equipment are deleted secondary route information according to the mapping relations between the routing table of sign, an IP address and first network interface of the sign of the first network interface and the first network interface from the routing table of the first network interface.
Be that the user can be the first network interface configuration route after the first network interface disposed an IP address and generates mapping relations between the routing table of sign, an IP address and the first network interface of the first network interface.For example, the user can to send by the interactive interface that the network equipment provides be the configuring request of the first network interface configuration route.Perhaps, to send to the network equipment be the configuring request of the first network interface configuration route to user's terminal equipment that also can use by oneself.Wherein, this configuring request comprises the sign of the first network interface and is the secondary route information of the first network interface deletion.Here will be the 3rd configuring request for the configuring request of the first network interface deletion route.
The network equipment receives the 3rd configuring request, obtains the sign of the first network interface and be the secondary route information of the first network interface deletion from the 3rd configuring request, knows the network interface of needs deletion routing iinformation according to the sign of the first network interface.Then, the network equipment is inquired about the mapping relations between the routing table of the IP address of sign, configuration of each network interface and network interface according to the sign of the first network interface, obtain the mapping relations between the routing table of sign, an IP address and the first network interface of the first network interface of sign correspondence of the first network interface, and then find the routing table of the first network interface, then secondary route information is deleted from the routing table of the first network interface.
Above-mentioned Fig. 3 and the process of the first network interface being carried out routing configuration of having described embodiment illustrated in fig. 4, this process comprise routing iinformation and the two kinds of situations of deletion routing iinformation of adding.
In an optional execution mode, as shown in Figure 5, described method also comprises after step 102:
Step 107, the network equipment be according to the mapping relations between the routing table of sign, an IP address and first network interface of the source IP address of packet to be sent and the first network interface, obtains Third Road in the purpose IP matching addresses of packet to be sent by information from the routing table of the first network interface.
Step 108, the network equipment send described packet to be sent from Third Road by the network interface of information appointment.
Concrete, when the network equipment need to send packet by the routing table of the first network interface, at first according to the mapping relations between the routing table of sign, an IP address and first network interface of the source IP address of packet to be sent and the first network interface, find the routing table of the first network interface, then the purpose IP address of packet is mated in the routing table of the first network interface, from the routing table of the first network interface, obtain Third Road in the purpose IP matching addresses of this packet to be sent by information; Then should be gone out by Packet Generation to be sent by the network interface of appointment the information from this Third Road.
In routing table, the corresponding route table items of routing iinformation.Article one, routing iinformation generally includes the information such as route destination address, gateway (direct-connected route does not have gateway), mask, network interface.
In this explanation, in said process, the network equipment can be with the routing table binding of an IP address and the first network interface, then in the process of the routing table that finds the first network interface according to the mapping relations between the routing table of sign, an IP address and first network interface of the first network interface, the network equipment can find according to the sign of the first network interface an IP address, and then finds the routing table of the first network interface according to an IP address.Perhaps, in some applications, the network equipment can directly be bound the sign of the first network interface and the routing table of the first network interface, then in the process of the routing table that finds the first network interface according to the mapping relations between the routing table of sign, an IP address and first network interface of the first network interface, the network equipment can directly find the routing table of the first network interface according to the sign of the first network interface.
By as seen above-mentioned, in embodiments of the present invention, each network interface uses separately a routing table, when the request that receives is carried out the configuring request of IP address configuration to network interface, sign according to network interface in this configuring request, the direct-connected routing configuration that the IP address of request configuration is corresponding is in the routing table of this network interface, generate and store simultaneously the sign of this network interface, mapping relations between the IP address that disposes and the routing table of this network interface, follow-up mapping relations based on safeguarding, be this network interface configuration route and the transmission etc. of carrying out packet based on the routing table of this network interface, because each network interface uses separately a routing table, also it doesn't matter even the route table items of different network interfaces clashes, the network equipment still can find correct network interface to send packet, therefore, need not again the configuration of network interface information is limited, be conducive to take full advantage of network address resources, improve the utilance of network address resources; In addition, owing to reduced restriction to the network interface information configuration, the route destination address of each network interface can be at the same network segment, and can the allocating default gateway to each network interface, has improved the flexibility that the network equipment is used.
The structural representation of a kind of network equipment that Fig. 6 provides for the embodiment of the invention.As shown in Figure 6, the network equipment of present embodiment comprises: receiver module 61 and configuration module 62.
Receiver module 61 is used for receiving first configuring request of asking the first network interface of the present embodiment network equipment is carried out the IP address configuration, and this first configuring request comprises the sign of the first network interface and is an IP address of the first network interface configuration.The network equipment of present embodiment comprises the first network interface and other network interfaces.
Configuration module 62, be connected with receiver module 61, be used for when not identical with the IP address of other network interfaces of the present embodiment network equipment except the first network interface in the IP address that receiver module 61 receives, sign according to the first network interface, the direct-connected routing configuration that the one IP address is corresponding generates and stores the mapping relations between the routing table of sign, an IP address and the first network interface of the first network interface in the routing table of the first network interface.
In an optional execution mode, receiver module 61 is also for after the mapping relations between the routing table of the sign, an IP address and the first network interface that generate and store the first network interface at configuration module 62, receive second configuring request of asking the first network interface is carried out routing configuration, this second configuring request comprises the sign of the first network interface and is the first routing iinformation that the first network interface adds.
Configuration module 62 also is used for the first routing iinformation being added in the routing table of the first network interface according to the mapping relations between the routing table of sign, an IP address and first network interface of the sign of the first network interface and the first network interface.
In an optional execution mode, receiver module 61 is also for after the mapping relations between the routing table of the sign, an IP address and the first network interface that generate and store the first network interface at configuration module 62, receive the 3rd configuring request of asking the first network interface is carried out routing configuration, the 3rd configuring request comprises the sign of the first network interface and is the secondary route information of the first network interface deletion.
Configuration module 62 also is used for according to the mapping relations between the routing table of sign, an IP address and first network interface of the sign of the first network interface and the first network interface secondary route information being deleted from the routing table of the first network interface.
In an optional execution mode, as shown in Figure 7, the network equipment of present embodiment also comprises: acquisition module 63 and sending module 64.
Acquisition module 63, be connected with configuration module 62, after the mapping relations between the routing table of the sign, an IP address and the first network interface that generate and store the first network interface at configuration module 62, according to the mapping relations between the routing table of sign, an IP address and first network interface of the source IP address of packet to be sent and the first network interface, from the routing table of the first network interface, obtain Third Road in the purpose IP matching addresses of packet to be sent by information.
Sending module 64 is connected with acquisition module 63, is used for the Third Road that obtains from acquisition module 63 and sends packet to be sent by the network interface of information appointment.
In an optional execution mode, the sign that configuration module 62 is used for according to the first network interface, the direct-connected routing configuration that the one IP address is corresponding comprises in the routing table of the first network interface: the configuration module 62 concrete signs that are used for according to the first network interface, whether the routing table of judging the first network interface exists, in judged result when being, the direct-connected route that the one IP address is corresponding directly is configured in the routing table of the first network interface, and when the determination result is NO, create the routing table of the first network interface, then the direct-connected routing configuration that an IP address is corresponding is in the routing table of the first network interface.
Based on above-mentioned, as shown in Figure 7, the network equipment of present embodiment also comprises: creation module 65.
Creation module 65, be connected with configuration module 62, be used for before the configuration module 62 direct-connected route that an IP address is corresponding directly is configured to the routing table of the first network interface, in the startup of the present embodiment network equipment or when having the I/O card to insert the present embodiment network equipment, create the routing table of the first network interface.
The network equipment that present embodiment provides has a plurality of network interfaces, and these network interfaces can be management network port or service network port, and the network equipment of present embodiment can be any equipment with a plurality of network interfaces, such as being router, memory device or server etc.
Each functional module of the network equipment that present embodiment provides can be used for the flow process of execution graph 1 or Fig. 3 or Fig. 4 or network interface information configuring methods shown in Figure 5, and its specific works principle repeats no more, and sees the description of embodiment of the method for details.
The network equipment that present embodiment provides, allow each network interface to use separately a routing table, when the request that receives is carried out the configuring request of IP address configuration to network interface, sign according to network interface in this configuring request, the direct-connected routing configuration that the IP address of request configuration is corresponding is in the routing table of this network interface, generate and store simultaneously the sign of this network interface, mapping relations between the IP address that disposes and the routing table of this network interface, follow-up mapping relations based on safeguarding, be this network interface configuration route and the transmission etc. of carrying out packet based on the routing table of this network interface, because each network interface uses separately a routing table, also it doesn't matter even the route table items of different network interfaces clashes, the network equipment still can find correct network interface to send packet, therefore, need not again the configuration of network interface information is limited, be conducive to take full advantage of network address resources, improve the utilance of network address resources; In addition, owing to reduced restriction to the network interface information configuration, the route destination address of each network interface can be at the same network segment, and can the allocating default gateway to each network interface, has improved the flexibility that the network equipment is used.
The structural representation of another network equipment that Fig. 8 provides for the embodiment of the invention.As shown in Figure 8, the network equipment of present embodiment comprises: communication interface 81, processor 82 and memory 83.
Communication interface 81 is used for receiving first configuring request of asking the first network interface of the present embodiment network equipment is carried out the IP address configuration, and this first configuring request comprises the sign of the first network interface and is an IP address of the first network interface configuration.The network equipment of present embodiment comprises the first network interface and other network interfaces.Optionally, communication interface 81 can be the arbitrary network interface on the present embodiment network equipment, for example can be that the first network interface can also be other network interfaces except the first network interface.
Memory 83 is used for depositing program.Particularly, program can comprise program code, and described program code comprises computer-managed instruction.Memory 83 may comprise the high-speed RAM memory, also may also comprise nonvolatile memory (non-volatile memory), for example at least one magnetic disc store.
Processor 82, be used for the program that execute store 83 is deposited, to be used for when not identical with the IP address of other network interfaces of the present embodiment network equipment except the first network interface in the IP address that communication interface 81 receives, sign according to the first network interface, the direct-connected routing configuration that the one IP address is corresponding generates and stores the mapping relations between the routing table of sign, an IP address and the first network interface of the first network interface in the routing table of the first network interface.
Processor 82 may be a central processing unit (Central Processing Unit, referred to as CPU), or specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), or be configured to implement one or more integrated circuits of the embodiment of the invention.
In an optional execution mode, communication interface 81 is also for after the mapping relations between the routing table of the sign, an IP address and the first network interface that generate and store the first network interface at processor 82, receive second configuring request of asking the first network interface is carried out routing configuration, this second configuring request comprises the sign of the first network interface and is the first routing iinformation that the first network interface adds.
Processor 82 also is used for the first routing iinformation being added in the routing table of the first network interface according to the mapping relations between the routing table of sign, an IP address and first network interface of the sign of the first network interface and the first network interface.
In an optional execution mode, communication interface 81 is also for after the mapping relations between the routing table of the sign, an IP address and the first network interface that generate and store the first network interface at processor 82, receive the 3rd configuring request of asking the first network interface is carried out routing configuration, the 3rd configuring request comprises the sign of the first network interface and is the secondary route information of the first network interface deletion.
Processor 82 also is used for according to the mapping relations between the routing table of sign, an IP address and first network interface of the sign of the first network interface and the first network interface secondary route information being deleted from the routing table of the first network interface.
In an optional execution mode, processor 82 also is used for after the mapping relations between the routing table of the sign that generates and stores the first network interface, an IP address and the first network interface, according to the mapping relations between the routing table of sign, an IP address and first network interface of the source IP address of packet to be sent and the first network interface, from the routing table of the first network interface, obtain Third Road in the purpose IP matching addresses of packet to be sent by information.
Communication interface 81 also is used for the Third Road that obtains from processor 82 and sends packet to be sent by the network interface of information appointment.
Optionally, the sign that processor 82 is used for according to the first network interface, the direct-connected routing configuration that the one IP address is corresponding comprises in the routing table of the first network interface: the processor 82 concrete signs that are used for according to the first network interface, whether the routing table of judging the first network interface exists, in judged result when being, the direct-connected route that the one IP address is corresponding directly is configured in the routing table of the first network interface, and when the determination result is NO, create the routing table of the first network interface, then the direct-connected routing configuration that an IP address is corresponding is in the routing table of the first network interface.
In addition, processor 82 also is used in the startup of the present embodiment network equipment or when the present embodiment network equipment inserts the I/O card, creating the routing table of the first network interface before the direct-connected route that an IP address is corresponding directly is configured to the routing table of the first network interface.
Optionally, if communication interface 81, processor 82 and memory 83 independent realizations, then communication interface 81, processor 82 and memory 83 can interconnect and finish mutual communicating by letter by bus.Described bus can be industry standard architecture (Industry Standard Architecture, referred to as ISA) bus, peripheral component interconnect (Peripheral Component, referred to as PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture is referred to as EISA) bus etc.Described bus can be divided into address bus, data/address bus, control bus etc.For ease of expression, only represent with a thick line among Fig. 8, but do not represent only to have the bus of a bus or a type.
If being integrated on the chip piece, communication interface 81, processor 82 and memory 83 realize that then communication interface 81, processor 82 and memory 83 can be finished mutual communicating by letter by internal interface.
The network equipment that present embodiment provides has a plurality of network interfaces, and these network interfaces can be management network port or service network port, and the network equipment of present embodiment can be any equipment with a plurality of network interfaces, such as being router, memory device or server etc.
The network equipment that present embodiment provides can be used for the flow process of execution graph 1 or Fig. 3 or Fig. 4 or network interface information configuring methods shown in Figure 5, and its specific works principle repeats no more, and sees the description of embodiment of the method for details.
The network equipment that present embodiment provides, allow each network interface to use separately a routing table, when the request that receives is carried out the configuring request of IP address configuration to network interface, sign according to network interface in this configuring request, the direct-connected routing configuration that the IP address of request configuration is corresponding is in the routing table of this network interface, generate and store simultaneously the sign of this network interface, mapping relations between the IP address that disposes and the routing table of this network interface, follow-up mapping relations based on safeguarding, be this network interface configuration route and the transmission etc. of carrying out packet based on the routing table of this network interface, because each network interface uses separately a routing table, also it doesn't matter even the route table items of different network interfaces clashes, the network equipment still can find correct network interface to send packet, therefore, need not again the configuration of network interface information is limited, be conducive to take full advantage of network address resources, improve the utilance of network address resources; In addition, owing to reduced restriction to the network interface information configuration, the route destination address of each network interface can be at the same network segment, and can the allocating default gateway to each network interface, has improved the flexibility that the network equipment is used.
One of ordinary skill in the art will appreciate that: all or part of step that realizes above-mentioned each embodiment of the method can be finished by the relevant hardware of program command.Aforesaid program can be stored in the computer read/write memory medium.This program is carried out the step that comprises above-mentioned each embodiment of the method when carrying out; And aforesaid storage medium comprises: the various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above each embodiment is not intended to limit only in order to technical scheme of the present invention to be described; Although with reference to aforementioned each embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment puts down in writing, and perhaps some or all of technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the scope of various embodiments of the present invention technical scheme.

Claims (12)

1. a network interface information configuring methods is characterized in that, comprising:
The network equipment receives the Internet protocol IP address configuration is carried out in request to the first network interface the first configuring request, described the first configuring request comprises the sign of described the first network interface and is an IP address of described the first network interface configuration that the described network equipment comprises described the first network interface and other network interfaces;
If a described IP address is not identical with the IP address of described other network interfaces, the described network equipment is according to the sign of described the first network interface, the direct-connected routing configuration that a described IP address is corresponding generates and stores the mapping relations between the routing table of the sign of described the first network interface, a described IP address and described the first network interface in the routing table of described the first network interface.
2. network interface information configuring methods according to claim 1 is characterized in that, the described network equipment comprises after generating and storing mapping relations between the routing table of the sign of described the first network interface, a described IP address and described the first network interface:
The described network equipment receives second configuring request of asking described the first network interface is carried out routing configuration, and described the second configuring request comprises the sign of described the first network interface and is the first routing iinformation that described the first network interface adds;
The described network equipment adds described the first routing iinformation in the routing table of described the first network interface to according to the mapping relations between the routing table of the sign of described the first network interface and the sign of described the first network interface, a described IP address and described the first network interface.
3. network interface information configuring methods according to claim 1 and 2 is characterized in that, the described network equipment comprises after generating and storing mapping relations between the routing table of the sign of described the first network interface, a described IP address and described the first network interface:
The described network equipment receives the 3rd configuring request of asking described the first network interface is carried out routing configuration, and described the 3rd configuring request comprises the sign of described the first network interface and is the secondary route information of described the first network interface deletion;
The described network equipment is deleted described secondary route information according to the mapping relations between the routing table of the sign of described the first network interface and the sign of described the first network interface, a described IP address and described the first network interface from the routing table of described the first network interface.
4. each described network interface information configuring methods is characterized in that according to claim 1-3, and the described network equipment comprises after generating and storing mapping relations between the routing table of the sign of described the first network interface, a described IP address and described the first network interface:
The described network equipment is according to the mapping relations between the routing table of the source IP address of packet to be sent and the sign of described the first network interface, a described IP address and described the first network interface, obtains Third Road in the purpose IP matching addresses of described packet to be sent by information from the routing table of described the first network interface;
The described network equipment sends described packet to be sent from described Third Road by the network interface of information appointment.
5. each described network interface information configuring methods is characterized in that according to claim 1-4, and the described network equipment comprises direct-connected routing configuration corresponding to a described IP address according to the sign of described the first network interface in the routing table of described the first network interface:
The described network equipment judges according to the sign of described the first network interface whether the routing table of described the first network interface exists;
If judged result is yes, the described network equipment directly is configured to direct-connected route corresponding to a described IP address in the routing table of described the first network interface;
If the determination result is NO, the described network equipment creates the routing table of described the first network interface, and then the direct-connected routing configuration that a described IP address is corresponding is in the routing table of described the first network interface.
6. network interface information configuring methods according to claim 5 is characterized in that, the described network equipment comprises before direct-connected route corresponding to a described IP address directly being configured in the routing table of described the first network interface:
The described network equipment creates the routing table of described the first network interface when starting or having the I/O card to insert in the described network equipment.
7. a network equipment is characterized in that, comprising:
Receiver module is used for receiving first configuring request of asking the first network interface of the described network equipment is carried out the Internet protocol IP address configuration, and described the first configuring request comprises the sign of described the first network interface and is an IP address of described the first network interface configuration;
Configuration module, be used for when not identical with the IP address of other network interfaces of the described network equipment except described the first network interface in a described IP address, sign according to described the first network interface, the direct-connected routing configuration that a described IP address is corresponding generates and stores the mapping relations between the routing table of the sign of described the first network interface, a described IP address and described the first network interface in the routing table of described the first network interface.
8. the network equipment according to claim 7, it is characterized in that, described receiver module is also for after the mapping relations between the routing table that generates and stores the sign of described the first network interface, a described IP address and described the first network interface at described configuration module, receive second configuring request of asking described the first network interface is carried out routing configuration, described the second configuring request comprises the sign of described the first network interface and is the first routing iinformation that described the first network interface adds;
Described configuration module also is used for according to the mapping relations between the routing table of the sign of described the first network interface and the sign of described the first network interface, a described IP address and described the first network interface described the first routing iinformation being added in the routing table of described the first network interface.
9. according to claim 7 or the 8 described network equipments, it is characterized in that, described receiver module is also for after the mapping relations between the routing table that generates and stores the sign of described the first network interface, a described IP address and described the first network interface at described configuration module, receive the 3rd configuring request of asking described the first network interface is carried out routing configuration, described the 3rd configuring request comprises the sign of described the first network interface and is the secondary route information of described the first network interface deletion;
Described configuration module also is used for according to the mapping relations between the routing table of the sign of described the first network interface and the sign of described the first network interface, a described IP address and described the first network interface described secondary route information being deleted from the routing table of described the first network interface.
10. each described network equipment is characterized in that according to claim 7-9, also comprises:
Acquisition module, after the mapping relations between the routing table that generates and stores the sign of described the first network interface, a described IP address and described the first network interface at described configuration module, according to the mapping relations between the routing table of the source IP address of packet to be sent and the sign of described the first network interface, a described IP address and described the first network interface, from the routing table of described the first network interface, obtain Third Road in the purpose IP matching addresses of described packet to be sent by information;
Sending module is used for sending described packet to be sent from described Third Road by the network interface of information appointment.
11. each described network equipment is characterized in that according to claim 7-10, described configuration module is used for the sign according to described the first network interface, and direct-connected routing configuration corresponding to a described IP address comprised in the routing table of described the first network interface:
Described configuration module specifically is used for the sign according to described the first network interface, whether the routing table of judging described the first network interface exists, in judged result when being, direct-connected route corresponding to a described IP address directly is configured in the routing table of described the first network interface, and when the determination result is NO, create the routing table of described the first network interface, then the direct-connected routing configuration that a described IP address is corresponding is in the routing table of described the first network interface.
12. the network equipment according to claim 11 is characterized in that, also comprises:
Creation module, be used for before described configuration module directly is configured to the routing table of described the first network interface with direct-connected route corresponding to a described IP address, in described network equipment startup or when having the I/O card to insert the described network equipment, create the routing table of described the first network interface.
CN201210464440.3A 2012-11-16 2012-11-16 Network interface information configuring methods and the network equipment Active CN102938711B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210464440.3A CN102938711B (en) 2012-11-16 2012-11-16 Network interface information configuring methods and the network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210464440.3A CN102938711B (en) 2012-11-16 2012-11-16 Network interface information configuring methods and the network equipment

Publications (2)

Publication Number Publication Date
CN102938711A true CN102938711A (en) 2013-02-20
CN102938711B CN102938711B (en) 2015-08-19

Family

ID=47697583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210464440.3A Active CN102938711B (en) 2012-11-16 2012-11-16 Network interface information configuring methods and the network equipment

Country Status (1)

Country Link
CN (1) CN102938711B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107026795A (en) * 2016-02-02 2017-08-08 上海格尔软件股份有限公司 A kind of method for returning bag extremely source network interface based on iptables and policybased routing
CN107707420A (en) * 2017-08-04 2018-02-16 郑州云海信息技术有限公司 A kind of method of testing of netting twine plug stability
CN110113202A (en) * 2019-04-30 2019-08-09 新华三信息安全技术有限公司 A kind of IPsec diagnostic method, device and local device
CN111478824A (en) * 2020-03-20 2020-07-31 苏州浪潮智能科技有限公司 Network card power consumption testing method, device and system
CN113746741A (en) * 2021-08-20 2021-12-03 苏州浪潮智能科技有限公司 Setting method, device, equipment and readable medium of storage equipment network

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101710864A (en) * 2009-11-23 2010-05-19 中兴通讯股份有限公司 Collocation method and device for multi-gateway Linux server
CN102348107A (en) * 2011-10-27 2012-02-08 北京汉邦高科数字技术股份有限公司 Method for realizing plug and play of network monitoring video
WO2012103938A1 (en) * 2011-02-01 2012-08-09 Telefonaktiebolaget L M Ericsson (Publ) Routing traffic towards a mobile node

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101710864A (en) * 2009-11-23 2010-05-19 中兴通讯股份有限公司 Collocation method and device for multi-gateway Linux server
WO2012103938A1 (en) * 2011-02-01 2012-08-09 Telefonaktiebolaget L M Ericsson (Publ) Routing traffic towards a mobile node
CN102348107A (en) * 2011-10-27 2012-02-08 北京汉邦高科数字技术股份有限公司 Method for realizing plug and play of network monitoring video

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘巍等: "MD5500数据配置不当故障的分析", 《通信管理与技术(运行维护)》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107026795A (en) * 2016-02-02 2017-08-08 上海格尔软件股份有限公司 A kind of method for returning bag extremely source network interface based on iptables and policybased routing
CN107707420A (en) * 2017-08-04 2018-02-16 郑州云海信息技术有限公司 A kind of method of testing of netting twine plug stability
CN107707420B (en) * 2017-08-04 2021-04-09 郑州云海信息技术有限公司 Method for testing network cable plugging and unplugging stability
CN110113202A (en) * 2019-04-30 2019-08-09 新华三信息安全技术有限公司 A kind of IPsec diagnostic method, device and local device
CN110113202B (en) * 2019-04-30 2022-02-25 新华三信息安全技术有限公司 IPsec diagnosis method and device and home terminal equipment
CN111478824A (en) * 2020-03-20 2020-07-31 苏州浪潮智能科技有限公司 Network card power consumption testing method, device and system
CN113746741A (en) * 2021-08-20 2021-12-03 苏州浪潮智能科技有限公司 Setting method, device, equipment and readable medium of storage equipment network

Also Published As

Publication number Publication date
CN102938711B (en) 2015-08-19

Similar Documents

Publication Publication Date Title
CN107579951B (en) Service data processing method, service processing method and equipment
CN102938711A (en) Internet access information configuration method and network equipment
CN103117929A (en) Communication method and system based on PCIe (peripheral component interconnect express) data exchange
US8903972B2 (en) Method and apparatus for sharing contents using information of group change in content oriented network environment
CN102316043A (en) Port virtualization method, switch and communication system
CN101409670A (en) Management component transport protocol interconnect filtering and routing
CN102035735A (en) Device and method for providing forwarding and qos information
CN102792651B (en) At the device of MAC layer application service path Route Selection
CN104468401A (en) Message processing method and device
CN105635332A (en) Method for multiple virtual machines to share IP of single external network
CN107040393B (en) Route management method and equipment
CN111010329A (en) Message transmission method and device
CN115102896B (en) Data broadcasting method, broadcasting accelerator, NOC, SOC and electronic equipment
CN108259348B (en) Message transmission method and device
CN111064786B (en) Account identifier management method and device
CN112910776B (en) Data forwarding method, device, equipment and medium
CN101547209B (en) Method and device for updating information table
CN106100953B (en) PCIe device shares the generation method of network, apparatus and system
CN102821055B (en) Method for inter-board communication
CN111679918B (en) Message transmission method and device
CN111130978B (en) Network traffic forwarding method and device, electronic equipment and machine-readable storage medium
CN104539538A (en) IP address matching method and data package forwarding method of router
CN101442547B (en) Method, system and equipment for processing message
CN114257545B (en) Message forwarding method and device
CN105610924A (en) Multi-node connection method and device of cloud desktop

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