CN102123055A - Ethernet switch and method for modifying configuration of same - Google Patents

Ethernet switch and method for modifying configuration of same Download PDF

Info

Publication number
CN102123055A
CN102123055A CN2011100979460A CN201110097946A CN102123055A CN 102123055 A CN102123055 A CN 102123055A CN 2011100979460 A CN2011100979460 A CN 2011100979460A CN 201110097946 A CN201110097946 A CN 201110097946A CN 102123055 A CN102123055 A CN 102123055A
Authority
CN
China
Prior art keywords
configuration
switch
ethernet switch
port phy
modification condition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011100979460A
Other languages
Chinese (zh)
Other versions
CN102123055B (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.)
Xinhuasan Intelligent Terminal Co ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN 201110097946 priority Critical patent/CN102123055B/en
Publication of CN102123055A publication Critical patent/CN102123055A/en
Application granted granted Critical
Publication of CN102123055B publication Critical patent/CN102123055B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides an Ethernet switch and a method for modifying the configuration of the same. The method comprises the following steps of: presetting configuration modification conditions, wherein the configuration modification conditions comprise the PHY (Physical Layer) state of a port, configuration function items and the corresponding relationship of configuration options of the Ethernet switch; setting the PHY state of the port of the Ethernet switch according to the preset configuration modification conditions; detecting the PHY state of the port of the Ethernet switch per se and judging whether the detected PHY state of the port satisfies the preset configuration modification conditions, by the Ethernet switch; and modifying configurations of the configuration function items in the configuration modification conditions into the configuration options in the configuration modification conditions if the PHY state of the port satisfies the preset configuration modification conditions. In the invention, the configurations of the Ethernet switch can be modified without the help of a computer.

Description

