CN105391574A - Server address setting method and device - Google Patents

Server address setting method and device Download PDF

Info

Publication number
CN105391574A
CN105391574A CN201510712921.5A CN201510712921A CN105391574A CN 105391574 A CN105391574 A CN 105391574A CN 201510712921 A CN201510712921 A CN 201510712921A CN 105391574 A CN105391574 A CN 105391574A
Authority
CN
China
Prior art keywords
address
server
state
network interface
interface card
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.)
Pending
Application number
CN201510712921.5A
Other languages
Chinese (zh)
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.)
SHUGUANG CLOUD COMPUTING TECHNOLOGY Co Ltd
Original Assignee
SHUGUANG CLOUD COMPUTING 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 SHUGUANG CLOUD COMPUTING TECHNOLOGY Co Ltd filed Critical SHUGUANG CLOUD COMPUTING TECHNOLOGY Co Ltd
Priority to CN201510712921.5A priority Critical patent/CN105391574A/en
Publication of CN105391574A publication Critical patent/CN105391574A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0659Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities

Landscapes

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

Abstract

The embodiment of the invention provides a server address setting method and a device. The method comprises a step of monitoring the state of a server, wherein the state comprise a main state and a standby state, and a step of setting the address of the server as a predetermined address when the state of a server is the main state. By using the server address setting scheme in the embodiment, the cumbersome operation caused by the need of changing an address in main and standby switching in the prior art can be solved.

Description

