CN105515861B - A kind of network exempts from configuration method and device - Google Patents

A kind of network exempts from configuration method and device Download PDF

Info

Publication number
CN105515861B
CN105515861B CN201510906123.6A CN201510906123A CN105515861B CN 105515861 B CN105515861 B CN 105515861B CN 201510906123 A CN201510906123 A CN 201510906123A CN 105515861 B CN105515861 B CN 105515861B
Authority
CN
China
Prior art keywords
equipment
port
self
vlan
notification packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510906123.6A
Other languages
Chinese (zh)
Other versions
CN105515861A (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.)
Ruijie Networks Co Ltd
Original Assignee
Fujian Star Net Communication 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 Fujian Star Net Communication Co Ltd filed Critical Fujian Star Net Communication Co Ltd
Priority to CN201510906123.6A priority Critical patent/CN105515861B/en
Publication of CN105515861A publication Critical patent/CN105515861A/en
Application granted granted Critical
Publication of CN105515861B publication Critical patent/CN105515861B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0866Checking the configuration

Landscapes

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

Abstract

The present invention provides a kind of network and exempts from configuration method and device.Network of the invention exempts from configuration method and device, by sending self-defined information notification packet from main equipment to from equipment, and port permission vlan list information is carried in messages, make to obtain the vlan list from equipment and be arranged on the port of oneself, further a VLAN in lists carries out address acquisition, in addition to initial main equipment setting needs artificial carry out, subsequent interactive process and configuration from equipment are entirely automatic carry out, it solves network configuration in the prior art and maintenance is complicated, and the problem of being easy error, improve the efficiency of network equipments configuration, reduce the probability of error.

Description