A kind of method and Ethernet switch of revising the Ethernet switch configuration
Technical field
The present invention relates to electronic device field, particularly a kind of method and Ethernet switch of revising the Ethernet switch configuration.
Background technology
Ethernet (Ethernet) is meant by Xerox company and creates and by the baseband LAN standard that Xerox, Intel and DEC develop jointly, use IEEE 802.3 standards, is that existing now local area network (LAN) adopts the most general communication technology.Ethernet switch (Ethernet Switch) is the multiport bridge equipment of Ethernet, has a plurality of ports, and port speed can be different, can carry out data communication simultaneously between its multiple source port and the destination interface.Ethernet switch generally is made up of central processing unit (CPU), memory, media interviews control (MAC) controller and physical layer (PHY) controller, wherein, random-access memory (ram), electrically erasable read-only memory (EEPROM), flash memory (FLASH) all can be used as the memory of Ethernet switch.The part chips of Ethernet exchange can integrate mac controller and PHY.
Behind the Ethernet switch electrifying startup, at first need to carry out hardware initialization by boot, for example initialization CPU and memory, move in RAM by the appointment working procedure in the boot program loads memory then, by specifying working procedure to read configuration file in the memory, carry out the value setting of the register of switch mac controller and PHY according to the parameter of configuration file and finish whole starting process at last.
The configuration of modification Ethernet switch, reality is exactly to revise the value of Ethernet switch mac controller register.The most frequently used method is according to specific protocol at present, for example HTTP(Hypertext Transport Protocol), Telnet (TELNET), Simple Network Management Protocol (SNMP) perhaps log on working procedure among the Ethernet switch RAM by serial ports (Serial Interface) and read and write the register of mac controller and be configured.
Ethernet switch is divided into webmaster type switch and no webmaster type switch.Webmaster type switch is because ram space is more abundant, usually can move network management system, allow the user to sign in to the network management system of moving in the Ethernet switch by various protocols, the IOS network management system of Cisco System Co. is for example carried out equipment disposition by the register that network management system is read and write mac controller then.No webmaster type switch generally can only move particular software application on computers because ram space is less, is configured by the register of reading and writing mac controller with the specific software matched software program that moves in the serial interface access ram space.
Method according to present modification Ethernet switch configuration is lacking the occasion of computer, is difficult to be configured, and for example at the cell unit power distribution station switch is installed, if there is not portable notebook computer, is difficult to equipment is configured, and makes the equipment operate as normal.Even there is computer to use, under the situation that can't confirm webmaster program concrete configuration, also be difficult to carry out equipment disposition, the Ethernet switch that for example in network, moves, if can't confirm or forget switch management IP or Management VLAN port, then can't use telnet protocol access facility network guard systems such as HTTP, TELNET, SNMP, and then equipment is configured.For no webmaster type switch, domestic consumer is owing to can't obtain particular software application, also can't revise configuration, for example not having webmaster type switch default configuration sets when equipment dispatches from the factory, if default configuration also is not suitable for user's network environment, domestic consumer also has no idea to revise switch configuration and solves problem.
In sum, the method for revising Ethernet switch configuration at present can't be carried out under the situation of computer not having; And, for webmaster type switch, also need to understand the concrete configuration of webmaster program; For no webmaster type switch, domestic consumer's have no idea to revise according to demand configuration of switch.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of method of revising the Ethernet switch configuration, this method need just can not revised the configuration of Ethernet switch by computer.
In order to achieve the above object, the invention provides a kind of method of revising the Ethernet switch configuration, this method comprises:
Set in advance the configuration modification condition, the corresponding relation of the port PHY state that described configuration modification condition is an Ethernet switch, configuration feature item, config option;
When needs are revised the configuration of Ethernet switch, according to the port physical layer PHY state of default configuration modification condition setting Ethernet switch;
Ethernet switch detects self port PHY state, and judge whether detected port PHY state satisfies described default configuration modification condition, if then revise the config option in the described configuration modification condition of being configured to of configuration feature item in the described configuration modification condition.
The present invention also provides a kind of Ethernet switch, and this Ethernet switch comprises: dispensing unit, detecting unit;
Described dispensing unit is used to set in advance the configuration modification condition, the corresponding relation of the port PHY state that described configuration modification condition is an Ethernet switch, configuration feature item, config option;
Described detecting unit, be used to detect self port PHY state, and judge whether detected port PHY state satisfies the configuration modification condition that dispensing unit sets in advance, if then revise the config option in the described configuration modification condition of being configured to of configuration feature item in the described configuration modification condition.
By top technical scheme as can be known, the method of this modification Ethernet switch configuration of the present invention, configuration modification condition by pre-configured Ethernet switch, when needs are revised certain configuration feature item of Ethernet switch, port PHY state according to pre-configured configuration modification condition setting Ethernet switch, when switch detects port PHY state and satisfies the configuration modification condition, with the configuration modification of the configuration feature item in the configuration modification condition is config option in this configuration modification condition, thereby need just can not revise the configuration of Ethernet switch by computer.
Description of drawings
Fig. 1 is the method flow diagram that the embodiment of the invention is revised the Ethernet switch configuration;
Fig. 2 is the structural representation of embodiment of the invention Ethernet switch.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with the accompanying drawing embodiment that develops simultaneously, the present invention is described in detail.
Referring to Fig. 1, Fig. 1 is the method flow diagram that the embodiment of the invention is revised the Ethernet switch configuration, may further comprise the steps:
Step 101, set in advance the configuration modification condition, the corresponding relation of the port PHY state that described configuration modification condition is an Ethernet switch, configuration feature item, config option.
Port PHY state described here is meant all of the port combinations of states in the Ethernet switch.In Ethernet, according to the transmission medium difference, ethernet port comprises RJ45, BNC, three kinds of network ports of AUI.According to the difference of port, each port status is to be determined by one or more combinations of its duplex state, operating rate and enabled state.RJ45 port with gigabit Ethernet is an example, and each RJ45 port has three kinds of operating rate: 10M, 100M, 1000M; Two kinds of duplex states: half-duplex and full duplex; Two kinds of enabled state: enable (UP) state and do not enable (DOWN); When the enabled state of this RJ45 port when not enabling, has only a kind of DOWN state, and in the enabled state of this RJ45 port when enabling, 10M/ half-duplex (Half), 10M/ full duplex (Full), 100M/Half, 100M/Full, 1000M/Half, 1000M/Full totally 6 kinds of states are then arranged, so the RJ45 port of each gigabit Ethernet has 7 kinds of port statuss.Supposing has 24 RJ45 ports in the Ethernet switch, then this Ethernet switch has 7 24 power kind port statuss combination.Need to prove that port involved in the present invention is not limited to the RJ45 port.
Described configuration feature item also is configurable functionality item, for example a flow control function of Ethernet switch; For any one configuration feature item, all need concrete config option corresponding to this configuration feature item, for example, to the config option of flow control can be: enable flow control, or forbid flow control.
The concrete implication of the corresponding relation of the port PHY state of described Ethernet switch, configuration feature item, config option is: when the port PHY of Ethernet switch state is identical with port PHY state in this corresponding relation, be config option in this corresponding relation with the configuration modification of configuration feature item in this corresponding relation.
Step 102, when needs are revised the configuration of Ethernet switch, according to the port physical layer PHY state of default configuration modification condition setting Ethernet switch.
In this step, after being provided with the port PHY state of Ethernet switch, the staff need wait for that Preset Time at least just allows to change the port PHY state of Ethernet switch, otherwise, may cause revising the configuration failure of Ethernet switch.Here, described Preset Time is the time interval of Ethernet detection self port PHY state.
Step 103, Ethernet switch detect once self port PHY state every Preset Time, and judge whether detected port PHY state satisfies the configuration modification condition, if then revise the config option in the described configuration modification condition of being configured to of configuration feature item in the described configuration modification condition.
In this step, Ethernet switch can periodically detect the port PHY state of self, and when its port PHY state satisfies default configuration modification condition, revises the configuration of Ethernet switch.Here, the described method of judging whether detected port PHY state satisfies the configuration modification condition is: search described default configuration modification condition according to described port PHY port status, if the port PHY state that finds in one of them configuration modification condition is identical with detected port PHY state, then detected port PHY state satisfies the configuration modification condition.
In addition, in revising described configuration modification condition before the configuration of configuration feature item, whether the current configuration that can also judge earlier configuration feature item in the described configuration modification condition is identical with config option in the described configuration modification condition, if it is identical, then do not need to revise the configuration of configuration feature item in the described configuration modification condition, still keep its current configuration constant,, then revise the config option in the described configuration modification condition of being configured to of configuration feature item in the described configuration modification condition if inequality.
Among Fig. 1, Ethernet switch is that the port PHY state to self detects every the set time, and determines to be configured modification in detection, triggers configuration modification.In fact, also can adopt the mode that Ethernet switch is configured modification that triggers at once, for example, set in advance triggering signal, and after being provided with port PHY state this triggering signal of manual triggers, after Ethernet switch receives this triggering signal, detect the port PHY state of self immediately, and carry out corresponding configuration modification according to testing result.But,, therefore, mainly scheme shown in Figure 1 is further specified among the present invention because the setting of triggering signal also needs extra software and hardware support.
In technical scheme of the present invention shown in Figure 1, deploy switch can also be set further.Before the configuration of revising Ethernet switch, further comprise: the open configuration switch allows to revise the configuration of Ethernet switch; In the described configuration modification condition of described modification the configuration feature item be configured to need also further to judge whether deploy switch is opened before the configuration in the described configuration modification condition, if open, then revise the config option in the configuration modification condition of being configured to of configuration feature item in the described configuration modification condition, otherwise, still keep the current configuration of the configuration feature item in the described configuration modification condition constant; After finishing the configuration modification of Ethernet switch, further comprise: close deploy switch, forbid revising the configuration of Ethernet switch.Deploy switch is set avoids the operation of the non-initiative of user to cause switch configuration, can also reduce the erasable number of times of non-the being forced to property of memory by abnormal change.
The condition of enabling of deploy switch can be that the port negotiation with Ethernet switch is the PHY state of appointment, also promptly sets in advance deploy switch and opens with corresponding relation, the deploy switch of the port PHY state of Ethernet switch and close corresponding relation with the port PHY state of Ethernet switch.
The method of described open configuration switch is: the port PHY state of Ethernet switch is set to deploy switch and opens corresponding port PHY state, and waits for Preset Time at least; It is deploy switch when opening corresponding port PHY state that Ethernet switch detects port PHY state, and deploy switch is set to opening.
Described method of closing deploy switch is: the port PHY state of Ethernet switch is set to deploy switch and closes corresponding port PHY state, and waits for Preset Time at least; It is deploy switch when closing corresponding port PHY state that Ethernet switch detects port PHY state, and deploy switch is set to closed condition.
The present invention can also set in advance the configuration take-effective mode.The configuration take-effective mode comprise come into force and restart after come into force two kinds.The mode that comes into force simple and fast is applicable to the configuration of no webmaster type switch, in said method, and the mode of the configuration take-effective mode that comes into force exactly.The mode that comes into force after restarting can be avoided the network hit that causes behind the configuration modification and the problem of network topology concussion, is applicable to the configuration of webmaster type switch.
The present invention has also set in advance the deploy switch corresponding parameters.
Under the mode of coming into force, the method that deploy switch is set to opening is: the deploy switch corresponding parameters is set to deploy switch and opens corresponding value, and for example the corresponding value of deploy switch unlatching is 1; The method that deploy switch is set to closed condition is: the deploy switch corresponding parameters is set to deploy switch and closes corresponding value, and for example to close corresponding value be 0 to deploy switch.
Generally, for no webmaster type switch, generally can directly revise the value of the MAC register of each configuration feature item correspondence.Therefore, under the mode of coming into force, for no webmaster type switch, the method that is configured to the config option in the described configuration modification condition of configuration feature item is in the described configuration modification condition of the described modification of step 102: the value that the value of the MAC register of configuration feature item correspondence in the described configuration modification condition is revised as config option correspondence in the described configuration modification condition, the value of correspondence is 1 when for example being configured to enable, and being configured to not enable corresponding value is 0; And, then generally do not allow directly to revise the MAC register value of each configuration feature item correspondence for webmaster type switch.Yet, because the configuration parameter corresponding to each configuration feature item is all arranged in the network management system of moving in the webmaster type switch, therefore, can reach the purpose of the configuration of revising this configuration feature item indirectly by this configuration feature item corresponding parameters in the modification network management system.Therefore, under the mode of coming into force, for webmaster type switch, the method that is configured to the config option in the described configuration modification condition of configuration feature item is in the described configuration modification condition of the described modification of step 102: the value that the configuration parameter in the network management system of configuration feature item correspondence in the described configuration modification condition is revised as config option correspondence in the described configuration modification condition.Revise the parameter in the network management system, for example, technical scheme of the present invention is realized in network management system, support directly to revise parameters in the network management system, the problem that this belongs to specific implementation repeats no more.
If the configuration take-effective mode is set to come into force for after restarting, the port physical layer PHY state of the default configuration modification condition setting Ethernet switch of the described basis of step 102 then, and wait for that at least further comprise: following electricity is restarted Ethernet switch after the Preset Time; The method of the config option that is configured to described configuration modification condition of the configuration feature item of the described configuration modification condition of the described modification of step 103 is: the value of MAC register is revised as the value of config option correspondence in the described configuration modification condition in the configuration file of preserving in the storage space with the Ethernet switch of the configuration feature item correspondence of described configuration modification condition.
Under the mode that comes into force after restarting, in the process of open configuration switch, the port PHY state of described Ethernet switch is set to deploy switch and opens corresponding port PHY state, and waits for that at least further comprise: following electricity is restarted Ethernet switch after the Preset Time; The method that deploy switch is set to opening is: the value of deploy switch correspondence is revised as the value that deploy switch is opened correspondence in the configuration file of preserving in the storage space with Ethernet switch; In closing the process of deploy switch, the port PHY state of described Ethernet switch is set to deploy switch and closes corresponding port PHY state, and waits for that at least further comprise: following electricity is restarted Ethernet switch after the Preset Time; The method that the Ethernet switch deploy switch is set to closed condition is: the value of deploy switch correspondence is revised as the value that deploy switch is closed correspondence in the configuration file of preserving in the storage space with Ethernet switch.
Under the mode that comes into force after restarting, Ethernet switch by reading the configuration file that upgrades in the memory, can be realized the open and close of deploy switch, the purposes such as modification of configuration in the process that electricity is restarted down.
The configuration take-effective mode can be preestablished by the production firm of Ethernet switch, also can be selected by the user.When selecting the configuration take-effective mode voluntarily by the user, the present invention has also set in advance configuration take-effective mode corresponding parameters, also preestablish the corresponding relation of configuration take-effective mode and port PHY state in addition, also be the port PHY state of the port PHY state of Ethernet switch and the come into force corresponding relation of mode and Ethernet switch and restart after the come into force corresponding relation of mode; Before the open configuration switch, the configuration take-effective mode can also further be set, concrete method to set up is: ethernet switch port PHY state is set to the configuration take-effective mode corresponding port PHY state of needs, and wait for Preset Time at least, when Ethernet switch detects port PHY state and comes into force mode corresponding to the mode of coming into force or after restarting, configuration take-effective mode corresponding parameters be set to the mode of coming into force or restart after the come into force value of mode correspondence.Here, the configuration take-effective mode being set only need be provided with once and get final product.
Need to prove, in the method for above-mentioned modification Ethernet switch configuration, wait for Preset Time at least be because: the time interval of detecting the port PHY state of Ethernet switch is described Preset Time, if the stand-by period is less than Preset Time, then might before changing this port PHY state, also not detect preceding this port PHY state of change.For example, after port PHY state is provided with deploy switch and opens, before Ethernet switch detects this port PHY state, just port PHY state is configured such that the corresponding state of energy flow control, then in fact still not unlatching this moment of deploy switch.
So that to revise the modal flow control function that the no webmaster type Ethernet switch of 24 RJ45 ports arranged be example the method for above-mentioned modification Ethernet switch configuration is described below.Suppose Ethernet switch dispatch from the factory be set in advance as follows:
1, the default traffic controlled function of switch is a closed condition, also i.e. enabled state not; Deploy switch is a closed condition; The configuration take-effective mode of switch is the mode of coming into force;
2, the P1-P21 port is the Down state, and when the P22-P24 port was the 10M/Half state, the concrete configuration of the flow control function of modification switch was for enabling flow control;
3, the P1-P8 port is the 10M/half state, and when other port was the Down state, the deploy switch of revising switch was an opening, allowed to revise the configuration of switch;
4, the P9-P16 port is the 10M/Half state, and when other port was the Down state, revising the switch configuration switch was closed condition, forbids revising the configuration of switch;
5, the P17-P24 port is 10M/Half, and when other port was the Down state, the configuration take-effective mode of revising switch came into force for after restarting.
If the user wishes that the configuration take-effective mode with switch is revised as and comes into force after restarting, with the configuration modification of the flow control function of switch for enabling flow control, the cycle of supposing Ethernet switch detection port PHY state is 5 seconds, and then concrete configuration step is as follows:
A, the P17-P24 port of switch is connected the hub with 8 ports (HUB) that operating rate is 10M with general twisted-pair power cable, other port does not connect netting twine, after connection is finished, wait at least 5 seconds, the configuration take-effective mode of switch comes into force after being revised as and restarting; In the time of waiting for, Ethernet switch can detect port PHY state, and according to port PHY state, the configuration take-effective mode is revised as comes into force after restarting.
B, the P1-P8 port of switch is connected the hub with 8 ports (HUB) that operating rate is 10M with general twisted-pair power cable, other port does not connect netting twine, connect finish after, wait at least 5 seconds, electricity under the switch is restarted.In the time of waiting for, Ethernet switch can detect port PHY state, and according to port PHY state, the value of the deploy switch correspondence in the configuration file of preserving in the memory space with Ethernet switch is revised as the value of open configuration switch correspondence, and comes into force after switch is restarted.So far, the deploy switch of switch is opened, and allows to revise the configuration of switch;
C, the P22-P24 port of switch is connected the hub with 8 ports (HUB) that operating rate is 10M with general twisted-pair power cable, other port does not connect netting twine, connect finish after, wait at least 5 seconds, electricity under the switch is restarted.In the time of waiting for, Ethernet switch can detect port PHY state, and according to port PHY state, the value of the flow control function correspondence in the configuration file of preserving in the memory space with Ethernet switch is revised as the value that enables the flow control correspondence, and comes into force after switch is restarted.So far, the flow control function of switch is opened, and also promptly enables;
D, the P9-P16 port of switch is connected the hub with 8 ports (HUB) that operating rate is 10M with general twisted-pair power cable, other port does not connect netting twine, connect finish after, wait at least 5 seconds, electricity under the switch is restarted.In the time of waiting for, Ethernet switch can detect port PHY state, and according to port PHY state, the value of the deploy switch correspondence in the configuration file of preserving in the memory space with Ethernet switch is revised as the value of closing the deploy switch correspondence, and comes into force after switch is restarted.So far, the deploy switch of switch is closed, and forbids revising the configuration of switch.
By above-mentioned A, B, C, four steps of D, the user can realize revising the too configuration of the flow control function of network switch not by computer.Because the gigabit ethernet switch with 24 RJ45 ports has 7 24 power kind port statuss combination, therefore, the basic function that satisfies switch is fully set, uses such as default setting are dispatched from the factory in recovery, and, under the abundant situation of port, to the function of some more complicated, for example division of Virtual Local Area Network etc. also is can be by the different incompatible realizations of port PHY state group in theory.
The present invention also provides a kind of Ethernet switch, and this Ethernet switch support need just can not revised the configuration of this Ethernet switch by computer.
Referring to Fig. 2, Fig. 2 is the structural representation of embodiment of the invention Ethernet switch.This Ethernet switch comprises: dispensing unit 210, detecting unit 220; Wherein,
Dispensing unit 210 is used to set in advance the configuration modification condition, the corresponding relation of the port PHY state that described configuration modification condition is an Ethernet switch, configuration feature item, config option;
Detecting unit 220, be used to detect the port PHY state of Ethernet switch, and judge whether detected port PHY state satisfies the configuration modification condition that dispensing unit 210 sets in advance, if then revise the config option in the described configuration modification condition of being configured to of configuration feature item in the described configuration modification condition.
Described detecting unit 220 comprises: detection sub-unit 221, judging unit 222, performance element 223;
Described detection sub-unit 221 is used for every detecting once self port PHY state, and notifies judging unit 222 with testing result;
Described judging unit 222, be used to judge whether detection sub-unit 221 detected port PHY states satisfy the configuration modification condition that dispensing unit 210 sets in advance, if then notify performance element 223 to revise the configuration of the configuration feature item in the described configuration modification condition;
Described performance element 223 after being used to receive the notice of judging unit 222, is a config option in the described configuration modification condition with the configuration modification of configuration feature item in the described configuration modification condition.
Described judging unit 222 is judged when whether detection sub-unit 221 detected port PHY states satisfy the configuration modification condition that dispensing unit 210 sets in advance, be used for: search described default configuration modification condition according to detected port PHY state, if it is identical with detected port PHY state to find one of them configuration modification condition corresponding port PHY state, then detected port PHY state satisfies the configuration modification condition.
Described judging unit 222 notice performance elements 223 are revised before the configuration of the configuration feature item in the described configuration modification condition, be further used for: whether the current configuration of configuration feature item of judging described configuration modification condition is identical with config option in the described configuration modification condition, if then do not notify performance element 223.
Described dispensing unit 210 is also pre-configured deploy switch, deploy switch opened with corresponding relation, the deploy switch of port PHY state and closed corresponding relation with port PHY state;
Described judging unit 222, be further used for judging whether detection sub-unit 221 detected port PHY states are opened with deploy switch or deploy switch to close corresponding port PHY state identical, if identical, then notify performance element 223 open configuration switches with deploy switch unlatching corresponding port PHY state; If to close corresponding port PHY state identical with deploy switch, then notify performance element 223 to close deploy switch;
Described performance element 223, when being further used for receiving the notice of open configuration switch of judging unit 222, deploy switch is set to opening, receive judging unit 222 close the notice of deploy switch the time, deploy switch is set to closed condition.
The configuration that described judging unit 222 notice performance elements 223 are revised the configuration feature item in the described configuration modification condition is further used for before: judge whether deploy switch is opened, if not, then do not notify performance element 223.
Described dispensing unit 210 has also set in advance the configuration take-effective mode, and mode comes into force after described configuration take-effective mode comprises the mode of coming into force and restarts; The corresponding relation of the port PHY state that sets in advance Ethernet switch and the mode that comes into force, the port PHY state of Ethernet switch and restart after the come into force corresponding relation of mode;
Described judging unit 222, be further used for judging that the detection sub-unit 221 detected port PHY states mode corresponding port PHY state that whether comes into force with the mode of coming into force or after restarting is identical, if mode corresponding port PHY state is identical with coming into force, then notifies performance element 223 that the configuration take-effective mode is revised as and come into force; If with restart after the mode corresponding port PHY state that comes into force identical, come into force after then notifying performance element 223 configuration take-effective modes to be set to restart;
Described performance element 223, be used to receive judging unit 222 the configuration take-effective mode is revised as the notice of the mode of coming into force after, the configuration take-effective mode is revised as coming into force; After receiving the notice of the mode that comes into force after judging unit 222 the configuration take-effective mode is revised as restarted, the configuration take-effective mode is revised as down electricity restarts aftereffect.
Described dispensing unit 210 sets in advance the configuration take-effective mode for coming into force;
When described performance element 223 deploy switchs are set to opening, be used for: described deploy switch corresponding parameters value is set to deploy switch and opens corresponding value;
When described performance element 223 deploy switchs are set to closed condition, be used for: described deploy switch corresponding parameters value is set to deploy switch and closes corresponding value.
Described Ethernet switch is no webmaster type switch;
When described performance element 223 was a config option in the described configuration modification condition with the configuration modification of configuration feature item in the described configuration modification condition, be used for: the value of revising the MAC register of described configuration modification condition configuration feature item correspondence was the value of config option correspondence in the described configuration modification condition;
Perhaps,
Described Ethernet switch is a webmaster type switch;
When described performance element 223 is a config option in the described configuration modification condition with the configuration modification of configuration feature item in the described configuration modification condition of described modification, be used for: the value of revising configuration parameter in the network management system of described configuration modification condition configuration feature item correspondence is the value of config option correspondence in the described configuration modification condition.
Described dispensing unit 210 also sets in advance the configuration take-effective mode and comes into force for after restarting;
When described performance element 223 is a config option in the described configuration modification condition with the configuration modification of configuration feature item in the described configuration modification condition, be used for: the value of the configuration file MAC register of preserving in the storage space with the Ethernet switch of the configuration feature item correspondence of described configuration modification condition is revised as the value of config option correspondence in the described configuration modification condition;
When described performance element 223 deploy switchs are set to opening, be used for: the value of deploy switch correspondence described in the configuration file of preserving in the storage space with Ethernet switch is revised as described deploy switch opens corresponding value;
When described performance element 223 deploy switchs are set to closed condition, be used for: the value of deploy switch correspondence described in the configuration file of preserving in the storage space with Ethernet switch is revised as described deploy switch closes corresponding value.
By top technical scheme as can be known, the method of this modification Ethernet switch configuration of the present invention, the corresponding relation of the port PHY state by setting in advance Ethernet switch, configuration feature item, config option, when needs are revised the configuration of certain configuration feature item of switch, the port of switch is set to corresponding ports PHY state, when switch detects this port PHY state, revise the configuration of this corresponding configuration function items, thereby realize just can not revising the purpose of the configuration of Ethernet switch by computer; In addition, the present invention has also set in advance deploy switch, when needs are revised the configuration of Ethernet switch, the open configuration switch, after configuration modification is finished, close deploy switch, thereby can avoid the configuration of the Ethernet switch that the operation of the non-initiative of user causes to be revised unusually, can also reduce the erasable number of times of non-the being forced to property of memory space; In addition, the present invention can also support the user to select the mode of configuration take-effective.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being made, is equal to replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (15)

