CN105071948B - The automatic deployment method and device of a kind of access switch - Google Patents

The automatic deployment method and device of a kind of access switch Download PDF

Info

Publication number
CN105071948B
CN105071948B CN201510389928.8A CN201510389928A CN105071948B CN 105071948 B CN105071948 B CN 105071948B CN 201510389928 A CN201510389928 A CN 201510389928A CN 105071948 B CN105071948 B CN 105071948B
Authority
CN
China
Prior art keywords
preset
access switch
address
configuration file
byte
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
CN201510389928.8A
Other languages
Chinese (zh)
Other versions
CN105071948A (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.)
Beijing Cloud Qizhi New Polytron Technologies Inc
Original Assignee
Beijing Cloud Qizhi New Polytron Technologies Inc
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 Beijing Cloud Qizhi New Polytron Technologies Inc filed Critical Beijing Cloud Qizhi New Polytron Technologies Inc
Priority to CN201510389928.8A priority Critical patent/CN105071948B/en
Publication of CN105071948A publication Critical patent/CN105071948A/en
Application granted granted Critical
Publication of CN105071948B publication Critical patent/CN105071948B/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
    • 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
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • 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/0889Techniques to speed-up the configuration process

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses the automatic deployment method and device of a kind of access switch, the described method includes:The default port description of corresponding ports in core switch is obtained, to generate configuration information;Corresponding preset configuration file is downloaded from preset configuration file server according to the configuration information;This access switch is configured according to the preset configuration file.Technical solution provided in an embodiment of the present invention, access switch is by accessing the port of corresponding core switch, obtain the default port description of corresponding ports in core switch, to generate configuration information, and corresponding preset configuration file is downloaded from preset configuration file server according to the configuration information, automatic start runs the preset configuration file, this access switch is configured, thus the deployment of access switch is completed, the deployment efficiency of access switch is improved, reduces deployment and the O&M cost of access switch.

Description

