Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing shows the disclosure
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should be by embodiments set forth here
Limited.On the contrary, it is provided that these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
Embodiments provide a kind of port configuration method, as it is shown in figure 1, described method includes:
101, the model identification information of switch to be configured is obtained.
Wherein, described model identification information can be the unit type title of switch, unit type ID (Identity,
Identification) number etc..Access-layer switch to be configured is specifically as follows etc. for switch to be configured.
Executive agent for the embodiment of the present invention can be to be arranged in configuration service device to configure for switch ports themselves
Device in order to realize the authentication of log equipment, in order to improve safety.
102, from preset configuration instruction database, the port configuration information corresponding with model identification information is obtained.
Wherein, described preset configuration instruction database is preserved the port configuration letter that different model identification information is the most corresponding
Breath.Described port configuration information can be 802.1X configuration information, IP (Internet Protocol Address, internet protocol
View address) address information etc., described port configuration information can comprise the information such as the configuration parameter of port, configuration-direct.Institute
State the port configuration information in preset configuration instruction database to be compiled according to different exchanger informations in advance by technical staff
Write configuration.
For the embodiment of the present invention, the configuration-direct storehouse obtaining pre-setting can be downloaded from public network server, it is possible to
So that the installation kit corresponding at port configuration device to carry preset configuration instruction database, when installing port configuration device, will carry
Preset configuration instruction database preserve in the terminal.When configuration-direct storehouse is updated by needs, for possessing online condition
User, can be connected configuration service device by control centre and complete to automatically update, and for not possessing the user of online condition, permissible
There is provided configuration-direct storehouse craft downloading mode for it, user import accordingly.
103, the port configuration of switch to be configured is carried out according to port configuration information.
For the embodiment of the present invention, can pass through SNMP (Simple Network Management Protocol, simply
NMP) etc. agreement, remotely swap machine port configuration.
Such as, acquire model identification A of switch to be configured, acquire and model from preset configuration instruction database
The port configuration information that mark A is corresponding, the configuration-direct in initiating port configuration information, according to the configuration in port configuration information
Parameter carries out the port configuration of switch to be configured.
A kind of port configuration method that the present invention provides, first obtains the model identification information of switch to be configured;Then
The port configuration information corresponding with described model identification information, described preset configuration instruction database is obtained from preset configuration instruction database
In preserve the port configuration information that different model identification information is respectively corresponding;Institute is carried out finally according to described port configuration information
State the port configuration of switch to be configured.Compared with the port configuration being swapped at present machine by manual type, the present invention from
Preset configuration instruction database obtains the port configuration information corresponding with the model identification information of switch to be configured, and according to this end
Mouth configuration information carries out the port configuration of switch to be configured, it is possible to achieve automatically configures the port of switch, can improve end
The efficiency of mouthful configuration, and manually configure owing to can need not, error probability during configuration can be reduced.
Specifically, another kind of port configuration method is embodiments provided, as in figure 2 it is shown, described method includes:
201, the model identification information of switch to be configured is obtained.
Wherein, the concept explanation of described model identification information is referred in step 101 describe accordingly do not repeat them here.
Access-layer switch to be configured is specifically as follows etc. for switch to be configured.
Executive agent for the embodiment of the present invention can be to be arranged in configuration service device to configure for switch ports themselves
Device.
202, from preset configuration instruction database, the port configuration information corresponding with model identification information is obtained.
Wherein, described preset configuration instruction database is preserved the port configuration letter that different model identification information is the most corresponding
Breath.Described port configuration information can be 802.1X configuration information.Described port configuration information comprises port configuration template.Institute
State port configuration template to carry out writing configuration according to different exchanger informations in advance by technical staff.
Specifically, for the embodiment of the present invention, can set up public port configuration template in advance, it can contain great majority
The configuration parameter of switch ports themselves, and can be that it sets up privately owned port configuration template for some specific switches.Need
To illustrate that, it is provided that the template definition of switch configuration parameter, be adapted to the change of curstomer's site real needs.
203, the port configuration of switch to be configured is carried out according to port configuration information.
Specifically, described step 202 specifically may include that acquisition configuration parameter information from described port configuration template;
The port configuration of described switch to be configured is carried out according to described configuration parameter information.
Such as, acquire model identification B of switch to be configured, acquire and model from preset configuration instruction database
The 802.1X configuration information that mark A is corresponding, obtains joining of 802.1X in this 802.1X configuration information the configuration template comprised
Put parameter information, configuration service device program initiate or forwarded the configuration-direct of control centre, joining according to this 802.1X
Put parameter information and carry out the port configuration of switch to be configured.
For the embodiment of the present invention, from preset configuration instruction database, obtain the model identification information pair with switch to be configured
The port configuration information answered, and the port configuration of switch to be configured is carried out according to this port configuration information, and pass through people at present
Work mode swaps the port configuration of machine and compares, it is possible to achieve automatically configures the 802.1X port of switch, can improve end
The efficiency of mouth configuration, reduces the technology requirement using user, and user need not understand various brands model access-layer switch end
The 802.1X configuration of mouth, and reduce configuration threshold, implementation amount is little, facilitates user to use.
It should be noted that for the different demands meeting user, for the embodiment of the present invention, specifically can be divided into complete from
Dynamic configuration mode and semi-automatic configuration mode, for the switch supported the most completely, user can select to automatically configure pattern,
By configuration service device, the switch ports themselves that can manage terminal and exception equipment is configured;And for semi-automatic configuration mode,
By manager in control panel midpoint arrangement corresponding to switch, and can monitor the state of port configuration at any time.
Specifically, user is different from middle and small scale, and the manager of industry customer can be divided into the posies such as network, software, O&M, and switch is joined
Putting the full-time job belonging to network manager, user uses for convenience, can design special configuration window for network manager
Mouthful, allocation window show the control panel that switch is corresponding, this control panel can show and cascade port, use end
The information such as mouth, unused port, and the switch-access account number cipher etc. related to maintains secrecy by network manager completely
Management.
When user uses semi-automatic configuration mode to swap the configuration of machine port, for the embodiment of the present invention, described step
Can also include before rapid 202: the port to be configured that acquisition user selects in the control panel of described switch to be configured
Identification information, wherein, described identification information can be port name claim, No. ID etc.;Described step 202 specifically may include that basis
Described port configuration information, configures the port to be configured corresponding with described identification information.
Such as, user have selected to be configured No. 1 port in the control panel of switch to be configured, configures according to port
Information, carries out relevant configuration to No. 1 port.
204, the port configuration result of switch to be configured is shown.
It should be noted that by the port configuration result of switch to be configured is shown, it is possible to use family is understood
The terminal port configuring condition of switch, when occurring due to wrong report switch model identification, when causing switch ports themselves configuration error, can
To be adjusted in time.
Further, described method also includes: obtains described preset configuration instruction database from public network server and protects
Deposit.
Specifically, preset configuration instruction database can be merged by tester's compatibility test Final finishing to be submitted to, the most built-in
The switch model configuration-direct set that can support.Later stage operation maintenance personnel is for the not exchange type in compatibility list
Number, coordinate professional and technical personnel and tester to carry out relevant configuration, after success, be uploaded to public network server, shape by tester
The configuration-direct storehouse of Cheng Xin, as control centre can provide configuration entrance, tester manually add the configuration script of support to
The switch of specific model.
Further, described method also includes: obtain pre-establishing from described public network server according to prefixed time interval
Putting the more fresh information of instruction database, wherein, described prefixed time interval can configure according to the actual demand of user, such as,
Prefixed time interval is configurable to 10 days, 15 days etc.;According to described more fresh information, described preset configuration storehouse is updated.
It should be noted that by obtaining preset configuration instruction database more according to prefixed time interval from public network server
Fresh information, and according to more fresh information, preset configuration storehouse is updated, in order to swap the port configuration of machine more accurately.
For the embodiment of the present invention, specifically can apply in the scene that intelligence networks, but be not limited to this, wherein network
Three phases specifically can be divided into certification deployment phase, user learning stage, the stage of automatically configuring.
In certification deployment phase, can pass through WEB (World Wide Web, WWW) certificate scheme, deployment is used for
Network the client controlled, including may be used for inputting the little assistant of certification of authentication information, within a particular process,
Manageable terminal and exception equipment can be identified and mark.Such as, start to combine WEB to redirect and the little assistant of certification
HTTP (Hypertext Transfer Protocol, HTTP) certification, do not do the other control of port level, when
Receive authentication information that terminal sends when being account and cryptogram form, it may be determined that this terminal is manageable terminal,
Such as desktop computer, notebook computer etc., and mark accordingly;When the authentication information receiving terminal transmission is MAC
During (Media Access Control, media interviews control) address format, it may be determined that external equipment as a example by this terminal, as printed
Machine, facsimile machine etc., and mark accordingly, and then can achieve a butt joint and differentiate into layer switch log equipment.
In the user learning stage, terminal use first passes through non-port level other 802.1X authentication mode and carries out dialing and recognize
Card, reserves the time of study authentication to user, in order to user grasps to network needs to carry out the working method of authentication.
In automatically configuring the stage, utilize the client for the control that networks disposed in certification deployment phase, in docking
Enter after layer switch log equipment differentiates, enable backstage configuration service device, and open full-automatic configuration mode or semi-automatic
Configuration mode, by agreements such as SNMP, remotely carries out the 802.1X configuration of access-layer switch port, specifically, first backstage
Configuration service device obtains the model identification of this access-layer switch, then obtains and this model identification from preset configuration instruction database
The port configuration information that information is corresponding, obtains the configuration parameter of 802.1X in this port configuration information the configuration template comprised
Information, is initiated or forwarded the configuration-direct of control centre, according to the configuration parameter of this 802.1X by configuration service device program
Information carries out the port configuration of this access-layer switch automatically, and then accomplishes that the other security protection of port level manages, it is not necessary to pass through
Manual type carries out the port of manual configuration access-layer switch, can improve the efficiency of port configuration.
Further, disposed before user has unloaded terminal for network the client controlled time, can by this eventually
The port that end is corresponding carries out closing or carry out network and accesses limited, refuses other certifications request, in order to improve safety.
The another kind of port configuration method that the present invention provides, first obtains the model identification information of switch to be configured;So
After from preset configuration instruction database, obtain the port configuration information corresponding with described model identification information, the instruction of described preset configuration
Storehouse is preserved the port configuration information that different model identification information is the most corresponding;Carry out finally according to described port configuration information
The port configuration of described switch to be configured.Compared with the port configuration being swapped machine at present by manual type, the present invention
The port configuration information corresponding with the model identification information of switch to be configured is obtained from preset configuration instruction database, and according to this
Port configuration information carries out the port configuration of switch to be configured, it is possible to achieve automatically configures the port of switch, can improve
The efficiency of port configuration, and manually configure owing to can need not, error probability during configuration can be reduced.
Further, as implementing of method described in Fig. 1, embodiments provide a kind of port configuration dress
Put, as it is shown on figure 3, described device includes: acquiring unit 31, dispensing unit 32.
Described acquiring unit 31, may be used for obtaining the model identification information of switch to be configured.
Described acquiring unit 31, it is also possible to corresponding with described model identification information for obtaining from preset configuration instruction database
Port configuration information, described preset configuration instruction database is preserved the port configuration letter that different model identification information is respectively corresponding
Breath.
Described dispensing unit 32, may be used for according to described acquiring unit 31 obtain port configuration information carry out described in treat
The port configuration of configuration switch.
It should be noted that a kind of port that the embodiment of the present invention provides configures other of each functional unit involved by device
Corresponding description, the corresponding description being referred in Fig. 1, do not repeat them here.
A kind of port configuration device that the present invention provides, first obtains the model identification information of switch to be configured;Then
The port configuration information corresponding with described model identification information, described preset configuration instruction database is obtained from preset configuration instruction database
In preserve the port configuration information that different model identification information is respectively corresponding;Institute is carried out finally according to described port configuration information
State the port configuration of switch to be configured.Compared with the port configuration being swapped at present machine by manual type, the present invention from
Preset configuration instruction database obtains the port configuration information corresponding with the model identification information of switch to be configured, and according to this end
Mouth configuration information carries out the port configuration of switch to be configured, it is possible to achieve automatically configures the port of switch, can improve end
The efficiency of mouthful configuration, and manually configure owing to can need not, error probability during configuration can be reduced.
Further, as implementing of method described in Fig. 2, embodiments provide another kind of port configuration dress
Putting, as shown in Figure 4, described device includes: acquiring unit 41, dispensing unit 42.
Described acquiring unit 41, may be used for obtaining the model identification information of switch to be configured.
Described acquiring unit 41, it is also possible to corresponding with described model identification information for obtaining from preset configuration instruction database
Port configuration information, described preset configuration instruction database is preserved the port configuration letter that different model identification information is respectively corresponding
Breath.
Described dispensing unit 42, may be used for according to described acquiring unit 41 obtain port configuration information carry out described in treat
The port configuration of configuration switch.
Alternatively, described port configuration information comprises port configuration template.
Specifically, described dispensing unit 42 includes: acquisition module 421, configuration module 422.
Described acquisition module 421, may be used for obtaining configuration parameter information from described port configuration template.
Described configuration module 422, the configuration parameter information according to the acquisition of described acquisition module 421 that may be used for carries out described
The port configuration of switch to be configured.
Described acquiring unit 41, it is also possible to for obtaining what user selected in the control panel of described switch to be configured
The identification information of port to be configured.
Described dispensing unit 42, specifically may be used for, according to described port configuration information, obtaining with described acquiring unit
Port to be configured corresponding to identification information configure.
Further, described device also includes: display unit 43.
Described display unit 43, the port configuration that may be used for the switch to be configured to the configuration of described dispensing unit 42 is tied
Fruit shows.
Further, described device also includes: storage unit 44.
Described acquiring unit 41, it is also possible to for obtaining described preset configuration instruction database from public network server.
Described storage unit 44, may be used for the preset configuration instruction database by described acquiring unit 41 obtains and preserves.
Further, described device also includes: updating block 45.
Described acquiring unit 41, it is also possible to for obtaining pre-establishing from described public network server according to prefixed time interval
Put the more fresh information of instruction database.
Described updating block 45, may be used for the more fresh information according to the acquisition of described acquiring unit 41 to described preset configuration
Storehouse is updated.
Alternatively, described port configuration information can be 802.1X configuration information.
It should be noted that the another kind of port that the embodiment of the present invention provides configures its of each functional unit involved by device
He describes accordingly, the corresponding description being referred in Fig. 2, does not repeats them here.
The another kind of port configuration device that the present invention provides, first obtains the model identification information of switch to be configured;So
After from preset configuration instruction database, obtain the port configuration information corresponding with described model identification information, the instruction of described preset configuration
Storehouse is preserved the port configuration information that different model identification information is the most corresponding;Carry out finally according to described port configuration information
The port configuration of described switch to be configured.Compared with the port configuration being swapped machine at present by manual type, the present invention
The port configuration information corresponding with the model identification information of switch to be configured is obtained from preset configuration instruction database, and according to this
Port configuration information carries out the port configuration of switch to be configured, it is possible to achieve automatically configures the port of switch, can improve
The efficiency of port configuration, and manually configure owing to can need not, error probability during configuration can be reduced.
Embodiment of the invention discloses that:
A1, a kind of port configuration method, including:
Obtain the model identification information of switch to be configured;
The port configuration information corresponding with described model identification information, described pre-establishing is obtained from preset configuration instruction database
Put and instruction database is preserved the port configuration information that different model identification information is the most corresponding;
The port configuration of described switch to be configured is carried out according to described port configuration information.
A2, port configuration method as described in A 1, comprise port configuration template in described port configuration information, described
The port configuration carrying out described switch to be configured according to described port configuration information includes:
Configuration parameter information is obtained from described port configuration template;
The port configuration of described switch to be configured is carried out according to described configuration parameter information.
A 3, port configuration method as described in A 1, described carry out described friendship to be configured according to described port configuration information
Before the port configuration changed planes, described method also includes:
Obtain the identification information of the port to be configured that user selects in the control panel of described switch to be configured;
Described according to described port configuration information carry out described switch to be configured port configuration include:
According to described port configuration information, the to be configured port corresponding with described identification information is configured.
A 4, port configuration method as described in A 1, described will carry out according to described port configuration information described to be configured
After the port configuration of switch, described method also includes:
The port configuration result of described switch to be configured is shown.
A 5, port configuration method as described in A1, described method also includes:
From public network server, obtain described preset configuration instruction database and preserve.
A 6, port configuration method as described in A 5, described method also includes:
From described public network server, the more fresh information of preset configuration instruction database is obtained according to prefixed time interval;
According to described more fresh information, described preset configuration storehouse is updated.
A 7, port configuration method as described in any one of A 1-A 6, described port configuration information is 802.1X configuration letter
Breath.
B8, a kind of port configuration device, including:
Acquiring unit, for obtaining the model identification information of switch to be configured;
Described acquiring unit, is additionally operable to from preset configuration instruction database obtain the port corresponding with described model identification information
Configuration information, preserves the port configuration information that different model identification information is the most corresponding in described preset configuration instruction database;
Dispensing unit, carries out described switch to be configured for the port configuration information obtained according to described acquiring unit
Port configures.
B 9, as described in B 8 port configuration device, described port configuration information comprises port configuration template, described in join
Put unit to include:
Acquisition module, for obtaining configuration parameter information from described port configuration template;
Configuration module, carries out described switch to be configured for the configuration parameter information obtained according to described acquisition module
Port configures.
B 10, as described in B 8 port configuration device,
Described acquiring unit, be additionally operable to obtain user select in the control panel of described switch to be configured to be configured
The identification information of port;
Described dispensing unit, specifically for according to described port configuration information, to the mark obtained with described acquiring unit
Port to be configured corresponding to information configures.
B 11, as described in B 8 port configuration device, described device also includes:
Display unit, the port configuration result of the switch to be configured for configuring described dispensing unit shows.
B 12, as described in B 8 port configuration device, described device also includes: storage unit;
Described acquiring unit, is additionally operable to obtain described preset configuration instruction database from public network server;
Described storage unit, preserves for the preset configuration instruction database obtained by described acquiring unit.
B 13, as described in B 12 port configuration device, described device also includes: updating block;
Described acquiring unit, is additionally operable to obtain preset configuration instruction from described public network server according to prefixed time interval
The more fresh information in storehouse;
Described updating block, is carried out more described preset configuration storehouse for the more fresh information obtained according to described acquiring unit
Newly.
B 14, as described in any one of B 8-B 13 port configuration device, described port configuration information be 802.1X configuration
Information.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not has the portion described in detail in certain embodiment
Point, may refer to the associated description of other embodiments.
It is understood that the correlated characteristic in said method and device can mutually reference.It addition, in above-described embodiment
" first ", " second " etc. be for distinguishing each embodiment, and do not represent the quality of each embodiment.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, and the system of foregoing description,
The specific works process of device and unit, is referred to the corresponding process in preceding method embodiment, does not repeats them here.
Algorithm and display are not intrinsic to any certain computer, virtual system or miscellaneous equipment relevant provided herein.
Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system
Structure be apparent from.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use various
Programming language realizes the content of invention described herein, and the description done language-specific above is to disclose this
Bright preferred forms.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that the enforcement of the present invention
Example can be put into practice in the case of not having these details.In some instances, it is not shown specifically known method, structure
And technology, in order to do not obscure the understanding of this description.
Similarly, it will be appreciated that one or more in order to simplify that the disclosure helping understands in each inventive aspect, exist
Above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes
In example, figure or descriptions thereof.But, the method for the disclosure should not be construed to reflect an intention that i.e. required guarantor
The application claims feature more more than the feature being expressly recited in each claim protected.More precisely, as following
Claims reflected as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
The claims following detailed description of the invention are thus expressly incorporated in this detailed description of the invention, the most each claim itself
All as the independent embodiment of the present invention.
Those skilled in the art are appreciated that and can carry out the module in the equipment in embodiment adaptively
Change and they are arranged in one or more equipment different from this embodiment.Can be the module in embodiment or list
Unit or assembly are combined into a module or unit or assembly, and can put them in addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit excludes each other, can use any
Combine all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed appoint
Where method or all processes of equipment or unit are combined.Unless expressly stated otherwise, this specification (includes adjoint power
Profit requires, summary and accompanying drawing) disclosed in each feature can be carried out generation by providing identical, equivalent or the alternative features of similar purpose
Replace.
Although additionally, it will be appreciated by those of skill in the art that embodiments more described herein include other embodiments
Some feature included by rather than further feature, but the combination of the feature of different embodiment means to be in the present invention's
Within the scope of and form different embodiments.Such as, in the following claims, embodiment required for protection appoint
One of meaning can mode use in any combination.
The all parts embodiment of the present invention can realize with hardware, or to run on one or more processor
Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that and can use in practice
Microprocessor or digital signal processor (DSP) realize a kind of port configuration method according to embodiments of the present invention and device
In the some or all functions of some or all parts.The present invention is also implemented as performing as described herein
Part or all equipment of method or device program (such as, computer program and computer program).So
The program realizing the present invention can store on a computer-readable medium, or can have the shape of one or more signal
Formula.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or with any other shape
Formula provides.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference marks that should not will be located between bracket is configured to limitations on claims.Word " comprises " and does not excludes the presence of not
Arrange element in the claims or step.Word "a" or "an" before being positioned at element does not excludes the presence of multiple such
Element.The present invention and can come real by means of including the hardware of some different elements by means of properly programmed computer
Existing.If in the unit claim listing equipment for drying, several in these devices can be by same hardware branch
Specifically embody.Word first, second and third use do not indicate that any order.These word explanations can be run after fame
Claim.