CN113746741B - Storage device network setting method, device, equipment and readable medium - Google Patents

Storage device network setting method, device, equipment and readable medium Download PDF

Info

Publication number
CN113746741B
CN113746741B CN202110962334.7A CN202110962334A CN113746741B CN 113746741 B CN113746741 B CN 113746741B CN 202110962334 A CN202110962334 A CN 202110962334A CN 113746741 B CN113746741 B CN 113746741B
Authority
CN
China
Prior art keywords
service
cluster
route
storage device
routing
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
Application number
CN202110962334.7A
Other languages
Chinese (zh)
Other versions
CN113746741A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202110962334.7A priority Critical patent/CN113746741B/en
Publication of CN113746741A publication Critical patent/CN113746741A/en
Application granted granted Critical
Publication of CN113746741B publication Critical patent/CN113746741B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a setting method of a storage device network, which comprises the following steps: in response to detecting that a storage device in the cluster starts to operate, judging whether the storage device is a configuration node of the cluster; if the storage equipment is a configuration node of a cluster, respectively setting a cluster IP and a service IP on a first port of the storage equipment; setting service IP on other ports of the storage device in sequence; wherein the cluster IP and the service IP are distinguished by network names and labels. The invention also discloses a setting device of the storage device network, a computer device and a readable storage medium. The invention avoids the route corresponding to different network ports from generating interference by adding the route and the route rule of the separation cluster IP, the service IP and the service IP, and creates, deletes and rebuilds the route list by naming the route list corresponding to the network ports with the same name, thereby realizing that networks are not interfered with each other.

Description