Automatic deployment method and device of access switch
Technical Field
The invention relates to the technical field of switches, in particular to an automatic deployment method and device of an access switch.
Background
With the continuous development of information technology and the expansion of data center coverage services, the number of devices in a data center is rapidly increased, how to rapidly deploy a data center network, and the improvement of the online speed and the operation and maintenance efficiency of data center devices become problems to be solved urgently. The traditional data center access switch is generally in a non-automatic mode, and depends on field manual and remote manual configuration, so that the access switch is low in deployment efficiency and high in operation and maintenance cost.
In the prior art, a Zero-Configuration agile deployment (ZTP) technology is proposed, where the ZTP technology implements unified Configuration of an access switch through an embedded script language in the access switch, a Configuration file is downloaded from a Configuration file server to complete Configuration of the access switch according to a written specific script, and a Dynamic Host Configuration Protocol (DHCP) Option function is used to interact with a DHCP server to complete service functions such as Dynamic selection of a script file and version software, for example, the DHCP Option66/150/67 may be used to obtain version software, a Configuration file, and an IP address and a server name of a server where the script file is located, and a user may dynamically select and load a corresponding file according to a network characteristic of the user.
The access switch deployment method in the prior art has the following defects: 1. a specific script needs to be written, a mode of downloading a configuration file is defined according to user requirements in the script, configuration and deployment of an access switch are carried out, the technical scheme is complex, and the transparency is poor; 2. a DHCP environment needs to be built, the deployment and operation and maintenance of the access switch are completed through interaction with a DHCP server, and the deployment and operation and maintenance cost is high.
Disclosure of Invention
In view of this, the present invention provides an automatic deployment method and an automatic deployment device for an access switch, so as to solve the problems of low deployment efficiency and high operation and maintenance cost of the access switch, so as to improve the deployment efficiency of the access switch and reduce the deployment and operation and maintenance costs of the access switch.
In order to achieve the purpose, the invention adopts the following technical scheme:
in one aspect, an embodiment of the present invention provides an automatic deployment method for an access switch, including:
acquiring preset port description of a corresponding port in a core switch to generate configuration information;
downloading a corresponding preset configuration file from a preset configuration file server according to the configuration information;
and configuring the access switch according to the preset configuration file.
Further, obtaining a preset port description of a corresponding port in the core switch to generate the configuration information includes:
acquiring a third byte of a preset IP address of an access switch, a fourth byte of the preset IP address of the access switch and a fourth byte of the preset IP address of a preset configuration file server in the preset port description of a corresponding port in a core switch;
combining two preset bytes with a third byte of a preset IP address of the access switch and a fourth byte of the preset IP address of the access switch in sequence to generate the IP address of the access switch, combining the first three bytes of the IP address of the access switch and the fourth byte of the preset IP address of the preset configuration file server in sequence to generate the IP address of the preset configuration file server, and generating a preset configuration file name according to the IP address of the access switch.
Further, downloading the corresponding preset configuration file from the preset configuration file server according to the configuration information includes:
accessing a preset configuration file server according to the IP address of the access switch and the IP address of the preset configuration file server;
and downloading a corresponding preset configuration file from the preset configuration file server according to the configuration file name.
Further, the preset profile name includes an IP address and a provider name of the access switch.
Further, the preset port description format is:
the method comprises the steps that the TO-geographic position of an access switch, the name of a data center where the access switch is located, the equipment type, the model of the access switch, the fourth byte of a preset IP address of the access switch, a preset keyword, a port, the third byte of the preset IP address of the access switch and the fourth byte of the preset IP address of a preset configuration file server are arranged; or the following steps:
the method comprises the steps of determining the location of a TO-access switch, determining the location of the.
In another aspect, an embodiment of the present invention further provides an automatic deployment apparatus for an access switch, including:
a port description obtaining unit, configured to obtain a preset port description of a corresponding port in a core switch, so as to generate configuration information;
the configuration file downloading unit is used for downloading a corresponding preset configuration file from a preset configuration file server according to the configuration information;
and the access switch configuration unit is used for configuring the access switch according to the preset configuration file.
Further, the port description acquiring unit includes:
a port description obtaining subunit, configured to obtain a third byte of the preset IP address of the access switch, a fourth byte of the preset IP address of the access switch, and a fourth byte of the preset IP address of the preset configuration file server in the preset port description of the corresponding port in the core switch;
the configuration information generation subunit is configured to combine two preset bytes with a third byte of the preset IP address of the access switch and a fourth byte of the preset IP address of the access switch in order to generate an IP address of the access switch, combine the first three bytes of the IP address of the access switch and the fourth byte of the preset IP address of the preset configuration file server in order to generate an IP address of the preset configuration file server, and generate a preset configuration file name according to the IP address of the access switch.
Further, the configuration file downloading unit includes:
the configuration file server access subunit is used for accessing a preset configuration file server according to the IP address of the access switch and the IP address of the preset configuration file server;
and the configuration file downloading subunit is used for downloading the corresponding preset configuration file from the preset configuration file server according to the configuration file name.
Further, the preset profile name includes an IP address and a provider name of the access switch.
Further, the preset port description format is:
the method comprises the steps that the TO-geographic position of an access switch, the name of a data center where the access switch is located, the equipment type, the model of the access switch, the fourth byte of a preset IP address of the access switch, a preset keyword, a port, the third byte of the preset IP address of the access switch and the fourth byte of the preset IP address of a preset configuration file server are arranged; or the following steps:
the method comprises the steps of determining the location of a TO-access switch, determining the location of the.
The method and the device for automatically deploying the access switch provided by the embodiment of the invention generate the preset port description of the core switch by a network engineer according to the preset port description rule during network planning, when the access switch is connected with a cable and powered on, the access switch accesses the corresponding port of the core switch to obtain the preset port description of the corresponding port in the core switch so as to generate configuration information, download the corresponding preset configuration file from a preset configuration file server according to the configuration information, automatically start and operate the preset configuration file to configure the access switch, thereby completing the deployment of the access switch, only needing to statically obtain the preset port description from the port of the core switch, generate the configuration information according to the preset port description and download the configuration file from the preset configuration file server according to the configuration information, the DHCP environment is not required to be built, the script file is not required to be compiled, the deployment efficiency of the access switch is improved, and the deployment, operation and maintenance cost of the access switch is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a flowchart of an automatic deployment method of an access switch according to an embodiment of the present invention;
fig. 2 is a flowchart of an automatic deployment method of an access switch according to a second embodiment of the present invention;
fig. 3 is a flowchart of an automatic deployment method of an access switch according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an automatic deployment apparatus of an access switch according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be fully described by the detailed description with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, not all embodiments, and all other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without inventive efforts fall within the scope of the present invention.
Example one
Fig. 1 is a flowchart illustrating an automatic deployment method of an access switch according to an embodiment of the present invention, which may be performed by an automatic deployment apparatus of an access switch, where the apparatus may be implemented by software and/or hardware, and may be built in an access switch as a part of the access switch. As shown in fig. 1, the automatic deployment method of the access switch provided in this embodiment includes:
step 101, obtaining a preset port description of a corresponding port in a core switch to generate configuration information.
The method also comprises the following steps before the step: in the network planning stage, a network engineer designs a port description format of the core switch according to a set port description rule, and generates a preset port description according to the port description format.
The preset port description includes a field for generating configuration information, where the configuration information refers to information for subsequent automatic configuration of the access switch, and the configuration information may include an IP address of the access switch, an IP address of a configuration file server, and a configuration file name. Wherein, the configuration file name can contain the IP address of the access switch, and the setting has the advantages that: by adopting the IP address of the access switch to identify the configuration file, after the IP address of the access switch is obtained, the name of the configuration file is equivalently known, and the efficiency of processing logic and loading the configuration file is simplified.
Preferably, the configuration file name may include an IP address and a provider name of the access switch, and this configuration has the advantages of: the compatibility of cross-equipment manufacturers can be realized, and seamless replacement can be realized when the access switches of different manufacturers are used in the data center as long as the access switches have the functions of executing the steps 101 to 103 in the embodiment.
And 102, downloading a corresponding preset configuration file from a preset configuration file server according to the configuration information.
Specifically, the corresponding preset configuration file may be downloaded from the preset configuration file server according to the configuration file name.
And 103, configuring the access switch according to the preset configuration file.
In this step, after the access switch downloads the configuration file, the access switch automatically starts to operate the configuration file, and the configuration of the access switch is completed.
In the automatic deployment method of the access switch provided in this embodiment, during network planning, a network engineer generates a preset port description of a core switch according to a preset port description rule, after the access switch is wired and powered on, the access switch accesses a port of a corresponding core switch, obtains the preset port description of the corresponding port in the core switch to generate configuration information, downloads a corresponding preset configuration file from a preset configuration file server according to the configuration information, automatically starts to operate the preset configuration file, configures the access switch, thereby completing deployment of the access switch, and only needs to statically obtain the preset port description from the port of the core switch, generate configuration information according to the preset port description, and download the configuration file from the preset configuration file server according to the configuration information, the DHCP environment is not required to be built, the script file is not required to be compiled, the deployment efficiency of the access switch is improved, and the deployment, operation and maintenance cost of the access switch is reduced.
Example two
Fig. 2 is a flowchart of an automatic deployment method of an access switch according to a second embodiment of the present invention. The present embodiment is optimized based on the above embodiments. In this embodiment, obtaining a preset port description of a corresponding port in a core switch to generate configuration information is optimized as follows: acquiring a third byte of a preset IP address of an access switch, a fourth byte of the preset IP address of the access switch and a fourth byte of the preset IP address of a preset configuration file server in the preset port description of a corresponding port in a core switch; combining two preset bytes with a third byte of a preset IP address of the access switch and a fourth byte of the preset IP address of the access switch in sequence to generate the IP address of the access switch, combining the first three bytes of the IP address of the access switch and the fourth byte of the preset IP address of the preset configuration file server in sequence to generate the IP address of the preset configuration file server, and generating a preset configuration file name according to the IP address of the access switch. Further, the downloading of the corresponding preset configuration file from the preset configuration file server according to the configuration information is optimized as follows: accessing a preset configuration file server according to the IP address of the access switch and the IP address of the preset configuration file server; and downloading a corresponding preset configuration file from the preset configuration file server according to the configuration file name.
Correspondingly, as shown in fig. 2, the automatic deployment method of access switching provided in this embodiment includes the following steps:
step 201, obtaining a third byte of a preset IP address of the access switch, a fourth byte of the preset IP address of the access switch, and a fourth byte of the preset IP address of the preset configuration file server in the preset port description of the corresponding port in the core switch.
The method also comprises the following steps before the step: in the network planning stage, a network engineer designs a port description format of the core switch according to a set port description rule, and generates a preset port description according to the port description format.
Wherein, the port description format may be: the method comprises the steps that the TO-geographic position of an access switch, the name of a data center where the access switch is located, the equipment type, the model of the access switch, the fourth byte of a preset IP address of the access switch, a preset keyword, a port, the third byte of the preset IP address of the access switch and the fourth byte of the preset IP address of a preset configuration file server are arranged; the following steps can be also included: the method comprises the steps of determining the location of a TO-access switch, determining the location of the. The preset information prompt may be "@", "#", "-", etc. The "geographical location of the access switch, the name of the data center where the access switch is located, the device type, the model of the access switch, and the port" are a preferred description provided in this embodiment, and the user can also set the location by himself or herself as needed. The preset keyword is a keyword preset by a user before configuring the access switch, for example, the preset keyword may be Int.
It should be noted that, here, only the port description format is given by way of example, the positions of the third byte of the IP address of the preset access switch and the fourth byte of the preset IP address of the preset profile server may be exchanged, and the fourth byte of the preset IP address of the access switch may also be located between or behind the third byte of the IP address of the access switch and the fourth byte of the preset IP address of the preset profile server.
Illustratively, the port description may be in the form of:TO-BJ-IDC1-T-XXXX-16.Int-AE1@32@ 12can also beTO-BJ-IDC1-T-XXXX-AE1@32@16@12. Wherein, BJ represents that the geographic location is beijing, IDC1 is the name of the data center, T represents that the device type is an access switch, XXXX represents the type of the access switch, 16 represents the fourth byte of the preset IP address of the access switch, AE1 represents the port number, 32 represents the third byte of the preset IP address of the access switch, and 12 represents the fourth byte of the preset IP address of the preset profile server.
Preferably, the port description of the core switch is transferred to the access switch by using a Link Layer Discovery Protocol (LLDP).
Step 202, combining two preset bytes with a third byte of the preset IP address of the access switch and a fourth byte of the preset IP address of the access switch in sequence to generate an IP address of the access switch, combining the first three bytes of the IP address of the access switch and the fourth byte of the preset IP address of the preset configuration file server in sequence to generate an IP address of the preset configuration file server, and generating a preset configuration file name according to the IP address of the access switch.
The preset two bytes are set during network initialization in a network planning stage, for example, the data center may use 192.168.x.x as a management network, and 192.168 may use the two bytes as the preset two bytes. Illustratively, if the third byte of the preset IP address of the access switch obtained from the port description is 32 and the fourth byte of the preset IP address of the access switch is 16, the IP address of the access switch may be: 192.168.32.16.
the IP address of the preset profile server may also be generated according to the IP address of the access switch, and for a network design scheme, the IP plans set by the profile servers in different data centers are regular, for example, 192.168.x.11 is uniformly adopted, where 11 is fixed. If the IP address of the access switch has been obtained, the last bit of the IP address of the access switch can be directly replaced by 11 as the IP address of the profile server, and the profile can be downloaded. However, this approach is too simple and harsh, and compatibility issues may arise when applied across companies. In this embodiment, the fourth byte of the IP address of the profile server is carried out as a field in the port description of the core switch, which will avoid the compatibility problem when applied across companies.
Illustratively, the IP address obtained to the access switch is: 192.168.32.16, and the fourth byte of the default IP address of the default profile server is 12, the IP address of the default profile server may be: 192.168.32.12.
step 203, accessing a preset configuration file server according to the IP address of the access switch and the IP address of the preset configuration file server.
After the IP address of the access switch and the IP address of the preset profile server are obtained, the access switch can access the preset profile server.
And 204, downloading a corresponding preset configuration file from the preset configuration file server according to the configuration file name.
When the corresponding preset configuration file does not exist in the preset configuration file server, other port descriptions can be traversed to complete the downloading of the configuration files of other access switches until the preset configuration file exists in the preset configuration file server, wherein the preset configuration file can be set by a network engineer during network planning or can be set in the subsequent configuration process of the access switch.
In addition, the access switch can intelligently identify any error in the downloaded configuration file, if an illegal configuration file is downloaded, the access switch cannot be started, and the step of obtaining the port description of the access switch is continuously executed, so that the access switch has good fault tolerance.
Step 205, configuring the access switch according to the preset configuration file.
In the automatic deployment method of the access switch provided by this embodiment, during network planning, a network engineer generates a preset port description of a core switch according to a preset port description rule, and after the access switch is connected with a cable and powered on, the access switch accesses a port of a corresponding core switch, obtains an IP address of the access switch and a field related to an IP address of a preset configuration file server, which are carried in the preset port description of the corresponding port in the core switch, and combines the fields according to preset two bytes, respectively, to obtain the IP address of the access switch and the IP address of the preset configuration file server, and generates a preset configuration file name according to the IP address of the access switch; accessing a preset configuration file server according to the IP address of the access switch and the IP address of the preset configuration file server; and downloading a corresponding preset configuration file from the preset configuration file server according to the configuration file name, and automatically configuring the access switch according to the preset configuration file without building a DHCP environment or compiling a script file, so that the deployment efficiency of the access switch is improved, and the deployment and operation and maintenance costs of the access switch are reduced.
EXAMPLE III
Fig. 3 is a flowchart of an automatic deployment method of an access switch according to a third embodiment of the present invention. The present embodiment provides a preferred embodiment based on the above embodiments, and details that are not described in detail in the present embodiment may be referred to in the first embodiment and the second embodiment. As shown in fig. 3, the automatic deployment method of access switching provided by this embodiment includes the following steps:
step 301, begin.
Step 302, whether the access switch needs to be automatically deployed.
Step 303 is performed when the access switch needs to be automatically deployed, otherwise it ends.
Step 303, initialization.
The initial exchange includes initializing a log module, and collecting basic information of the access switch itself, such as a device model, a device manufacturer name, and the like.
Step 304, traverse the port description of the core switch.
In this embodiment, when at least one access switch needs to be deployed, the port of the core switch corresponding to each access switch is traversed, and for each access switch, the port description of the access switch is obtained from the core switch port corresponding to the switch.
Step 305, determine whether the port description is legal.
When the port description is legal, step 306 is executed, otherwise step 304 is executed.
The port description validity judgment may be performed by using a preset validity judgment rule, and for example, in the port description, the preset validity judgment rule may include: the predetermined information cue must be followed by a number, the size of the number must be between 1-255, and only 3 predetermined information cues can appear in the entire port description string.
Step 306, obtain the relevant fields of the configuration information in the port description.
Wherein, the relevant fields of the configuration information for the subsequent automatic configuration access switch carried in the port description may include: a third byte of the preset IP address of the access switch, a fourth byte of the preset IP address of the access switch, and a fourth byte of the preset IP address of the preset profile server.
Step 307, the basic network self-configures.
And generating the configuration information according to the relevant fields of the configuration information in the port description acquired in the step 306. Specifically, the preset two bytes are sequentially combined with a third byte of the preset IP address of the access switch and a fourth byte of the preset IP address of the access switch, which are carried in the port description, to generate the IP address of the access switch; sequentially combining the first three bytes of the IP address of the access switch and the fourth byte of the preset IP address of the preset configuration file server to generate the IP address of the preset configuration file server, and generating a configuration file name according to the IP address of the access switch.
Step 308, detecting whether the network is connected.
Detecting whether the network between the access switch and the profile server is connected, and executing step 309 when the network is connected, otherwise executing step 304.
Step 309, download the configuration file.
And downloading the configuration file based on the configuration information when the network is connected.
Specifically, a preset configuration file server is accessed according to the IP address of the access switch and the IP address of the preset configuration file server, and the configuration file is downloaded from the preset configuration file server based on the configuration file name.
At step 310, the system is automatically restarted.
After the configuration file is downloaded, the configuration file is automatically executed, and the system is automatically restarted to complete the deployment of the access switch.
And step 311, ending.
According to the automatic deployment method of the access switch provided by the embodiment, the relevant fields for automatically configuring the configuration information of the access switch are carried in the port description of the core switch according to the preset port description rule, the access switch to be deployed traverses the port description of the core switch, the configuration information is generated according to the relevant fields of the configuration information, the configuration file is downloaded based on the configuration information, the deployment of the access switch is completed, the deployment efficiency of the access switch is improved, and the deployment, operation and maintenance costs of the access switch are reduced.
Example four
Fig. 4 is a schematic structural diagram of an automatic deployment apparatus of an access switch according to a fourth embodiment of the present invention. As shown in fig. 4, the access switch control apparatus provided in this embodiment includes a port description obtaining unit 410, a configuration file downloading unit 420, and an access switch configuration unit 430. Wherein,
the port description obtaining unit 410 is configured to obtain a preset port description of a corresponding port in a core switch, so as to generate configuration information;
the configuration file downloading unit 420 is configured to download a corresponding preset configuration file from a preset configuration file server according to the configuration information;
and an access switch configuring unit 430, configured to configure the access switch according to the preset configuration file.
Further, the port description obtaining unit 410 includes:
a port description obtaining subunit, configured to obtain a third byte of the preset IP address of the access switch, a fourth byte of the preset IP address of the access switch, and a fourth byte of the preset IP address of the preset configuration file server in the preset port description of the corresponding port in the core switch;
the configuration information generation subunit is configured to combine two preset bytes with a third byte of the preset IP address of the access switch and a fourth byte of the preset IP address of the access switch in order to generate an IP address of the access switch, combine the first three bytes of the IP address of the access switch and the fourth byte of the preset IP address of the preset configuration file server in order to generate an IP address of the preset configuration file server, and generate a preset configuration file name according to the IP address of the access switch.
Further, the configuration file downloading unit 420 includes:
the configuration file server access subunit is used for accessing a preset configuration file server according to the IP address of the access switch and the IP address of the preset configuration file server;
and the configuration file downloading subunit is used for downloading the corresponding preset configuration file from the preset configuration file server according to the configuration file name.
Preferably, the preset profile name includes an IP address and a provider name of the access switch.
Preferably, the preset port description format is:
the method comprises the steps that the TO-geographic position of an access switch, the name of a data center where the access switch is located, the equipment type, the model of the access switch, the fourth byte of a preset IP address of the access switch, a preset keyword, a port, the third byte of the preset IP address of the access switch and the fourth byte of the preset IP address of a preset configuration file server are arranged; or the following steps:
the method comprises the steps of determining the location of a TO-access switch, determining the location of the. The "geographical location of the access switch, the name of the data center where the access switch is located, the device type, the model of the access switch, and the port" are a preferred description provided in this embodiment, and the user can also set the location by himself or herself as needed. The preset keyword is a keyword preset by a user before configuring the access switch, for example, the preset keyword may be Int.
The automatic deployment device for access switching provided by the embodiment of the invention can execute the automatic deployment method for the access switch provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
The foregoing is considered as illustrative of the preferred embodiments of the invention and technical principles employed. The present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in more detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the claims.