1. revise the method that Ethernet switch disposes for one kind, it is characterized in that this method comprises:
Set in advance the configuration modification condition, the corresponding relation of the port PHY state that described configuration modification condition is an Ethernet switch, configuration feature item, config option;
When needs are revised the configuration of Ethernet switch, according to the port physical layer PHY state of default configuration modification condition setting Ethernet switch;
Ethernet switch detects self port PHY state, and judge whether detected port PHY state satisfies described default configuration modification condition, if then revise the config option in the described configuration modification condition of being configured to of configuration feature item in the described configuration modification condition.
2. the method for modification Ethernet switch configuration according to claim 1, it is characterized in that, the described method of judging whether detected port PHY state satisfies described default configuration modification condition is: search described default configuration modification condition according to detected port PHY state, if it is identical with detected port PHY state to find one of them configuration modification condition corresponding port PHY state, then detected port PHY state satisfies the configuration modification condition.
3. the method for modification Ethernet switch configuration according to claim 1 and 2 is characterized in that this method has also set in advance deploy switch;
Further comprise before the port PHY state of the configuration modification condition setting Ethernet switch that described basis is default: the open configuration switch allows to revise the configuration of Ethernet switch;
The config option that is configured in the described configuration modification condition of configuration feature item further comprises before in the described configuration modification condition of described modification: judge whether deploy switch is opened, if not, then keep the current configuration of configuration feature item of described configuration modification condition constant;
The config option that is configured in the described configuration modification condition of configuration feature item further comprises afterwards in the described configuration modification condition of described modification: close deploy switch, forbid revising the configuration of Ethernet switch.
4. the method for modification Ethernet switch according to claim 3 configuration is characterized in that, this method also sets in advance deploy switch and opens with corresponding relation, the deploy switch of port PHY state and close corresponding relation with port PHY state;
The method of described open configuration switch is: according to the described default deploy switch unlatching and the corresponding relation of port PHY state, the port PHY state of Ethernet switch is set to deploy switch and opens corresponding port PHY state; Ethernet switch detects port PHY state when opening corresponding to deploy switch, and deploy switch is set to opening;
Described method of closing deploy switch is: close corresponding relation with port PHY state according to described default deploy switch, the port PHY state of Ethernet switch is set to deploy switch and closes corresponding port PHY state; Ethernet switch detects port PHY state when closing corresponding to deploy switch, and deploy switch is set to closed condition.
5. the method for modification Ethernet switch configuration according to claim 4 is characterized in that this method has also set in advance the configuration take-effective mode, and mode comes into force after described configuration take-effective mode comprises the mode of coming into force and restarts; The port PHY state of the port PHY state of pre-configured Ethernet switch and corresponding relation, the Ethernet switch of the mode that comes into force with restart after the come into force corresponding relation of mode;
It is that the method that comes into force is that the configuration take-effective mode is set: the port PHY state of the Ethernet switch mode corresponding port PHY state that is set to come into force; Ethernet switch detects port PHY state when coming into force mode, and the configuration take-effective mode is set to come into force;
It is that the method that comes into force after restarting is that the configuration take-effective mode is set: mode corresponding port PHY state comes into force after the port PHY state of Ethernet switch is set to restart; Ethernet switch detects port PHY state when coming into force mode after restarting, and the configuration take-effective mode comes into force after being set to restart.
6. according to the method for the configuration of the modification Ethernet switch described in the claim 5, it is characterized in that, set in advance the configuration take-effective mode for coming into force;
Described Ethernet switch is no webmaster type switch;
The config option that is configured in the described configuration modification condition of configuration feature item is in the described configuration modification condition of described modification: the value of revising the MAC register of configuration feature item correspondence in the described configuration modification condition is the value of config option correspondence in the described configuration modification condition;
Perhaps,
Described Ethernet switch is a webmaster type switch;
The config option that is configured in the described configuration modification condition of configuration feature item is in the described configuration modification condition of described modification: the value of revising configuration parameter in the network management system of configuration feature item correspondence in the described configuration modification condition is the value of config option correspondence in the described configuration modification condition.
7. according to the method for the configuration of the modification Ethernet switch described in the claim 5, it is characterized in that, set in advance the configuration take-effective mode and come into force for after restarting;
After the port physical layer PHY state of the configuration modification condition setting Ethernet switch that described basis is default, further comprise: following electricity is restarted Ethernet switch; The config option that is configured in the described configuration modification condition of configuration feature item is in the described configuration modification condition of described modification: the value of MAC register is revised as the value of config option correspondence in the described configuration modification condition in the configuration file of preserving in the storage space with the Ethernet switch of the configuration feature item correspondence of described configuration modification condition;
The port PHY state of described Ethernet switch is set to deploy switch and opens after the corresponding port PHY state, and further comprise: following electricity is restarted Ethernet switch; Described deploy switch is set to opening: the value of deploy switch correspondence described in the configuration file of preserving in the storage space with Ethernet switch is revised as described deploy switch opens corresponding value;
The port PHY state of described Ethernet switch is set to deploy switch and closes after the corresponding port PHY state, and further comprise: following electricity is restarted Ethernet switch; Described deploy switch is set to closed condition: the value of deploy switch correspondence described in the configuration file of preserving in the storage space with Ethernet switch is revised as described deploy switch closes corresponding value.
8. an Ethernet switch is characterized in that, this Ethernet switch comprises: dispensing unit, detecting unit;
Described dispensing unit is used to set in advance the configuration modification condition, the corresponding relation of the port PHY state that described configuration modification condition is an Ethernet switch, configuration feature item, config option;
Described detecting unit, be used to detect the port PHY state of Ethernet switch, and judge whether detected port PHY state satisfies the configuration modification condition that dispensing unit sets in advance, if then revise the config option in the described configuration modification condition of being configured to of configuration feature item in the described configuration modification condition.
9. Ethernet switch according to claim 8 is characterized in that, described detecting unit comprises: detection sub-unit, judging unit, performance element;
Described detection sub-unit is used for every detecting once self port PHY state, and notifies judging unit with testing result;
Described judging unit is used to judge whether the detected port PHY of detection sub-unit state satisfies the configuration modification condition that dispensing unit sets in advance, if then notify performance element to revise the configuration of the configuration feature item in the described configuration modification condition;
Described performance element after being used to receive the notice of judging unit, is a config option in the described configuration modification condition with the configuration modification of configuration feature item in the described configuration modification condition.
10. Ethernet switch according to claim 9, it is characterized in that, when whether the detected port PHY of described judgment unit judges detection sub-unit state satisfies the configuration modification condition that dispensing unit sets in advance, be used for: search described default configuration modification condition according to detected port PHY state, if it is identical with detected port PHY state to find one of them configuration modification condition corresponding port PHY state, then detected port PHY state satisfies the configuration modification condition.
11. according to claim 9 or 10 described Ethernet switches, it is characterized in that described dispensing unit is also pre-configured deploy switch, deploy switch is opened and corresponding relation, the deploy switch of port PHY state are closed corresponding relation with port PHY state;
Described judging unit, be further used for judging whether the detected port PHY of detection sub-unit state is opened with deploy switch or deploy switch to close corresponding port PHY state identical, if identical, then notify performance element open configuration switch with deploy switch unlatching corresponding port PHY state; If to close corresponding port PHY state identical with deploy switch, then notify performance element to close deploy switch;
Described performance element, when being further used for receiving the notice of open configuration switch of judging unit, deploy switch is set to opening, receive judging unit close the notice of deploy switch the time, deploy switch is set to closed condition.
12. Ethernet switch according to claim 11, it is characterized in that, the configuration that described judging unit notice performance element is revised the configuration feature item in the described configuration modification condition is further used for before: judge whether deploy switch is opened, if not, then do not notify performance element.
13. Ethernet switch according to claim 12 is characterized in that, described dispensing unit has also set in advance the configuration take-effective mode, and mode comes into force after described configuration take-effective mode comprises the mode of coming into force and restarts; The corresponding relation of the port PHY state that sets in advance Ethernet switch and the mode that comes into force, the port PHY state of Ethernet switch and restart after the come into force corresponding relation of mode;
Described judging unit, be further used for judging that the detected port PHY of the detection sub-unit state mode corresponding port PHY state that whether comes into force with the mode of coming into force or after restarting is identical, if mode corresponding port PHY state is identical with coming into force, then notifies performance element that the configuration take-effective mode is revised as and come into force; If with restart after the mode corresponding port PHY state that comes into force identical, come into force after then notifying performance element configuration take-effective mode to be set to restart;
Described performance element, be used to receive judging unit the configuration take-effective mode is revised as the notice of the mode of coming into force after, the configuration take-effective mode is revised as coming into force; After receiving the notice of the mode that comes into force after judging unit the configuration take-effective mode is revised as restarted, the configuration take-effective mode is revised as down electricity restarts aftereffect.
14. Ethernet switch according to claim 13 is characterized in that, described dispensing unit sets in advance the configuration take-effective mode for coming into force;
Described Ethernet switch is no webmaster type switch;
When described performance element was a config option in the described configuration modification condition with the configuration modification of configuration feature item in the described configuration modification condition, be used for: the value of revising the MAC register of described configuration modification condition configuration feature item correspondence was the value of config option correspondence in the described configuration modification condition;
Perhaps,
Described Ethernet switch is a webmaster type switch;
When described performance element is a config option in the described configuration modification condition with the configuration modification of configuration feature item in the described configuration modification condition of described modification, be used for: the value of revising configuration parameter in the network management system of described configuration modification condition configuration feature item correspondence is the value of config option correspondence in the described configuration modification condition.
15. Ethernet switch according to claim 13 is characterized in that, described dispensing unit sets in advance the configuration take-effective mode and comes into force for after restarting;
When described performance element is a config option in the described configuration modification condition with the configuration modification of configuration feature item in the described configuration modification condition, be used for: the value of the configuration file MAC register of preserving in the storage space with the Ethernet switch of the configuration feature item correspondence of described configuration modification condition is revised as the value of config option correspondence in the described configuration modification condition;
When described performance element deploy switch is set to opening, be used for: the value of deploy switch correspondence described in the configuration file of preserving in the storage space with Ethernet switch is revised as described deploy switch opens corresponding value;
When described performance element deploy switch is set to closed condition, be used for: the value of deploy switch correspondence described in the configuration file of preserving in the storage space with Ethernet switch is revised as described deploy switch closes corresponding value.
CN 201110097946 2011-04-19 2011-04-19 Ethernet switch and method for modifying configuration of same Active CN102123055B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110097946 CN102123055B (en) 2011-04-19 2011-04-19 Ethernet switch and method for modifying configuration of same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110097946 CN102123055B (en) 2011-04-19 2011-04-19 Ethernet switch and method for modifying configuration of same