A kind of server address method to set up and device
Technical field
The application relates to computer technology, is specifically related to a kind of server address method to set up and device.
Background technology
Active and standby management control system is provided to be the strategy of a kind of common guarantee system safety reliability service in prior art.Namely, for the network equipment that some security requirements are higher, switch, router, private network device etc. as higher in security requirement, its management control system runs on master server and standby server usually simultaneously, but under normal circumstances, only master server is docked with the network equipment in system and control to realize managing; After master server has data change, standby server can be synchronized at once.
The situation that active/standby server carries out switching may have multiple: such as, and the abnormal conditions such as the machine of delaying, power-off appear in master server, and standby server can change master server at once into and work on.Except the situation of above-mentioned active-standby switch, in daily maintenance work, also often may carry out active-standby switch, such as, the server docked by the network equipment is switched to for upper from main, uses standby server to run a period of time, whether look at normal, whether data are correct.
In the prior art, when the switching realizing active/standby server, the scheme usually adopted is: the address of the server at the management system place of amendment network equipment docking; That is, on network devices, the address of receiving management control command is revised as the address of standby server from the address of master server; When again switching, needing the address of re-entering new server, causing complex operation.
Summary of the invention
Providing a kind of server address method to set up and device in the embodiment of the present application, during for solving scheme active-standby switch of the prior art, needing the complex operation that modified address causes.
According to an aspect of the embodiment of the present application, provide a kind of server address method to set up, comprising: the state of monitoring server, this state comprises primary and backup; When the state of server is primary, the address of server is set to presumptive address.
According to another aspect of the embodiment of the present application, provide a kind of server address setting device, comprising: monitoring module, for the state of monitoring server, this state comprises primary and backup; Address arranges module, for when the state of server is primary, the address of server is set to presumptive address.
Adopt the server address plan of establishment in the embodiment of the present application, to the monitoring state of server, when server is primary, the address of server is set to presumptive address; Thus each server can be made can externally show identical presumptive address as during primary server, when active-standby switch, no longer need the address of revising network equipment access, convenient operation.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide further understanding of the present application, and form a application's part, the schematic description and description of the application, for explaining the application, does not form the improper restriction to the application.In the accompanying drawings:
Fig. 1 is the flow chart of the server address method to set up shown in the embodiment of the present application one;
The structural representation that Fig. 2 is arranged for server address shown in the embodiment of the present application two;
Fig. 3 is the flow chart of the server address method to set up according to the embodiment of the present application three.
Embodiment
Clearly understand to make the technical scheme in the embodiment of the present application and advantage, be described in more detail below in conjunction with the exemplary embodiment of accompanying drawing to the application, obviously, described embodiment is only a part of embodiment of the application, instead of all embodiments is exhaustive.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
In the process realizing the application, inventor finds, when the switching realizing active/standby server, the scheme usually adopted is: the address of the server at the management system place of amendment network equipment docking; That is, on network devices, the address of receiving management control command is revised as the address of standby server from the address of master server; When again switching, needing the address of re-entering new server, causing complex operation.
In addition, when having multiple stage active/standby server, keeper needs to remember multiple address; More particularly, DHCP (DynamicHostConfigurationProtocol is adopted in system, DHCP) agreement when, the address of server is also by dynamic change, these situations all will make keeper be difficult to determine the main equipment address in a certain moment, to cause keeper to operate inconvenience.
For solving the problem, in the embodiment of the present application, providing a kind of server address method to set up and device, to the monitoring state of server, when server is primary, the address of server being set to presumptive address; Thus each server can be made can externally show identical presumptive address as during primary server, when active-standby switch, no longer need the address of revising network equipment access, convenient operation.Meanwhile, keeper only need record this presumptive address, also convenient operation.
Scheme in the embodiment of the present application can be applied in various server, as FlowFirm-G series A TCA network traffics process all-in-one etc.
The embodiment of the present application can adopt explanatory script or High-level compilation language to realize.
Fig. 1 is the flow chart of the server address method to set up shown in the embodiment of the present application one.
As shown in Figure 1, the server address method to set up according to the embodiment of the present application one comprises the following steps:
S102, pre-configured presumptive address;
S104, the state of monitoring server, this state comprises primary and backup;
S106, when the state of server is primary, is set to presumptive address by the address of server.
In the specific implementation, this presumptive address comprises following at least one: IP (InternetProtocol, Internet Protocol) address, MAC (Medium/MediaAccessControl, media interviews control) address, mask, Adapter Name; Also one or more combination of above-mentioned several address can be comprised.
In the specific implementation, the configuration of presumptive address can be carried out in the following manner: a configuration file can be stored in each server (active/standby server), suitable syntax format is taked in this configuration file, such as, the information such as IP address, MAC Address, mask, Adapter Name that IP=192.168.1.6 is recording scheduled, presumptive address in the configuration file of server active and standby is each other consistent with each other, and this presumptive address is the unified address externally presented; Administrative staff can revise this presumptive address flexibly by this configuration file.Or after configuring this presumptive address, the input parameter that it can be used as server address to arrange is sent to server.
Preferably, the address of server is set to presumptive address specifically comprise: obtain pre-configured presumptive address; The address of the first network interface card of server is set to presumptive address; It is the work network interface card of server by the first Network card setup.For cost-saving, this first network interface card can be Microsoft Loopback Adapter.
Microsoft Loopback Adapter (also known as Objunctive network adaptor), namely uses software simulation network environment, analog network adapter, is a kind of technology being realized multiple logic network interface card by one piece of physical network card.
In the specific implementation, a Microsoft Loopback Adapter can be created in advance on the server; When monitoring server activestandby state and changing, namely when server becomes master server, the configuration file stored in reading server is to obtain pre-configured presumptive address, and by the address configuration in this configuration file on Microsoft Loopback Adapter, and this Microsoft Loopback Adapter is as the work at present network interface card of server.
In the specific implementation, the work at present network interface card whether network interface card is server can be set by the state flag bit of network interface card, such as, the state flag bit of the Microsoft Loopback Adapter of server is set to up, the state flag bit of the hardware network interface card of server is set to down to show that Microsoft Loopback Adapter is the work at present network interface card of server.
Preferably, the server address method to set up according to the embodiment of the present application one also comprises: when the state of server is for subsequent use, and be the work network interface card of server by the second Network card setup of server, wherein, the address of the second network interface card is different from presumptive address.
In the specific implementation, this second network interface card can be the hardware network interface card of server.
In the specific implementation, when server becomes standby server again, another primary server will obtain the address of presumptive address as primary server; Therefore, standby server needs to be different from the address of presumptive address as server address, can by realizing having the work network interface card of different the second network interface card with presumptive address as server.
In the specific implementation, the state flag bit of the Microsoft Loopback Adapter of server can be set to down, the state flag bit of the hardware network interface card of server be set to up to show that hardware network interface card is the work at present network interface card of server.
Adopt the server address method to set up in the embodiment of the present application, to the monitoring state of server, when server is primary, the address of server is set to presumptive address; Thus each server can be made can externally show identical presumptive address as during primary server, when active-standby switch, no longer need the address of revising network equipment access, convenient operation.Meanwhile, keeper only need record this presumptive address, also convenient operation.
Based on same inventive concept, a kind of server address setting device is additionally provided in the embodiment of the present application, the principle of dealing with problems due to this device is similar to the server address method to set up that the embodiment of the present application provides, therefore the enforcement of this device see the enforcement of method, can repeat part and repeats no more.
The structural representation that Fig. 2 is arranged for server address shown in the embodiment of the present application two.
As shown in Figure 2, the server address according to the embodiment of the present application two arranges 200, comprising: monitoring module 202, and for the state of monitoring server, this state comprises primary and backup; Address arranges module 204, for when the state of server is primary, the address of server is set to presumptive address.
In the specific implementation, the server address shown in the embodiment of the present application two arranges and can be arranged in server, also partly can be arranged in server.
Preferably, presumptive address comprises following at least one: IP address, MAC Address, mask, Adapter Name.
Preferably, address arranges module and specifically comprises: presumptive address obtains submodule, for obtaining pre-configured presumptive address; Presumptive address arranges submodule, and the address for the first network interface card by server is set to presumptive address; State arranges submodule, for by the first Network card setup being the work network interface card of server.
Preferably, this first network interface card is Microsoft Loopback Adapter.
Preferably, server address according to the embodiment of the present application two arranges and also comprises: the second Network card setup of server, for when the state of server is for subsequent use, is the work network interface card of server by state setting module, wherein, the address of the second network interface card is different from this presumptive address.
Adopt the server address setting device in the embodiment of the present application, to the monitoring state of server, when server is primary, the address of server is set to presumptive address; Thus each server can be made can externally show identical presumptive address as during primary server, when active-standby switch, no longer need the address of revising network equipment access, convenient operation.Meanwhile, keeper only need record this presumptive address, also convenient operation.
Fig. 3 is the flow chart of the server address method to set up according to the embodiment of the present application three.
As shown in Figure 3, comprise the following steps according to the server address method to set up of the embodiment of the present application three:
S302, keeper arranges Microsoft Loopback Adapter on the server;
S304, keeper writes configuration file on the server, stores unified presumptive address information, comprise IP address, MAC Address, mask, Adapter Name in configuration file;
S306, the hardware network interface card of server is started working, and obtain the address inconsistent with the presumptive address information in configuration file, this address can be distributed automatically by DHCP, also can be manual configuration;
S308, the activestandby state of server monitoring self;
S310, when the state of server is primary, the address information in configuration file is configured to Microsoft Loopback Adapter by server, and the state of Microsoft Loopback Adapter is set to up, and the state of hardware network interface card is set to down;
S312, when the state of server is for subsequent use, the state of Microsoft Loopback Adapter is set to down by server, and the state of hardware network interface card is set to up;
S314, the operations such as keeper signs in primary server by unified address information, the management control of the network equipment of line correlation of going forward side by side.
Adopt the server address method to set up in the embodiment of the present application, to the monitoring state of server, when server is primary, the address of server is set to presumptive address; Thus each server can be made can externally show identical presumptive address as during primary server, when active-standby switch, no longer need the address of revising network equipment access, convenient operation.Meanwhile, keeper only need record this presumptive address, also convenient operation.
Those skilled in the art should understand, the embodiment of the application can be provided as method, system or computer program.Therefore, the application can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the application can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The application describes with reference to according to the flow chart of the method for the embodiment of the present application, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although described the preferred embodiment of the application, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the application's scope.
Obviously, those skilled in the art can carry out various change and modification to the application and not depart from the spirit and scope of the application.Like this, if these amendments of the application and modification belong within the scope of the application's claim and equivalent technologies thereof, then the application is also intended to comprise these change and modification.