Claims (8)

1. An automatic deployment method of an access switch, comprising:
acquiring preset port description of a corresponding port in a core switch to generate configuration information;
downloading a corresponding preset configuration file from a preset configuration file server according to the configuration information;
configuring the access switch according to the preset configuration file;
wherein the obtaining of the preset port description of the corresponding port in the core switch to generate the configuration information includes:
acquiring a third byte of a preset IP address of an access switch, a fourth byte of the preset IP address of the access switch and a fourth byte of the preset IP address of a preset configuration file server in the preset port description of a corresponding port in a core switch;
combining two preset bytes with a third byte of a preset IP address of the access switch and a fourth byte of the preset IP address of the access switch in sequence to generate the IP address of the access switch, combining the first three bytes of the IP address of the access switch and the fourth byte of the preset IP address of the preset configuration file server in sequence to generate the IP address of the preset configuration file server, and generating a preset configuration file name according to the IP address of the access switch.
2. The method of claim 1, wherein downloading the corresponding pre-set configuration file from a pre-set configuration file server according to the configuration information comprises:
accessing a preset configuration file server according to the IP address of the access switch and the IP address of the preset configuration file server;
and downloading the corresponding preset configuration file from the preset configuration file server according to the preset configuration file name.
3. The method of claim 1, wherein the preset profile name comprises an IP address and a vendor name of the access switch.
4. The method according to any one of claims 1 to 3, wherein the format of the pre-defined port description is:
the method comprises the steps that the TO-geographic position of an access switch, the name of a data center where the access switch is located, the equipment type, the model of the access switch, the fourth byte of a preset IP address of the access switch, a preset keyword, a port, the third byte of the preset IP address of the access switch and the fourth byte of the preset IP address of a preset configuration file server are arranged; or the following steps:
the method comprises the steps of determining the location of a TO-access switch, determining the location of the.
5. An apparatus for automatic deployment of an access switch, comprising:
a port description obtaining unit, configured to obtain a preset port description of a corresponding port in a core switch, so as to generate configuration information;
the configuration file downloading unit is used for downloading a corresponding preset configuration file from a preset configuration file server according to the configuration information;
the access switch configuration unit is used for configuring the access switch according to the preset configuration file;
wherein the port description acquiring unit includes:
a port description obtaining subunit, configured to obtain a third byte of the preset IP address of the access switch, a fourth byte of the preset IP address of the access switch, and a fourth byte of the preset IP address of the preset configuration file server in the preset port description of the corresponding port in the core switch;
the configuration information generation subunit is configured to combine two preset bytes with a third byte of the preset IP address of the access switch and a fourth byte of the preset IP address of the access switch in order to generate an IP address of the access switch, combine the first three bytes of the IP address of the access switch and the fourth byte of the preset IP address of the preset configuration file server in order to generate an IP address of the preset configuration file server, and generate a preset configuration file name according to the IP address of the access switch.
6. The apparatus of claim 5, wherein the configuration file downloading unit comprises:
the configuration file server access subunit is used for accessing a preset configuration file server according to the IP address of the access switch and the IP address of the preset configuration file server;
and the configuration file downloading subunit is used for downloading the corresponding preset configuration file from the preset configuration file server according to the preset configuration file name.
7. The apparatus of claim 5, wherein the preset profile name comprises an IP address and a vendor name of the access switch.
8. The apparatus according to any one of claims 5-7, wherein the format of the pre-port description is:
the method comprises the steps that the TO-geographic position of an access switch, the name of a data center where the access switch is located, the equipment type, the model of the access switch, the fourth byte of a preset IP address of the access switch, a preset keyword, a port, the third byte of the preset IP address of the access switch and the fourth byte of the preset IP address of a preset configuration file server are arranged; or the following steps:
the method comprises the steps of determining the location of a TO-access switch, determining the location of the.
CN201510389928.8A 2015-07-06 2015-07-06 The automatic deployment method and device of a kind of access switch Active CN105071948B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510389928.8A CN105071948B (en) 2015-07-06 2015-07-06 The automatic deployment method and device of a kind of access switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510389928.8A CN105071948B (en) 2015-07-06 2015-07-06 The automatic deployment method and device of a kind of access switch