Storage device network setting method, device, equipment and readable medium
Technical Field
The present invention relates to the field of network management technologies, and in particular, to a method, an apparatus, a device, and a readable medium for setting a storage device network.
Background
In a computer network, the routing table is a spreadsheet or class database stored in a router or networked computer. The routing table stores paths that point to specific network addresses. The routing table contains topology information of the periphery of the network. The main objective of the routing table set-up is to implement routing protocols and static routing.
Currently, the main stream storage device or server sets an IP address through each port, and sets a plurality of IP addresses through a plurality of ports, so as to realize different network ports to bear different services or management functions. The routing and the routing rules are set according to the specific IP address of the port, so that the operation is complex and the error is easy to occur.
Disclosure of Invention
Therefore, an object of the embodiments of the present invention is to provide a method, an apparatus, a device, and a readable medium for setting a storage device network, which avoid interference generated by routes corresponding to different network ports by adding routes and routing rules for separating a cluster IP, a service IP, and create, delete, and reconstruct a routing table by naming a routing table corresponding to the network port with the same name, so as to realize that networks do not interfere with each other.
Based on the above object, an aspect of the embodiments of the present invention provides a method for setting a storage device network, including the following steps: in response to detecting that a storage device in the cluster starts to operate, judging whether the storage device is a configuration node of the cluster; if the storage equipment is a configuration node of a cluster, respectively setting a cluster IP and a service IP on a first port of the storage equipment; setting service IP on other ports of the storage device in sequence; wherein the cluster IP and the service IP are distinguished by network names and labels.
In some embodiments, the method further comprises: if the storage device is not a configuration node of the cluster, setting a service IP on a first port of the storage device.
In some embodiments, setting the cluster IP and the service IP on the first port of the storage device, respectively, includes: setting a cluster IP as a first address on a first port of the storage equipment; searching a routing rule corresponding to the first address in a routing table, and clearing the corresponding routing rule; searching a route corresponding to the first address in a route table, and clearing the corresponding route; and creating a corresponding route and a route rule based on the first address.
In some embodiments, setting the cluster IP and the service IP on the first port of the storage device, respectively, includes: setting a service IP as a second address on a first port of the storage device; searching a routing rule corresponding to the second address in a routing table, and clearing the corresponding routing rule; searching a route corresponding to the second address in a route table, and clearing the corresponding route; and creating a corresponding route and a route rule based on the second address.
In some embodiments, sequentially setting the service IP on the other ports of the storage device includes: setting a service IP as a third address on a second port of the storage device; searching a routing rule corresponding to the third address in a routing table, and clearing the corresponding routing rule; searching a route corresponding to the third address in a route table, and clearing the corresponding route; and creating a corresponding route and a route rule based on the third address.
In some embodiments, the method further comprises: setting a service IP as a service address on an idle port of the storage device in response to receiving a new service IP setting command; searching a routing rule corresponding to the service address in a routing table, and clearing the corresponding routing rule; searching a route corresponding to the service address in a route table, and clearing the corresponding route; and creating a corresponding route and a route rule based on the service address.
In some embodiments, distinguishing the cluster IP from the service IP by network name and label includes: the cluster IP and the service IP respectively set respective routing rules based on different network names and labels.
In another aspect of the embodiment of the present invention, there is also provided a device for setting a storage device network, including: the first module is configured to respond to the detection that the storage equipment in the cluster starts to operate, and judge whether the storage equipment is a configuration node of the cluster; the second module is configured to set a cluster IP and a service IP on a first port of the storage device if the storage device is a configuration node of the cluster; the third module is configured to set service IP on other ports of the storage device in sequence; wherein the cluster IP and the service IP are distinguished by network names and labels.
In still another aspect of the embodiment of the present invention, there is also provided a computer apparatus, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions when executed by the processor performing steps of a method comprising: in response to detecting that a storage device in the cluster starts to operate, judging whether the storage device is a configuration node of the cluster; if the storage equipment is a configuration node of a cluster, respectively setting a cluster IP and a service IP on a first port of the storage equipment; setting service IP on other ports of the storage device in sequence; wherein the cluster IP and the service IP are distinguished by network names and labels.
In some embodiments, the steps further comprise: if the storage device is not a configuration node of the cluster, setting a service IP on a first port of the storage device.
In some embodiments, setting the cluster IP and the service IP on the first port of the storage device, respectively, includes: setting a cluster IP as a first address on a first port of the storage equipment; searching a routing rule corresponding to the first address in a routing table, and clearing the corresponding routing rule; searching a route corresponding to the first address in a route table, and clearing the corresponding route; and creating a corresponding route and a route rule based on the first address.
In some embodiments, setting the cluster IP and the service IP on the first port of the storage device, respectively, includes: setting a service IP as a second address on a first port of the storage device; searching a routing rule corresponding to the second address in a routing table, and clearing the corresponding routing rule; searching a route corresponding to the second address in a route table, and clearing the corresponding route; and creating a corresponding route and a route rule based on the second address.
In some embodiments, sequentially setting the service IP on the other ports of the storage device includes: setting a service IP as a third address on a second port of the storage device; searching a routing rule corresponding to the third address in a routing table, and clearing the corresponding routing rule; searching a route corresponding to the third address in a route table, and clearing the corresponding route; and creating a corresponding route and a route rule based on the third address.
In some embodiments, the steps further comprise: setting a service IP as a service address on an idle port of the storage device in response to receiving a new service IP setting command; searching a routing rule corresponding to the service address in a routing table, and clearing the corresponding routing rule; searching a route corresponding to the service address in a route table, and clearing the corresponding route; and creating a corresponding route and a route rule based on the service address.
In some embodiments, distinguishing the cluster IP from the service IP by network name and label includes: the cluster IP and the service IP respectively set respective routing rules based on different network names and labels.
In yet another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium storing a computer program which, when executed by a processor, implements the method steps as described above.
The invention has the following beneficial technical effects: by adding the routing and routing rules of the separation cluster IP, the service IP and the service IP, the interference generated by the routing corresponding to different network ports is avoided, and the creation, deletion and reconstruction of the routing table are performed by naming the routing table corresponding to the network ports with the same name, so that the mutual noninterference of the networks is realized.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are necessary for the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention and that other embodiments may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an embodiment of a method for setting up a storage device network according to the present invention;
FIG. 2 is a schematic diagram of an embodiment of a storage device network configuration apparatus according to the present invention;
FIG. 3 is a schematic diagram of an embodiment of a computer device provided by the present invention;
fig. 4 is a schematic diagram of an embodiment of a computer readable storage medium provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention will be described in further detail with reference to the accompanying drawings.
It should be noted that, in the embodiments of the present invention, all the expressions "first" and "second" are used to distinguish two entities with the same name but different entities or different parameters, and it is noted that the "first" and "second" are only used for convenience of expression, and should not be construed as limiting the embodiments of the present invention, and the following embodiments are not described one by one.
Based on the above object, in a first aspect of the embodiments of the present invention, an embodiment of a method for setting up a storage device network is provided. Fig. 1 is a schematic diagram of an embodiment of a method for setting a storage device network according to the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
s01, judging whether the storage equipment is a configuration node of the cluster or not in response to the fact that the storage equipment in the cluster starts to operate;
s02, if the storage equipment is a configuration node of a cluster, respectively setting a cluster IP and a service IP on a first port of the storage equipment; and
s03, setting service IP on other ports of the storage device in sequence;
wherein the cluster IP and the service IP are distinguished by network names and labels.
In this embodiment, in the network technology, a network Port (Port) has two meanings: a port in a physical sense, such as an ADSL Modem, a hub, a switch, an interface for connecting other network devices, such as an RJ-45 port, an SC port, and the like; the second is a port in a logical sense, generally referred to as a port in the TCP/IP protocol, the port number ranges from 0 to 65535, such as 80 ports for browsing web services, 21 ports for FTP services, and so on. The network port mentioned in the method refers to the former, and refers to an ethernet (ethernet) port in a physical sense. Ethernet is currently the most widely used communication method for local area networks, and is also a protocol. The ethernet protocol defines a series of software and hardware standards that connect different computer devices together. The basic elements of the Ethernet equipment networking include switches, routers, hubs, optical fibers, common network cables, ethernet protocols and communication rules. The port of the network data connection in the ethernet is the ethernet interface. In a local area network, there are two IP addresses, one being a network number and one being a broadcast address. The network number is an address for three-layer addressing, which represents the entire network itself; the other is a broadcast address, which represents all hosts of the network. The network number is the first address in the network segment and the broadcast address is the last address in the network segment, both of which are not configurable on the host computer. For example, in a network segment of 192.168.0.0, 255.255.255.0, the network number is 192.168.0.0, and the broadcast address is 192.168.0.255. Thus, in a local area network, there are two fewer addresses (network number, broadcast address) than there are within the network segment, which addresses are called host addresses, which can be deployed in the computer. In the above example, only 192.168.0.1 to 192.168.0.254 host addresses can be configured on the computer.
In this embodiment, for a multi-control cluster, the management network and the traffic network need to be separated. After the management network is set, the corresponding routing rules and routing table information of the management network need to be set. The routing table and the routing table rule are independently set according to each port, so that network faults caused by routing conflicts are avoided. The management network is set in an alias mode, so that management is convenient. Meanwhile, one network port is provided with two ip addresses, so that the network ports are saved.
In this embodiment, when the storage device operates, a corresponding management network address needs to be set, where the management network address includes a cluster IP, a service IP, and a service IP. The cluster IP and the service IP are set on the first port of the device, and are distinguished by a network name + a label. The service IP is set in turn on the following ports. For a dual control cluster, cluster IP is configured only on the configuration node. The service IP is configured on each controller.
In some embodiments of the invention, the method further comprises: if the storage device is not a configuration node of the cluster, setting a service IP on a first port of the storage device.
In some embodiments of the present invention, setting the cluster IP and the service IP on the first port of the storage device, respectively, includes: setting a cluster IP as a first address on a first port of a storage device; searching a routing rule corresponding to the first address in the routing table, and clearing the corresponding routing rule; searching a route corresponding to the first address in a route table, and clearing the corresponding route; corresponding routing and routing rules are created based on the first address.
In this embodiment, after the cluster IP is set, the IP address is set to be the IP address of eth:20. In the ip rule, matching a routing rule in the ip rule with a routing table name of eth0, and clearing the corresponding ip rule; according to the cluster IP setting, matching the IP route with a route table name of eth0 in the IP route, and clearing the corresponding IP route; creating a routing table named eth0, creating a route for the corresponding cluster ip, and setting a command on the default route eth0 as follows:
Ip route add gateway dev eth0 proto kernel scope link src ip_addr
Ip route add default via gateway dev eth0
a routing rule of prio 100 is created, corresponding to the cluster ip_addr, matching the routing of table eth 0.
In some embodiments of the present invention, setting the cluster IP and the service IP on the first port of the storage device, respectively, includes: setting a service IP as a second address on a first port of the storage device; searching a routing rule corresponding to the second address in the routing table, and clearing the corresponding routing rule; searching a route corresponding to the second address in the route table, and clearing the corresponding route; corresponding routing and routing rules are created based on the second address.
In this embodiment, when setting the service IP, the IP route is matched with the IP route in the sat as the route table, and the corresponding IP route is cleared. According to the service IP setting, matching the IP route with the name of the route table being the IP route in sat in the IP route, and clearing the corresponding IP route. A routing table named sat is created and a route corresponding to the service IP is created. And the command on the default route eth0 is set as follows:
Ip route add gateway dev eth0 proto kernel scope link src ip_addr
Ip route add default via gateway dev eth0 proto kernel scope link src ip_addr
a routing rule with prio 100 is created, corresponding to the cluster ip_addr, and the routing route matching table sat.
In some embodiments of the present invention, sequentially setting the service IP on the other ports of the storage device includes: setting a service IP as a third address on a second port of the storage device; searching a routing rule corresponding to the third address in the routing table, and clearing the corresponding routing rule; searching a route corresponding to the third address in the route table, and clearing the corresponding route; corresponding routing and routing rules are created based on the third address.
In this embodiment, if the service IP is continuously configured, when the service IP is set, IP routes in the port corresponding to the IP route table name, such as the IP route in eth1, are matched, and the corresponding IP routes are cleared. And matching the IP route with the route table name of eth1 in the IP route according to the service IP setting, and clearing the corresponding IP route. Creating a routing table named eth1, creating a route corresponding to the service IP, and commanding as follows:
Ip route add gateway dev eth1 proto kernel scope link src ip_addr
a routing rule of prio 200 is created, corresponding to cluster ip_addr, matching the routing of table eth 1.
In this embodiment, if the service IP is continuously configured by using the subsequent network port, the above steps are looped.
In some embodiments of the invention, the method further comprises: responding to receiving a new service IP setting command, and setting a service IP as a service address on an idle port of the storage device; searching a routing rule corresponding to the service address in the routing table, and clearing the corresponding routing rule; searching a route corresponding to the service address in the route table, and clearing the corresponding route; corresponding routing and routing rules are created based on the traffic addresses.
In some embodiments of the invention, distinguishing cluster IP from service IP by network name and label includes: the cluster IP and the service IP set respective routing rules based on different network names and labels, respectively.
It should be noted that, in the foregoing embodiments of the storage device network configuration method, the steps may be intersected, replaced, added and deleted, so that the configuration method of the storage device network with the reasonable permutation and combination transformation should also belong to the protection scope of the present invention, and the protection scope of the present invention should not be limited to the embodiments.
Based on the above object, a second aspect of the embodiments of the present invention proposes a setting apparatus for a storage device network. Fig. 2 is a schematic diagram of an embodiment of a setting apparatus of a storage device network according to the present invention. As shown in fig. 2, the embodiment of the invention includes the following modules: a first module S11, configured to determine whether the storage device is a configuration node of the cluster in response to detecting that the storage device in the cluster starts to operate; a second module S12, configured to set a cluster IP and a service IP on a first port of the storage device if the storage device is a configuration node of the cluster; a third module S13, configured to set service IP on other ports of the storage device in sequence; wherein the cluster IP and the service IP are distinguished by network names and labels.
Based on the above object, a third aspect of the embodiments of the present invention proposes a computer device. Fig. 3 is a schematic diagram of an embodiment of a computer device provided by the present invention. As shown in fig. 3, an embodiment of the present invention includes the following means: at least one processor S21; and a memory S22, the memory S22 storing computer instructions S23 executable on the processor, the instructions when executed by the processor performing the steps of the method comprising: in response to detecting that the storage equipment in the cluster starts to operate, judging whether the storage equipment is a configuration node of the cluster or not; if the storage equipment is a configuration node of the cluster, respectively setting a cluster IP and a service IP on a first port of the storage equipment; setting service IP on other ports of the storage device in sequence; wherein the cluster IP and the service IP are distinguished by network names and labels.
In some embodiments of the invention, the steps further comprise: if the storage device is not a configuration node of the cluster, setting a service IP on a first port of the storage device.
In some embodiments of the present invention, setting the cluster IP and the service IP on the first port of the storage device, respectively, includes: setting a cluster IP as a first address on a first port of a storage device; searching a routing rule corresponding to the first address in the routing table, and clearing the corresponding routing rule; searching a route corresponding to the first address in a route table, and clearing the corresponding route; corresponding routing and routing rules are created based on the first address.
In some embodiments of the present invention, setting the cluster IP and the service IP on the first port of the storage device, respectively, includes: setting a service IP as a second address on a first port of the storage device; searching a routing rule corresponding to the second address in the routing table, and clearing the corresponding routing rule; searching a route corresponding to the second address in the route table, and clearing the corresponding route; corresponding routing and routing rules are created based on the second address.
In some embodiments of the present invention, sequentially setting the service IP on the other ports of the storage device includes: setting a service IP as a third address on a second port of the storage device; searching a routing rule corresponding to the third address in the routing table, and clearing the corresponding routing rule; searching a route corresponding to the third address in the route table, and clearing the corresponding route; corresponding routing and routing rules are created based on the third address.
In some embodiments of the invention, the steps further comprise: responding to receiving a new service IP setting command, and setting a service IP as a service address on an idle port of the storage device; searching a routing rule corresponding to the service address in the routing table, and clearing the corresponding routing rule; searching a route corresponding to the service address in the route table, and clearing the corresponding route; corresponding routing and routing rules are created based on the traffic addresses.
In some embodiments of the invention, distinguishing cluster IP from service IP by network name and label includes: the cluster IP and the service IP set respective routing rules based on different network names and labels, respectively.
The invention also provides a computer readable storage medium. Fig. 4 is a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. As shown in fig. 4, the computer-readable storage medium S31 stores a computer program S32 that, when executed by a processor, performs the method as described above.
Finally, it should be noted that, as will be understood by those skilled in the art, implementing all or part of the above-described methods in the embodiments may be implemented by a computer program to instruct related hardware, and the program of the method for setting a storage device network may be stored in a computer readable storage medium, where the program may include the flow of the embodiments of the above-described methods when executed. The storage medium of the program may be a magnetic disk, an optical disk, a read-only memory (ROM), a random-access memory (RAM), or the like. The computer program embodiments described above may achieve the same or similar effects as any of the method embodiments described above.
Furthermore, the method disclosed according to the embodiment of the present invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. The above-described functions defined in the methods disclosed in the embodiments of the present invention are performed when the computer program is executed by a processor.
Furthermore, the above-described method steps and system units may also be implemented using a controller and a computer-readable storage medium storing a computer program for causing the controller to implement the above-described steps or unit functions.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general purpose or special purpose computer or general purpose or special purpose processor. Further, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that as used herein, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The foregoing embodiment of the present invention has been disclosed with reference to the number of embodiments for the purpose of description only, and does not represent the advantages or disadvantages of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, and the program may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will appreciate that: the above discussion of any embodiment is merely exemplary and is not intended to imply that the scope of the disclosure of embodiments of the invention, including the claims, is limited to such examples; combinations of features of the above embodiments or in different embodiments are also possible within the idea of an embodiment of the invention, and many other variations of the different aspects of the embodiments of the invention as described above exist, which are not provided in detail for the sake of brevity. Therefore, any omission, modification, equivalent replacement, improvement, etc. of the embodiments should be included in the protection scope of the embodiments of the present invention.