Claims (10)

1. a server address method to set up, is characterized in that, comprising:
The state of monitoring server, described state comprises primary and backup;
When the state of described server is primary, the address of described server is set to presumptive address.
2. method according to claim 1, is characterized in that, described presumptive address comprises following at least one: IP address, MAC Address, mask, Adapter Name.
3. method according to claim 1, is characterized in that, the address of described server is set to presumptive address and specifically comprises:
Obtain pre-configured described presumptive address;
The address of the first network interface card of described server is set to described presumptive address;
By the work network interface card that described first Network card setup is described server.
4. method according to claim 3, is characterized in that, described first network interface card is Microsoft Loopback Adapter.
5. method according to claim 3, is characterized in that, also comprises:
When the state of described server is for subsequent use, be the work network interface card of described server by the second Network card setup of described server, wherein, the address of described second network interface card is different from described presumptive address.
6. a server address setting device, is characterized in that, comprising:
Monitoring module, for the state of monitoring server, described state comprises primary and backup;
Address arranges module, for when the state of described server is primary, the address of described server is set to presumptive address.
7. device according to claim 6, is characterized in that, described presumptive address comprises following at least one: IP address, MAC Address, mask, Adapter Name.
8. device according to claim 6, is characterized in that, address arranges module and specifically comprises:
Presumptive address obtains submodule, for obtaining pre-configured described presumptive address;
Presumptive address arranges submodule, and the address for the first network interface card by described server is set to described presumptive address;
State arranges submodule, for by described first Network card setup being the work network interface card of described server.
9. device according to claim 8, is characterized in that, described first network interface card is Microsoft Loopback Adapter.
10. device according to claim 8, is characterized in that, also comprises:
State setting module, for when the state of described server is for subsequent use, be the work network interface card of described server by the second Network card setup of described server, wherein, the address of described second network interface card is different from described presumptive address.
CN201510712921.5A 2015-10-28 2015-10-28 Server address setting method and device Pending CN105391574A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510712921.5A CN105391574A (en) 2015-10-28 2015-10-28 Server address setting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510712921.5A CN105391574A (en) 2015-10-28 2015-10-28 Server address setting method and device