Publications (2)

Publication Number Publication Date
CN102123055A true CN102123055A (en) 2011-07-13
CN102123055B CN102123055B (en) 2013-09-25

Family

ID=44251516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110097946 Active CN102123055B (en) 2011-04-19 2011-04-19 Ethernet switch and method for modifying configuration of same

Country Status (1)

Country Link
CN (1) CN102123055B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102364891A (en) * 2011-09-13 2012-02-29 杭州华三通信技术有限公司 Method for upgrading software of embedded Ethernet equipment and embedded Ethernet equipment
CN103236936A (en) * 2013-04-28 2013-08-07 上海斐讯数据通信技术有限公司 Method for protecting network devices
CN103269288A (en) * 2012-12-18 2013-08-28 上海斐讯数据通信技术有限公司 Detection method for port of switchboard
CN103684848A (en) * 2013-10-24 2014-03-26 浙江中控研究院有限公司 Non-management type industrial Ethernet switch capable of automatic configuration and realization method of switch
CN103701618A (en) * 2013-12-27 2014-04-02 上海斐讯数据通信技术有限公司 POE (power over Ethernet) switch port setting power limiting value validating method
CN104539435A (en) * 2015-01-16 2015-04-22 盛科网络(苏州)有限公司 Method and system for saving energy of Ethernet by controlling multiport MAC (Medium Access Control)
CN104869025A (en) * 2014-02-24 2015-08-26 中国移动通信集团广东有限公司 PTN (Packet Transport Network) service configuration parameter detecting method and system
CN105281946A (en) * 2014-05-28 2016-01-27 凯为公司 Method and apparatus for flexible and efficient analytics in a network switch
CN106790715A (en) * 2017-03-14 2017-05-31 深圳市友华通信技术有限公司 One kind is based on terminal configuration optimization implementation method under Remote configuration
CN108206715A (en) * 2017-12-18 2018-06-26 无锡飞天侠科技有限公司 A kind of unmanned vehicle formation flight control data catenary system based on Ethernet
CN109818877A (en) * 2019-01-22 2019-05-28 深圳市网是科技有限公司 A method of the data transmission distance that automatically prolongs is realized by Port detecting algorithm
CN111106949A (en) * 2019-11-15 2020-05-05 苏州浪潮智能科技有限公司 Method and equipment for managing multiple Phy chips of switch
CN113014411A (en) * 2019-12-20 2021-06-22 华为技术有限公司 Method, device and system for managing network device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1764193A (en) * 2005-11-23 2006-04-26 杭州华为三康技术有限公司 Method for renewing address analysis protocol rapidly
US20080092069A1 (en) * 2006-10-13 2008-04-17 Allan Chan Graphical representation of a port security state

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1764193A (en) * 2005-11-23 2006-04-26 杭州华为三康技术有限公司 Method for renewing address analysis protocol rapidly
US20080092069A1 (en) * 2006-10-13 2008-04-17 Allan Chan Graphical representation of a port security state

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102364891A (en) * 2011-09-13 2012-02-29 杭州华三通信技术有限公司 Method for upgrading software of embedded Ethernet equipment and embedded Ethernet equipment
CN102364891B (en) * 2011-09-13 2014-08-27 杭州华三通信技术有限公司 Method for upgrading software of embedded Ethernet equipment and embedded Ethernet equipment
CN103269288A (en) * 2012-12-18 2013-08-28 上海斐讯数据通信技术有限公司 Detection method for port of switchboard
CN103236936A (en) * 2013-04-28 2013-08-07 上海斐讯数据通信技术有限公司 Method for protecting network devices
CN103684848A (en) * 2013-10-24 2014-03-26 浙江中控研究院有限公司 Non-management type industrial Ethernet switch capable of automatic configuration and realization method of switch
CN103684848B (en) * 2013-10-24 2018-01-05 浙江中控研究院有限公司 A kind of non-management type industrial ethernet switch automatically configured and its implementation
CN103701618A (en) * 2013-12-27 2014-04-02 上海斐讯数据通信技术有限公司 POE (power over Ethernet) switch port setting power limiting value validating method
CN104869025A (en) * 2014-02-24 2015-08-26 中国移动通信集团广东有限公司 PTN (Packet Transport Network) service configuration parameter detecting method and system
CN105281946A (en) * 2014-05-28 2016-01-27 凯为公司 Method and apparatus for flexible and efficient analytics in a network switch
CN105281946B (en) * 2014-05-28 2020-02-14 凯为有限责任公司 Method and apparatus for flexible and efficient analysis in a network switch
CN104539435A (en) * 2015-01-16 2015-04-22 盛科网络(苏州)有限公司 Method and system for saving energy of Ethernet by controlling multiport MAC (Medium Access Control)
CN104539435B (en) * 2015-01-16 2018-02-06 盛科网络(苏州)有限公司 A kind of method and system for controlling multiport MAC to realize energy-conservation Ethernet
CN106790715A (en) * 2017-03-14 2017-05-31 深圳市友华通信技术有限公司 One kind is based on terminal configuration optimization implementation method under Remote configuration
CN108206715A (en) * 2017-12-18 2018-06-26 无锡飞天侠科技有限公司 A kind of unmanned vehicle formation flight control data catenary system based on Ethernet
CN108206715B (en) * 2017-12-18 2022-01-18 中交遥感天域科技江苏有限公司 Unmanned vehicles formation flight control data chain system based on ethernet
CN109818877A (en) * 2019-01-22 2019-05-28 深圳市网是科技有限公司 A method of the data transmission distance that automatically prolongs is realized by Port detecting algorithm
CN111106949A (en) * 2019-11-15 2020-05-05 苏州浪潮智能科技有限公司 Method and equipment for managing multiple Phy chips of switch
CN113014411A (en) * 2019-12-20 2021-06-22 华为技术有限公司 Method, device and system for managing network device