Claims (10)

1. A method for setting up a network of storage devices, comprising the steps of:
in response to detecting that a storage device in the cluster starts to operate, judging whether the storage device is a configuration node of the cluster;
if the storage equipment is a configuration node of a cluster, respectively setting a cluster IP and a service IP on a first port of the storage equipment; and
setting service IP on other ports of the storage device in sequence;
wherein the cluster IP and the service IP are distinguished by network names and labels, and
and searching the routing rules and the routing corresponding to the cluster IP, the service IP and the service IP in a routing table respectively, clearing the corresponding routing rules and the routing, and then creating the corresponding routing and the routing rules based on the cluster IP, the service IP and the service IP respectively.
2. The method for setting up a storage device network according to claim 1, further comprising:
if the storage device is not a configuration node of the cluster, setting a service IP on a first port of the storage device.
3. The method of setting up a storage device network according to claim 1, wherein setting up a cluster IP and a service IP on the first port of the storage device, respectively, comprises:
setting a cluster IP as a first address on a first port of the storage equipment;
searching a routing rule corresponding to the first address in a routing table, and clearing the corresponding routing rule;
searching a route corresponding to the first address in a route table, and clearing the corresponding route;
and creating a corresponding route and a route rule based on the first address.
4. The method of setting up a storage device network according to claim 1, wherein setting up a cluster IP and a service IP on the first port of the storage device, respectively, comprises:
setting a service IP as a second address on a first port of the storage device;
searching a routing rule corresponding to the second address in a routing table, and clearing the corresponding routing rule;
searching a route corresponding to the second address in a route table, and clearing the corresponding route;
and creating a corresponding route and a route rule based on the second address.
5. The method for setting up a storage device network according to claim 1, wherein sequentially setting up service IPs on other ports of the storage device comprises:
setting a service IP as a third address on a second port of the storage device;
searching a routing rule corresponding to the third address in a routing table, and clearing the corresponding routing rule;
searching a route corresponding to the third address in a route table, and clearing the corresponding route;
and creating a corresponding route and a route rule based on the third address.
6. The method for setting up a storage device network according to claim 5, further comprising:
setting a service IP as a service address on an idle port of the storage device in response to receiving a new service IP setting command;
searching a routing rule corresponding to the service address in a routing table, and clearing the corresponding routing rule;
searching a route corresponding to the service address in a route table, and clearing the corresponding route;
and creating a corresponding route and a route rule based on the service address.
7. The storage device network setting method according to claim 1, wherein the distinguishing between the cluster IP and the service IP by network names and labels comprises:
the cluster IP and the service IP respectively set respective routing rules based on different network names and labels.
8. A storage device network setting apparatus, comprising:
the first module is configured to respond to the detection that the storage equipment in the cluster starts to operate, and judge whether the storage equipment is a configuration node of the cluster;
the second module is configured to set a cluster IP and a service IP on a first port of the storage device if the storage device is a configuration node of the cluster; and
a third module configured to sequentially set service IPs on other ports of the storage device;
wherein the cluster IP and the service IP are distinguished by network names and labels, and
and searching the routing rules and the routing corresponding to the cluster IP, the service IP and the service IP in a routing table respectively, clearing the corresponding routing rules and the routing, and then creating the corresponding routing and the routing rules based on the cluster IP, the service IP and the service IP respectively.
9. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, which when executed by the processor, perform the steps of the method of any one of claims 1-7.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method of any one of claims 1-7.
CN202110962334.7A 2021-08-20 2021-08-20 Storage device network setting method, device, equipment and readable medium Active CN113746741B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110962334.7A CN113746741B (en) 2021-08-20 2021-08-20 Storage device network setting method, device, equipment and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110962334.7A CN113746741B (en) 2021-08-20 2021-08-20 Storage device network setting method, device, equipment and readable medium