Publications (2)

Publication Number Publication Date
CN105071948A CN105071948A (en) 2015-11-18
CN105071948B true CN105071948B (en) 2018-04-17

Family

ID=54501235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510389928.8A Active CN105071948B (en) 2015-07-06 2015-07-06 The automatic deployment method and device of a kind of access switch

Country Status (1)

Country Link
CN (1) CN105071948B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161096A (en) * 2016-07-15 2016-11-23 北京奇虎科技有限公司 Port configuration method and device

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105634829B (en) * 2016-03-08 2019-09-13 浙江安正科技股份有限公司 A kind of network device management method
CN108259191A (en) * 2016-12-28 2018-07-06 南宁富桂精密工业有限公司 Exchange configuration method and system
CN106921521B (en) * 2017-02-28 2020-05-08 迈普通信技术股份有限公司 Equipment information loading method and network equipment
CN109474443B (en) * 2017-09-07 2022-10-18 中移(杭州)信息技术有限公司 Configuration method, device and system of newly added server and communication equipment
CN107979497B (en) * 2017-12-26 2021-08-13 北京搜狐新媒体信息技术有限公司 Automatic configuration method and device
CN109547267A (en) * 2019-01-02 2019-03-29 京东方科技集团股份有限公司 LAN system and core layer, access-layer switch and its configuration method
CN112217659B (en) * 2019-07-11 2023-04-25 奇安信科技集团股份有限公司 Method and system for adding client terminal equipment to SD-WAN system
CN111698168B (en) * 2020-05-20 2022-06-28 北京吉安金芯信息技术有限公司 Message processing method, device, storage medium and processor

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094099A (en) * 2007-06-19 2007-12-26 中兴通讯股份有限公司 Configuration system and method for multiple exchanges
CN101951325A (en) * 2010-09-14 2011-01-19 太仓市同维电子有限公司 Network terminal configuration system based on automatic discovery and configuration method thereof
CN104092630A (en) * 2014-07-18 2014-10-08 国家电网公司 Configuration file for automatic operation of switchboards and operation method thereof
CN104202192A (en) * 2014-09-05 2014-12-10 上海斐讯数据通信技术有限公司 Method for configuring exchangers in batches
CN104320292A (en) * 2014-11-27 2015-01-28 上海斐讯数据通信技术有限公司 Switch configuration management method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030107590A1 (en) * 2001-11-07 2003-06-12 Phillippe Levillain Policy rule management for QoS provisioning

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094099A (en) * 2007-06-19 2007-12-26 中兴通讯股份有限公司 Configuration system and method for multiple exchanges
CN101951325A (en) * 2010-09-14 2011-01-19 太仓市同维电子有限公司 Network terminal configuration system based on automatic discovery and configuration method thereof
CN104092630A (en) * 2014-07-18 2014-10-08 国家电网公司 Configuration file for automatic operation of switchboards and operation method thereof
CN104202192A (en) * 2014-09-05 2014-12-10 上海斐讯数据通信技术有限公司 Method for configuring exchangers in batches
CN104320292A (en) * 2014-11-27 2015-01-28 上海斐讯数据通信技术有限公司 Switch configuration management method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161096A (en) * 2016-07-15 2016-11-23 北京奇虎科技有限公司 Port configuration method and device