Also Published As

Publication number Publication date
CN102123055B (en) 2013-09-25

Similar Documents

Publication Publication Date Title
CN102123055B (en) Ethernet switch and method for modifying configuration of same
CN102725997B (en) Switch method for realizing low power consumption and device thereof and switch
US10652034B2 (en) Controllers with integrated power over ethernet network switches
US9413602B2 (en) System, method, and apparatus for network fabric configuration in data communication networks
CN102315975B (en) Fault processing method based on intelligent resilient framework (IRF) system and equipment thereof
US20070135086A1 (en) Providing detailed information on powered device in system for supplying power over communication link
US11398976B2 (en) Method, device, and system for implementing MUX machine
CN106060909A (en) Network access method and mobile terminal
US10581697B2 (en) SDN controlled PoE management system
CN103607293B (en) A kind of flow rate protecting method and equipment
EP3721584B1 (en) Broadband watchdog
US20190319875A1 (en) Inter-chassis link failure management system
CN105807619A (en) Small household electrical appliance wireless network control method
CN104580744B (en) The control method of terminal, the control device of terminal and terminal
CN104618956A (en) Method and device for controlling cell
EP3633931B1 (en) Method and system for implementing mux machine
CN102734899B (en) Multi-backup dynamic detection control operation method
CN111244919A (en) Distribution network topology self-adaptive identification method suitable for intelligent distributed FA
CN112771754A (en) System and method for providing network connection resilience in a power supply device
CN202042898U (en) Program controlled bypass protection circuit of network equipment
CN101360050B (en) Method and apparatus setting flow control mode
CN103023700A (en) Management operating system and method of information centre hardware equipment
CN102118266A (en) Industrial Ethernet dual-link redundancy technology
US20100031069A1 (en) Method for Managing the Power Transmitted from a Central Network Component to a Decentralized Network Component via a Line
CN103997428A (en) Fast intelligent network interface type detection, configuration and guide 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
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

CP03 Change of name, title or address
TR01 Transfer of patent right

Effective date of registration: 20220602

Address after: 510555 100, room 406, No. 1, Yichuang street, Zhongxin knowledge city, Huangpu District, Guangzhou City, Guangdong Province

Patentee after: Xinhuasan Intelligent Terminal Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right