Publications (2)

Publication Number Publication Date
CN113746741A CN113746741A (en) 2021-12-03
CN113746741B true CN113746741B (en) 2023-07-18

Family

ID=78732020

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110962334.7A Active CN113746741B (en) 2021-08-20 2021-08-20 Storage device network setting method, device, equipment and readable medium

Country Status (1)

Country Link
CN (1) CN113746741B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111464370A (en) * 2020-05-18 2020-07-28 珠海格力电器股份有限公司 Network distribution device, Internet of things control system and network distribution method thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3885585B2 (en) * 2001-12-28 2007-02-21 松下電器産業株式会社 Router device and network system using the same
CN102938711B (en) * 2012-11-16 2015-08-19 华为技术有限公司 Network interface information configuring methods and the network equipment
CN109039764B (en) * 2018-08-28 2021-07-20 郑州云海信息技术有限公司 Network parameter configuration method of distributed storage system
US11025587B2 (en) * 2018-10-31 2021-06-01 EMC IP Holding Company LLC Distributed network internet protocol (IP) address management in a coordinated system
CN111736955B (en) * 2020-06-29 2023-01-10 苏州浪潮智能科技有限公司 Data storage method, device and equipment and readable storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111464370A (en) * 2020-05-18 2020-07-28 珠海格力电器股份有限公司 Network distribution device, Internet of things control system and network distribution method thereof