Also Published As

Publication number Publication date
CN105071948A (en) 2015-11-18

Similar Documents

Publication Publication Date Title
CN105071948B (en) The automatic deployment method and device of a kind of access switch
RU2549126C2 (en) Method and system for installing and updating software of application terminal in home network
EP2932387B1 (en) Deploying a hardware inventory as a cloud-computing stamp
CN110879712B (en) Cloud data center physical host installation method and related device
US9137111B2 (en) Discovering, validating, and configuring hardware-inventory components
US10419285B2 (en) Configuration management device, configuration interface device and method for vendor-independent network device configuration
CN107566165B (en) Method and system for discovering and deploying available resources of power cloud data center
CN109039788B (en) Port configuration method and device of network equipment and storage medium
CN105224466A (en) A kind of integration test method based on Docker and system
CN106126273A (en) A kind of method of upgrading BIOS
Juan et al. Multi-master ros systems
CN105553741A (en) Automatic deployment method for application system based on cloud computing
CN106325953A (en) Weblogic cluster one-key automatic deployment method
CN102693141A (en) BMC based Firmware automatic update system of programmable logic device of server
CN102447732A (en) Method for intelligent configuration of host computer embedded environment during BMC (Baseboard Management Controller) development
CN104615455A (en) Remote upgrading method and device for IPMC program of ATCA structure
CN106502713A (en) A kind of method for upgrading software and system
CN104778105A (en) Method for rapidly testing compatibility of server and RHEL (red hat enterprise software language) based on virtual machine
CN107479888A (en) Operating system mirror image deployment services device method, system, equipment and storage medium
CN105430096A (en) Automatic installation method and device for parallel file system
CN106708573A (en) System and method used for automatic installation of Hadoop cluster
CN109218462B (en) IP distribution method of physical host of cloud data center
CN102567050B (en) The method and apparatus of B/S system remote deploying projects
CN110377297A (en) A kind of image file curing system, method, apparatus and relevant device
CN107515760B (en) OpenStack multi-node automatic installation method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20160810

Address after: 100094 No. 4, building 8, No. 120, West flourishing road, Haidian District, Beijing

Applicant after: Beijing cloud Qizhi new Polytron Technologies Inc

Address before: 430074 Jingzhou city of Hubei province Tianmen Tong Li Wan District Office of Jingling No. 99

Applicant before: Li Yani

GR01 Patent grant
GR01 Patent grant