A kind of network exempts from configuration method and device
Technical field
The present invention relates to fields of communication technology more particularly to a kind of network to exempt from configuration method and device.
Background technique
In the network of prior art, there are cable networks and wireless network.Wherein cable network is related to exporting and set Standby, core switch, access switch;Wireless network is related to AC (Wireless Access Point Controller, nothing Line access controller), wireless aps (Access Point, wireless access point) equipment etc..Deployment is required when implementing for network In every equipment carry out manual configuration, entire configuration process is cumbersome, and error-prone, and troubleshooting procedure is fairly cumbersome, expend compared with More energy.
After the network hardware is implemented, there are following main problems for the above process:
1, it needs to set the modes such as alternate serial port or network interface for every in network and configure, process is complicated:
A) equipment needs to be separately provided the address acquisition modes of interface, the specified IP address of static state;
B) the upper connecting port of every equipment needs static specified VLAN (the Virtual Local Area allowed Network, virtual LAN);
C) second line of a couplet port of every equipment needs to specify corresponding accessing user VLAN etc.;
D) security strategy adjustment is carried out to device port;
2, configuration process is easy error, and troubleshooting is cumbersome after error.
It is currently LLDP (Link Layer Discovery Protocol, link to a kind of technology of network device management Layer discovery agreement).By LLDP, Network Management System can grasp topology connection, such as equipment which port with Other equipment are connected, and whether rate, the duplex of the port at link connection both ends match, and administrator can be according to these information Failure is quickly located and checks, but the technology needs the more complicated agreement of persistence maintenance;Furthermore the technology addresses only neighbour The problem of occupying discovery and Breakdown Maintenance, unrealized initial deployment, which is got through, waits core contents.
Summary of the invention
The present invention provides a kind of network and exempts from configuration method and device, multiple to solve network configuration in the prior art and maintenance It is miscellaneous, and it is easy the problem of malfunctioning.
The present invention provides a kind of networks to exempt from configuration method, which comprises
The self-defined information notification packet that main equipment is sent is received, includes port permission vlan list in the message;
The self-defined information notification packet is parsed, obtaining the port allows vlan list, and is arranged to described in reception On the port of self-defined information notification packet;
Allow to carry out address acquisition in a VLAN in vlan list in port.
The present invention also provides a kind of networks to exempt from configuration method, which comprises
Self-defined information notification packet is sent from the port UP to from equipment, is arranged in the message comprising port permission VLAN Table, so that described obtain the port permission vlan list from equipment and be arranged to the reception self-defined information notification packet On port.
The present invention provides a kind of networks to exempt from configuration device, and described device includes:
First packet sending and receiving module, the self-defined information notification packet sent for receiving main equipment wrap in the message Allow vlan list containing port;
Message processing module (MPM), for parsing the self-defined information notification packet, obtaining the port allows vlan list, And it is arranged onto the port for receiving the self-defined information notification packet;
Address acquisition module, for allowing to carry out address acquisition in a VLAN in vlan list in port.
The present invention also provides a kind of networks to exempt from configuration device, and described device includes:
Second packet sending and receiving module, for sending self-defined information notification packet from the port UP to from equipment;
Second message generation module permits in the message comprising port for generating the self-defined information notification packet Perhaps vlan list, so that described obtain the port permission vlan list from equipment and be arranged logical to the self-defined information is received On the port for accusing message.
Network of the invention exempts from configuration method and device, by sending self-defined information notice report from main equipment to from equipment Text, and port permission vlan list information is carried in messages, make to obtain the vlan list from equipment and the end of oneself is set On mouth, further a VLAN in lists carries out address acquisition, in addition to initial main equipment setting needs artificial progress, after Continuous interactive process and the configuration from equipment are entirely automatic progress, solve network configuration in the prior art and maintenance is complicated, And the problem of being easy error, improves the efficiency of network equipments configuration, reduces the probability of error.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with It obtains other drawings based on these drawings.
Fig. 1 is that the network that the embodiment of the present invention one provides exempts from configuration method flow chart;
Fig. 2 is customized message structure schematic diagram;
Fig. 3 is that network provided by Embodiment 2 of the present invention exempts from configuration method flow chart;
Fig. 4 is that the network that the embodiment of the present invention three provides exempts from configuration method flow chart;
Fig. 5 is that the network that the embodiment of the present invention four provides exempts from configuration method flow chart;
Fig. 6 is that the network that the embodiment of the present invention five provides exempts from configuration method flow chart;
Fig. 7 is that the network that the embodiment of the present invention six provides exempts from configuration method flow chart;
Fig. 8 is that the network that the embodiment of the present invention seven provides exempts from configuration device structural schematic diagram;
Fig. 9 is that the network that the embodiment of the present invention eight provides exempts from configuration device structural schematic diagram;
Figure 10 is that the network that the embodiment of the present invention nine provides exempts from configuration device structural schematic diagram;
Figure 11 is that the network that the embodiment of the present invention ten provides exempts from configuration device structural schematic diagram.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
In order to solve the problem of network configuration in the prior art and maintenance complexity and be easy error, the invention proposes A kind of network exempts from allocation plan.
Fig. 1 exempts from configuration method flow chart for the network that the embodiment of the present invention one provides, specifically includes the following steps:
101, the self-defined information notification packet that main equipment is sent is received, is arranged in the message comprising port permission VLAN Table;
The executing subject of the present embodiment be from equipment, in order to realize this programme, the present invention on 802.1Q protocol basis from A kind of information announcement message is defined, main equipment needs to match to from equipment by custom information notification packet transmitting The information set, in the present embodiment, port is contained in the message allows vlan list, and Fig. 2 is a kind of knot of customized message Structure schematic diagram, wherein target MAC (Media Access Control) address is 01-00-C2-00-00-F1, indicates that multicast address, source MAC are equipment itself Port mac address.
Wherein Type, which can according to need, defines different parameters, in the present embodiment, the Value that can be 6 in Type Port is carried in value allows vlan list, as follows:
The corresponding Value of other Type values can certainly be selected to carry the information, here an only example.
201, the self-defined information notification packet is parsed, obtaining the port allows vlan list, and is arranged to reception On the port of the self-defined information notification packet;
After the self-defined information notification packet is received from equipment, this message is parsed, such as parsing Type is 6 corresponding Value value, obtaining port allows vlan list, is arranged onto the port for receiving this message.
Three layer interfaces where the port is arranged are dynamic address acquisition, if receiving setting for customized information announcement message Standby is two-layer equipment, then successively creates three layer interfaces using the VLAN allowed, which is management mouth, preferentially uses VLAN First VLAN in list.
301, allow to carry out address acquisition in a VLAN in vlan list in port.
As preferred mode, the mode for carrying out address acquisition includes at least following two:
Address acquisition is preferentially carried out in preferred VLAN, having not been obtained then allows successively to carry out ground in vlan list in port Location obtains;
Alternatively, allowing successively to carry out address acquisition in vlan list in port;
It include preferred vlan information in the self-defined information notification packet.
For example, preferred vlan information can be carried in the Value that Type value is 5, it is as follows:
Further, it is also possible to the value of selection address acquisition modes is carried in the Value that Type value is 4, it is as follows:
The present embodiment carries port by sending self-defined information notification packet from main equipment to from equipment in messages Allow vlan list information, makes to obtain the vlan list from equipment and be arranged on the port of oneself, further in lists One VLAN carries out address acquisition, in addition to initial main equipment setting need it is artificial carry out, subsequent interactive process and from equipment Configuration be entirely automatic the problem of carrying out, solving network configuration in the prior art and maintenance is complicated, and be easy error, mention The high efficiency of network equipments configuration, reduces the probability of error.
Fig. 3 gives network provided by Embodiment 2 of the present invention and exempts from configuration method flow chart, and embodiment two is in embodiment one On the basis of, it is further comprising the steps of:
401, the self-defined information notification packet is parsed, obtains the second line of a couplet port vlan parameter, and be arranged and arrive the second line of a couplet On port.
It further include second line of a couplet port vlan parameter in the self-defined information notification packet.
For example, second line of a couplet port vlan parameter can be carried in the Value that Type value is 8, it is as follows:
The present embodiment includes second line of a couplet end from the self-defined information notification packet of equipment by further issuing in main equipment Mouth VLAN parameter further solves network in the prior art so that carrying out automatically configuring for VLAN from equipment in second line of a couplet port Configuration and maintenance are complicated, and are easy the problem of malfunctioning, and improve the efficiency of network equipments configuration, reduce the probability of error.
The network that Fig. 4 gives the offer of the embodiment of the present invention three exempts from configuration method flow chart, and embodiment three is in embodiment one On the basis of, further comprise following steps:
501, when this equipment is three layers or three layers or more equipment, the self-defined information notification packet is parsed, obtains institute DHCP relay information is stated, and is arranged onto this equipment.
It further include DHCP relay information in the self-defined information notification packet.
For example, DHCP relay information can be carried in the Value that Type value is 7, it is as follows:
It should be noted that embodiment three can also further comprise above step on the basis of example 2.
The present embodiment is by carrying DHCP relay information in self-defined information notification packet, so that at three layers or three layers or more The DHCP relay information, the i.e. address of Dynamic Host Configuration Protocol server are set in equipment, make DHCP relay equipment of this equipment as this network segment, Subsequent equipment is sent to the Dynamic Host Configuration Protocol server indicated in DHCP relay information when receiving DHCP message, makes Dynamic Host Configuration Protocol server address It is automatically configured in equipment so that DHCP message can be transmitted with cross-network segment, further solves network configuration in the prior art and dimension Shield is complicated, and is easy the problem of malfunctioning, and improves the efficiency of network equipments configuration, reduces the probability of error.
The network that Fig. 5 gives the offer of the embodiment of the present invention four exempts from configuration method flow chart, and example IV is in embodiment one On the basis of, it is before step 101, further comprising the steps of:
601, it receives the principal and subordinate that the first equipment is sent and elects request message, judge the non-first category equipment of this equipment, do not return The principal and subordinate is answered to elect request message, maintaining this equipment is from equipment;Alternatively, sending principal and subordinate from the port UP elects request message, It receives after the principal and subordinate that the second equipment sends elects back message, replys principal and subordinate and elect notification packet, indicate that this equipment is from setting It is standby.
The present invention preferentially makes the equipment of first category as main equipment during principal and subordinate elects to manage its in network Its equipment, such as first category equipment can be three-layer switching equipment, can specify any one equipment when initial and set as master It is standby, it so that first category equipment is become main equipment by the process that principal and subordinate elects.
For currently for for from this equipment of equipment, there are two types of situations to become this equipment from equipment, and a kind of situation is This equipment was originally exactly from equipment, then electing request report when this equipment receives the principal and subordinate that main equipment (i.e. the first equipment) is sent Wen Shi judges the non-first category equipment of this equipment, does not respond the message, and maintaining this equipment is from equipment;Another situation is that this Equipment is originally main equipment, is become during principal and subordinate's election from equipment, i.e., when principal and subordinate elects, sends principal and subordinate from the port UP After electing request message, the first category equipment (i.e. the second equipment) in network has responded principal and subordinate's election after receiving the request message Back message, this equipment then receive the second equipment as main equipment, reply principal and subordinate and elect notification packet to the second equipment, instruction is originally Equipment becomes from equipment.
Wherein principal and subordinate elects request message, principal and subordinate that back message and principal and subordinate is elected to elect the message format of notification packet as schemed It is identical as self-defined information notification packet format shown in 2, three kinds of Type values can be specifically defined to complete the function of principal and subordinate's election Can, it is as follows:
The Value value for being 3 for Type value, the Value value is set as 0 in principal and subordinate's election process, indicates notice network In other equipment principals and subordinates election carrying out, all devices are required to receive principal and subordinate's election information that main equipment is sent, once net Principal and subordinate, which elects, in network completes, such as three-layer switching equipment is elected as main equipment, then Type3 can be arranged by three-layer switching equipment Value value be 1, and be advertised to the slave equipment in network, indicate that election process terminates, all devices no longer receive main equipment and send out The principal and subordinate's election information come.
It should be noted that example IV can also further comprise above on the basis of embodiment two or embodiment three Step.
The present embodiment is made initially by principal and subordinate's election process automatic between master-slave equipment in the feelings of arbitrarily selected main equipment Under condition, preferred first category equipment can finally be made to automatically become main equipment, in conjunction with subsequent automatic configuration process, into One step solves network configuration in the prior art and maintenance is complicated, and is easy the problem of malfunctioning, and improves network equipments configuration Efficiency, reduce the probability of error.
The network that Fig. 6 gives the offer of the embodiment of the present invention five exempts from configuration method flow chart, specifically includes the following steps:
102, self-defined information notification packet is sent from the port UP to from equipment, includes port permission VLAN in the message List, so that described obtain the port permission vlan list from equipment and be arranged to the reception self-defined information notification packet Port on.
The executing subject of the present embodiment is main equipment, and main equipment is issued to be implemented from the self-defined information notification packet of equipment It is had been described in example one, it is one with the operation from equipment that the present embodiment, which is the behavior that main equipment is described from the angle of main equipment, One is corresponding.
The present embodiment carries port by sending self-defined information notification packet from main equipment to from equipment in messages Allow vlan list information, makes to obtain the vlan list from equipment and be arranged on the port of oneself, further in lists One VLAN carries out address acquisition, in addition to initial main equipment setting need it is artificial carry out, subsequent interactive process and from equipment Configuration be entirely automatic the problem of carrying out, solving network configuration in the prior art and maintenance is complicated, and be easy error, mention The high efficiency of network equipments configuration, reduces the probability of error.
The network that Fig. 7 gives the offer of the embodiment of the present invention six exempts from configuration method flow chart, and embodiment six is in embodiment five On the basis of, it is further comprising the steps of before step 102:
202, principal and subordinate is sent from the port UP and elects request message, is not received principal and subordinate in first time period and is elected response report Wen Shi, maintaining this equipment is main equipment;Alternatively, receiving the principal and subordinate that third equipment is sent elects request message, this equipment is judged It for first category equipment, replys principal and subordinate and elects back message, indicate that this equipment is main equipment.
As described in example IV, the present invention sets the equipment of first category as master It is standby to manage other equipment in network, such as first category equipment can be three-layer switching equipment, can specify when initial any One equipment can finally make first category equipment become main equipment as main equipment, by the process that principal and subordinate elects.
For this equipment currently for main equipment, there are two types of situation, it is originally exactly that master set that a kind of situation, which is this equipment, It is standby, after this equipment sends principal and subordinate's election request message from the port UP, does not receive principal and subordinate in first time period and elect response report Text illustrates that other equipment are not first category equipment in network, then this equipment is just used as main equipment;Another situation is that this Equipment is first category equipment, and this equipment is originally to receive original main equipment during principal and subordinate's election from equipment It after the principal and subordinate sent elects request message, replys principal and subordinate and elects back message, indicate that this equipment is main equipment.
The present embodiment is made initially by principal and subordinate's election process automatic between master-slave equipment in the feelings of arbitrarily selected main equipment Under condition, preferred first category equipment can finally be made to automatically become main equipment, in conjunction with subsequent automatic configuration process, into One step solves network configuration in the prior art and maintenance is complicated, and is easy the problem of malfunctioning, and improves network equipments configuration Efficiency, reduce the probability of error.
Fig. 8 is that the network that the embodiment of the present invention seven provides exempts from configuration device structural schematic diagram, and described device includes:
First packet sending and receiving module 10, the self-defined information notification packet sent for receiving main equipment, in the message Allow vlan list comprising port;
Message processing module (MPM) 20, for parsing the self-defined information notification packet, obtaining the port allows VLAN to arrange Table, and be arranged onto the port for receiving the self-defined information notification packet;
Address acquisition module 30, for allowing to carry out address acquisition in a VLAN in vlan list in port.
The address acquisition module 30 specifically can be used for preferentially carrying out address acquisition in preferred VLAN, have not been obtained then Allow successively to carry out address acquisition in vlan list in port;Alternatively, allowing successively to carry out address in vlan list in port to obtain It takes;
It include preferred vlan information in the self-defined information notification packet.
The device of the present embodiment is taken in messages by sending self-defined information notification packet from main equipment to from equipment Port allows vlan list information, makes to obtain the vlan list from equipment and be arranged on the port of oneself, is further arranging A VLAN in table carries out address acquisition, in addition to initial main equipment setting need it is artificial carry out, subsequent interactive process and It is entirely to carry out automatically from the configuration of equipment, solves network configuration in the prior art and maintenance is complicated, and easy error Problem improves the efficiency of network equipments configuration, reduces the probability of error.
It is further alternative, it further include second line of a couplet port vlan parameter in the self-defined information notification packet;
The message processing module (MPM) 20 is also used to parse the self-defined information notification packet, obtains the second line of a couplet port VLAN parameter, and be arranged onto second line of a couplet port.
The device of the present embodiment includes from the self-defined information notification packet of equipment by further issuing in main equipment Second line of a couplet port vlan parameter further solves the prior art so that carrying out automatically configuring for VLAN from equipment in second line of a couplet port Middle network configuration and maintenance are complicated, and are easy the problem of malfunctioning, and improve the efficiency of network equipments configuration, reduce error Probability.
It is further alternative, it further include DHCP relay information in the self-defined information notification packet;
The message processing module (MPM) 20 is also used to parse described customized when this equipment is three layers or three layers or more equipment Information announcement message obtains the DHCP relay information, and is arranged onto this equipment.
The device of the present embodiment is by carrying DHCP relay information in self-defined information notification packet, so that at three layers or three Layer or more the DHCP relay information, the i.e. address of Dynamic Host Configuration Protocol server are set in equipment, make this equipment as in the DHCP of this network segment After equipment, subsequent equipment is sent to the Dynamic Host Configuration Protocol server indicated in DHCP relay information when receiving DHCP message, takes DHCP Business device address is automatically configured in equipment so that DHCP message can be transmitted with cross-network segment, further solves network in the prior art Configuration and maintenance are complicated, and are easy the problem of malfunctioning, and improve the efficiency of network equipments configuration, reduce the probability of error.
Fig. 9 is that the network that the embodiment of the present invention eight provides exempts from configuration device structural schematic diagram, further alternative, the dress Setting further includes the first judging treatmenting module 40;
The first packet sending and receiving module 10 is also used to before receiving the self-defined information notification packet that main equipment is sent, It receives the principal and subordinate that the first equipment is sent and elects request message;
First judging treatmenting module 40 does not respond principal and subordinate's election for judging the non-first category equipment of this equipment Request message, maintaining this equipment is from equipment;
Alternatively,
The first packet sending and receiving module 10, which is also used to send principal and subordinate from the port UP, elects request message, receives second and sets The principal and subordinate that preparation is come elects back message;
First judging treatmenting module 40 is used to elect notification packet for replying principal and subordinate, indicates that this equipment is from setting It is standby;
The first packet sending and receiving module 10 is also used to principal and subordinate election notification packet being sent to the second equipment.
The device of the present embodiment makes initially to set in arbitrarily selected master by principal and subordinate's election process automatic between master-slave equipment In the case where standby, it can finally make preferred first category equipment automatically become main equipment, be automatically configured in conjunction with subsequent Process, further solves network configuration in the prior art and maintenance is complicated, and is easy the problem of malfunctioning, and improves network and sets The efficiency of standby configuration, reduces the probability of error.
Figure 10 is that the network that the embodiment of the present invention nine provides exempts from configuration device structural schematic diagram, and described device includes:
Second packet sending and receiving module 11, for sending self-defined information notification packet from the port UP to from equipment;
Second message generation module 21 includes port in the message for generating the self-defined information notification packet Allow vlan list, so that described obtain the port permission vlan list from equipment and be arranged to the reception self-defined information On the port of notification packet.
The device of the present embodiment is taken in messages by sending self-defined information notification packet from main equipment to from equipment Port allows vlan list information, makes to obtain the vlan list from equipment and be arranged on the port of oneself, is further arranging A VLAN in table carries out address acquisition, in addition to initial main equipment setting need it is artificial carry out, subsequent interactive process and It is entirely to carry out automatically from the configuration of equipment, solves network configuration in the prior art and maintenance is complicated, and easy error Problem improves the efficiency of network equipments configuration, reduces the probability of error.
Figure 11 is that the network that the embodiment of the present invention ten provides exempts from configuration device structural schematic diagram,
Further alternative, described device further includes the second judging treatmenting module 31;
The second packet sending and receiving module 11 be also used to from the port UP to from equipment send self-defined information notification packet it Before, principal and subordinate, which is sent, from the port UP elects request message;
Second judging treatmenting module 31, when electing back message for not receiving principal and subordinate in first time period, Maintaining this equipment is main equipment;
Alternatively,
The second packet sending and receiving module 11 is used to receive the principal and subordinate that third equipment is sent and elects request message;
Second judging treatmenting module 31 replys principal and subordinate and elects response report for judging this equipment for first category equipment Text indicates that this equipment is main equipment.
The device of the present embodiment makes initially to set in arbitrarily selected master by principal and subordinate's election process automatic between master-slave equipment In the case where standby, it can finally make preferred first category equipment automatically become main equipment, be automatically configured in conjunction with subsequent Process, further solves network configuration in the prior art and maintenance is complicated, and is easy the problem of malfunctioning, and improves network and sets The efficiency of standby configuration, reduces the probability of error.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: ROM, RAM, magnetic disk or light The various media that can store program code such as disk.
The apparatus embodiments described above are merely exemplary, wherein module or unit as illustrated by the separation member It may or may not be physically separated, component shown as a unit may or may not be physics list Member, it can it is in one place, or may be distributed at least two network units.It can select according to the actual needs Some or all of the modules therein or unit are selected to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not In the case where paying creative labor, it can understand and implement.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. a kind of network exempts from configuration method, which is characterized in that the described method includes:
The self-defined information notification packet that main equipment is sent is received, includes port permission vlan list in the message;
The self-defined information notification packet is parsed, obtaining the port allows vlan list, and is arranged to described in reception and makes by oneself On the port of adopted information announcement message;
Allow to carry out address acquisition in a VLAN in vlan list in port;
Wherein, described to allow to carry out address in a VLAN in vlan list to obtain to specifically include in port:
Address acquisition is preferentially carried out in preferred VLAN, have not been obtained then allows successively to carry out address in vlan list to obtain in port It takes;
Alternatively, allowing successively to carry out address acquisition in vlan list in port;
It include preferred vlan information in the self-defined information notification packet.
2. the method according to claim 1, wherein
It further include second line of a couplet port vlan parameter in the self-defined information notification packet;
The method also includes:
The self-defined information notification packet is parsed, obtains the second line of a couplet port vlan parameter, and be arranged onto second line of a couplet port.
3. the method according to claim 1, wherein
It further include DHCP relay information in the self-defined information notification packet;
The method also includes:
When this equipment is three layers or three layers or more equipment, the self-defined information notification packet is parsed, is obtained in the DHCP After information, and it is arranged onto this equipment.
4. method according to claim 1-3, which is characterized in that it is described receive main equipment send it is customized Before information announcement message further include:
It receives the principal and subordinate that the first equipment is sent and elects request message, judge the non-first category equipment of this equipment, do not respond the master From election request message, maintaining this equipment is from equipment;
Alternatively, sending principal and subordinate from the port UP elects request message, after receiving principal and subordinate's election back message that the second equipment is sent, It replys principal and subordinate and elects notification packet, indicate that this equipment is from equipment;
Wherein, the first category equipment is the equipment for preferentially managing network as main equipment, is set based on first equipment Standby, second equipment is first category equipment.
5. a kind of network exempts from configuration method, which is characterized in that the described method includes:
Principal and subordinate, which is sent, from the port UP elects request message, when not receiving principal and subordinate's election back message in first time period, dimension Holding this equipment is main equipment;Alternatively, receiving the principal and subordinate that third equipment is sent elects request message, judge this equipment for the first kind Other equipment replys principal and subordinate and elects back message, indicates that this equipment is main equipment;
Self-defined information notification packet is sent from the port UP to from equipment, includes that port allows vlan list in the message, with The port permission vlan list is obtained from equipment described in making and is arranged to the port for receiving the self-defined information notification packet On;
Wherein, the first category equipment is the equipment for preferentially managing network as main equipment, and the third equipment is original Main equipment.
6. a kind of network exempts from configuration device, which is characterized in that described device includes:
First packet sending and receiving module, the self-defined information notification packet sent for receiving main equipment include end in the message Mouth allows vlan list;
Message processing module (MPM), for parsing the self-defined information notification packet, obtaining the port allows vlan list, and sets It sets on the port for receiving the self-defined information notification packet;
Address acquisition module, for allowing to carry out address acquisition in a VLAN in vlan list in port;
Wherein, the address acquisition module is specifically used for preferentially carrying out address acquisition in preferred VLAN, has not been obtained and is then holding Mouth allows successively to carry out address acquisition in vlan list;Alternatively, allowing successively to carry out address acquisition in vlan list in port;
It include preferred vlan information in the self-defined information notification packet.
7. device according to claim 6, which is characterized in that
It further include second line of a couplet port vlan parameter in the self-defined information notification packet;
The message processing module (MPM) is also used to parse the self-defined information notification packet, obtains the second line of a couplet port vlan ginseng Number, and be arranged onto second line of a couplet port.
8. device according to claim 6, which is characterized in that
It further include DHCP relay information in the self-defined information notification packet;
The message processing module (MPM) is also used to that it is logical to parse the self-defined information when this equipment is three layers or three layers or more equipment Message is accused, obtains the DHCP relay information, and be arranged onto this equipment.
9. according to the described in any item devices of claim 6-8, which is characterized in that described device further includes the first judgement processing mould Block;
The first packet sending and receiving module is also used to before receiving the self-defined information notification packet sent of main equipment, receives the The principal and subordinate that one equipment is sent elects request message;
First judging treatmenting module does not respond the principal and subordinate and elects request report for judging the non-first category equipment of this equipment Text, maintaining this equipment is from equipment;
Alternatively,
The first packet sending and receiving module, which is also used to send principal and subordinate from the port UP, elects request message, receives the second equipment and sends Principal and subordinate elect back message;
First judging treatmenting module elects notification packet for replying principal and subordinate, indicates that this equipment is from equipment;
The first packet sending and receiving module is also used to principal and subordinate election notification packet being sent to the second equipment;
Wherein, the first category equipment is the equipment for preferentially managing network as main equipment, is set based on first equipment Standby, second equipment is first category equipment.
10. a kind of network exempts from configuration device, which is characterized in that described device includes:
Second packet sending and receiving module, for sending self-defined information notification packet from the port UP to from equipment;
Second message generation module allows in the message comprising port for generating the self-defined information notification packet Vlan list, so that described obtain the port permission vlan list from equipment and be arranged to the reception self-defined information notice On the port of message;
Wherein, described device further includes the second judging treatmenting module;
The second packet sending and receiving module is also used to from the port UP to before sending self-defined information notification packet from equipment, from UP Port sends principal and subordinate and elects request message;
Second judging treatmenting module when electing back message for not receiving principal and subordinate in first time period, maintains this Equipment is main equipment;
Alternatively,
The second packet sending and receiving module is used to receive the principal and subordinate that third equipment is sent and elects request message;
Second judging treatmenting module replys principal and subordinate and elects back message, refer to for judging this equipment for first category equipment Show that this equipment is main equipment;
Wherein, the first category equipment is the equipment for preferentially managing network as main equipment, and the third equipment is original Main equipment.
CN201510906123.6A 2015-12-09 2015-12-09 A kind of network exempts from configuration method and device Active CN105515861B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510906123.6A CN105515861B (en) 2015-12-09 2015-12-09 A kind of network exempts from configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510906123.6A CN105515861B (en) 2015-12-09 2015-12-09 A kind of network exempts from configuration method and device