Publications (1)

Publication Number Publication Date
CN105391574A true CN105391574A (en) 2016-03-09

Family

ID=55423426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510712921.5A Pending CN105391574A (en) 2015-10-28 2015-10-28 Server address setting method and device

Country Status (1)

Country Link
CN (1) CN105391574A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465556A (en) * 2017-09-07 2017-12-12 郑州云海信息技术有限公司 A kind of switching method of active/standby server, apparatus and system
CN109614123A (en) * 2018-12-10 2019-04-12 浪潮(北京)电子信息产业有限公司 A kind of data back up method, system and electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1366242A (en) * 2001-01-19 2002-08-28 华为技术有限公司 Method for implementing dual-system standby
CN1423197A (en) * 2002-12-16 2003-06-11 华中科技大学 High usable system based on multi TCP linking map
CN101150439A (en) * 2007-09-25 2008-03-26 华为技术有限公司 A method, system and device for realizing master/slave switching
CN102231681A (en) * 2011-06-27 2011-11-02 中国建设银行股份有限公司 High availability cluster computer system and fault treatment method thereof
CN102497288A (en) * 2011-12-13 2012-06-13 华为技术有限公司 Dual-server backup method and dual system implementation device
CN104579791A (en) * 2015-01-26 2015-04-29 浪潮电子信息产业股份有限公司 Method for achieving automatic K-DB main and standby disaster recovery cluster switching
CN104660441A (en) * 2013-11-25 2015-05-27 北京信威通信技术股份有限公司 Method, device and system for achieving high reliability of server

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1366242A (en) * 2001-01-19 2002-08-28 华为技术有限公司 Method for implementing dual-system standby
CN1423197A (en) * 2002-12-16 2003-06-11 华中科技大学 High usable system based on multi TCP linking map
CN101150439A (en) * 2007-09-25 2008-03-26 华为技术有限公司 A method, system and device for realizing master/slave switching
CN102231681A (en) * 2011-06-27 2011-11-02 中国建设银行股份有限公司 High availability cluster computer system and fault treatment method thereof
CN102497288A (en) * 2011-12-13 2012-06-13 华为技术有限公司 Dual-server backup method and dual system implementation device
CN104660441A (en) * 2013-11-25 2015-05-27 北京信威通信技术股份有限公司 Method, device and system for achieving high reliability of server
CN104579791A (en) * 2015-01-26 2015-04-29 浪潮电子信息产业股份有限公司 Method for achieving automatic K-DB main and standby disaster recovery cluster switching

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465556A (en) * 2017-09-07 2017-12-12 郑州云海信息技术有限公司 A kind of switching method of active/standby server, apparatus and system
CN107465556B (en) * 2017-09-07 2021-02-05 苏州浪潮智能科技有限公司 Method, device and system for switching main server and standby server
CN109614123A (en) * 2018-12-10 2019-04-12 浪潮(北京)电子信息产业有限公司 A kind of data back up method, system and electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US20180285053A1 (en) Screenshot method and apparatus
EP3544331B1 (en) System for simultaneous viewing and editing of multiple network device configurations
CN109376197B (en) Data synchronization method, server and computer storage medium
WO2016065956A1 (en) Method and device for creating virtual machine
CN103701913A (en) Data synchronization method and device
WO2016177231A1 (en) Dual-control-based active-backup switching method and device
CN113839814B (en) Decentralized Kubernetes cluster federal implementation method and system
JP2015177478A (en) Conference terminal control system, conference terminal control device, conference terminal control method and program
CN110941665A (en) Data synchronization method, data synchronization device and data synchronization equipment between nodes
US8230254B2 (en) Redundant system using object-oriented program and method for rescuing object-oriented program
CN111966465A (en) Method, system, equipment and medium for modifying configuration parameters of host machine in real time
CN104951519A (en) Method and device for generating serial numbers
CN112235193A (en) Data transmission method, device, equipment and medium based on cross-network multi-level routing
CN109299116B (en) Data synchronization method, device, equipment and readable storage medium
CN105391574A (en) Server address setting method and device
CN106161086A (en) Control method that master control borad is restarted and device
CN103733150B (en) Program creating device and programmable logic controller (PLC)
CN113708954B (en) Network switching method and device, electronic equipment and storage medium
EP3719599B1 (en) Network-distributed process control system and method for managing redundancy thereof
JP5532981B2 (en) Network management device
CN114650223A (en) Network configuration method and device of Kubernetes cluster and electronic equipment
US9430440B2 (en) Environment construction apparatus and method, environment registration apparatus and method, environment switching apparatus and method
CN104270449A (en) Method and device for achieving time synchronizing among server nodes
CN113132152B (en) Method and device for generating Netconf real-time candidate database
CN109783198B (en) Rapid and automatic construction method for batch big data experiment environment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100193 5, 36 building, Zhongguancun Software Park, 8 Northeast Northeast Road, Haidian District, Beijing.

Applicant after: Shuguang Cloud Computing Group Co Ltd

Address before: 100193 building 36, Zhongguancun Software Park, 8 North East West Road, Haidian District, Beijing.

Applicant before: Shuguang Cloud Computing Technology Co., Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160309