Also Published As

Publication number Publication date
CN113746741A (en) 2021-12-03

Similar Documents

Publication Publication Date Title
US7385939B2 (en) Network management apparatus and method for determining the topology of a network
US7027411B1 (en) Method and system for identifying and processing changes to a network topology
US6944130B1 (en) Method and apparatus for determining a layer 2 path in a switched network
US7593352B2 (en) Discovering MPLS VPN services in a network
US5878232A (en) Dynamic reconfiguration of network device's virtual LANs using the root identifiers and root ports determined by a spanning tree procedure
CN103026660B (en) Network policy configuration method, management equipment and network management centre device
JP5846199B2 (en) Control device, communication system, communication method, and communication program
CN104380658A (en) Stream classifier, service routing trigger, and message processing method and system
CN102291455B (en) Distributed cluster processing system and message processing method thereof
CN108123819B (en) Virtual-real network seamless fusion simulation method
CN110932906A (en) Data center network topology structure discovery method based on SNMP technology and topology structure discovery system thereof
CN111835645B (en) Method, system and apparatus for proxy of intra-subnetwork traffic across multiple interfaces within a network
KR100674086B1 (en) Topology discovery method in ethernet network
CN110995591A (en) Method, device and medium for selecting optimal path based on link layer discovery protocol
FI3782334T3 (en) System and method for creating group networks between network devices
CN107968849B (en) Method and device for network private line connection
CN108400922B (en) Virtual local area network configuration system and method and computer readable storage medium thereof
CN102326370A (en) Message processing method, apparatus and system
CN113746741B (en) Storage device network setting method, device, equipment and readable medium
CN111865655A (en) ARP table configuration method and system for service board card
US8352637B2 (en) Techniques for resolving network connectivity
CN111355599B (en) Hybrid network topology discovery method and device
CN102075364A (en) Method and equipment for determining direct link
Ma et al. An algorithm of physical network topology discovery in multi-VLANs
JP7435763B2 (en) Communication device settings management device, communication device settings management method and program

Legal Events

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