Publications (2)

Publication Number Publication Date
CN105515861A CN105515861A (en) 2016-04-20
CN105515861B true CN105515861B (en) 2019-06-14

Family

ID=55723520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510906123.6A Active CN105515861B (en) 2015-12-09 2015-12-09 A kind of network exempts from configuration method and device

Country Status (1)

Country Link
CN (1) CN105515861B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6885039B2 (en) * 2016-12-05 2021-06-09 オムロン株式会社 Communication systems, communication devices and communication programs

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2586558C (en) * 2006-04-28 2012-09-25 Research In Motion Limited Methods and apparatus for reducing power consumption for mobile devices using broadcast-to-unicast message conversion
CN103457767A (en) * 2013-08-23 2013-12-18 福建星网锐捷网络有限公司 Method and system for allocating network devices
CN104639348A (en) * 2013-11-07 2015-05-20 华为技术有限公司 Network device and configuration method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095495B (en) * 2013-01-06 2016-05-25 华为技术有限公司 Network beginning collocation method and device, system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2586558C (en) * 2006-04-28 2012-09-25 Research In Motion Limited Methods and apparatus for reducing power consumption for mobile devices using broadcast-to-unicast message conversion
CN103457767A (en) * 2013-08-23 2013-12-18 福建星网锐捷网络有限公司 Method and system for allocating network devices
CN104639348A (en) * 2013-11-07 2015-05-20 华为技术有限公司 Network device and configuration method thereof

Also Published As

Publication number Publication date
CN105515861A (en) 2016-04-20

Similar Documents

Publication Publication Date Title
CN103607308B (en) Virtual machine multi-network management system under cloud computing environment and method
CN102130776B (en) Communication method and system
US9282057B2 (en) Flexible stacking port
CN102547592B (en) Data transmission method and device
CN105162704B (en) The method and device of multicast replication in Overlay network
CN108282352A (en) Manage the methods, devices and systems of network slice example
CN107438016A (en) Network management, equipment, system and storage medium
EP2458782A1 (en) Method for multiplexing hot backup ports and network system thereof
CN104467951A (en) Optical network unit management method and optical network unit
CN103856358B (en) Ethernet port VLAN (virtual local area network) configuration system and method of EOC (Ethernet over coax) equipment
CN103329485B (en) Network system, the network equipment and network information establishing method
CN102227137A (en) Network digital set top box and method for realizing multiple network access
CN101483571B (en) RRPP configuring method, system and device
CN108011907A (en) The resource allocation methods and device of adapted telecommunication net
CN104125079B (en) A kind of method and device for determining two-node cluster hot backup configuration information
CN105515861B (en) A kind of network exempts from configuration method and device
CN110086684A (en) A kind of DCN network based on Dynamic Programming is from circulation method
CN106533775B (en) Virtualize member device and neighbor discovering method
CN107438098A (en) A kind of dynamic content dispensing method and its system
CN106169982B (en) Method, device and system for processing expansion port
CN103780437A (en) Information synchronization method and device
CN109547267A (en) LAN system and core layer, access-layer switch and its configuration method
CN105009512B (en) Maintenance association MA setting methods, apparatus and system
CN106936606A (en) Service implementation method and system and arranging service equipment
CN109525439A (en) A kind of method and system of RACK server switch vlan network management

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Cangshan District of Fuzhou City, Fujian province 350002 Jinshan Road No. 618 Garden State Industrial Park 19 floor

Patentee after: RUIJIE NETWORKS Co.,Ltd.

Address before: Cangshan District of Fuzhou City, Fujian province 350002 Jinshan Road No. 618 Garden State Industrial Park 19 floor

Patentee before: Beijing Star-Net Ruijie Networks Co.,Ltd.