CN112087531A - Method for on-line configuring network address - Google Patents
Method for on-line configuring network address Download PDFInfo
- Publication number
- CN112087531A CN112087531A CN202010820188.XA CN202010820188A CN112087531A CN 112087531 A CN112087531 A CN 112087531A CN 202010820188 A CN202010820188 A CN 202010820188A CN 112087531 A CN112087531 A CN 112087531A
- Authority
- CN
- China
- Prior art keywords
- network address
- board
- network
- address
- addresses
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 230000006870 function Effects 0.000 claims abstract description 15
- 230000015654 memory Effects 0.000 claims abstract description 14
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/55—Prevention, detection or correction of errors
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5046—Resolving address allocation conflicts; Testing of addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
The embodiment of the disclosure provides a method for configuring a network address online, belongs to the technical field of avionics, and is particularly used for configuring the network address online of a flight parameter protocol adapter under a VxWorks operating system, and is characterized in that: the method comprises a network address presetting method and a network address configuration method; the network address presetting method comprises the following steps: setting different preset network addresses for a plurality of board cards with the same function through SHELL, and storing the different preset network addresses in a nonvolatile memory of each board card; the network address configuration method comprises the following steps: and adopting the preset network address when the plurality of board cards with the same function run. The invention solves the problem of network address conflict when a plurality of boards with consistent functions are in the same network.
Description
Technical Field
The present disclosure relates to the field of avionics technologies, and in particular, to a method for configuring a network address online.
Background
When a plurality of boards with consistent functions are in the same network, the problem of network address conflict must be solved. The present invention relates to a method for on-line configuration of network addresses, which solves such problems by setting each card to different IP and MAC addresses in a manner of on-line configuration in production or automatic identification of the card slot position.
Disclosure of Invention
In view of this, the embodiments of the present disclosure provide a method for configuring a network address online, which solves the problem of network address conflict when multiple boards with identical functions are in the same network.
In order to achieve the technical purpose, the invention adopts the following specific technical scheme:
a method for configuring network address on line is used for configuring network address on line of flight parameter protocol adapter under VxWorks operating system, including network address presetting method and network address configuration method;
the network address presetting method comprises the following steps: setting different preset network addresses for a plurality of board cards with the same function through SHELL, and storing the different preset network addresses in a nonvolatile memory of each board card;
the network address configuration method comprises the following steps: and adopting the preset network address when the plurality of board cards with the same function run.
Further, the network address configuration method further includes: when the board cards are electrified and initialized, the preset network addresses in the nonvolatile memories are read by the board cards, if the preset network addresses are valid, the preset network addresses are adopted by the board cards, and if the network addresses are invalid, default network addresses are used by the board cards, and fault processing is carried out.
Further, the preset network address includes an IP address and a MAC address.
Further, the network address presetting method further includes: detecting whether the board number is correct, if not, performing fault processing, if so, generating a corresponding network address according to the board number, and storing the network address in a specific area of a nonvolatile memory.
Further, the fault processing of the network address presetting method is as follows: and when the board card number is incorrect, lightening a fault signal lamp on the board card and outputting related fault information in the Shell.
Further, the fault processing of the network address presetting method is as follows: and when the preset network address is invalid, lightening a fault signal lamp on the board card.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a block diagram illustrating a method for online configuration of network addresses according to the present invention;
FIG. 2 is a flow chart of implementing automatic network address configuration based on slot locations;
FIG. 3 is a flow chart of online configuration of network addresses according to a non-volatile memory;
FIG. 4 is a flow chart of writing a network address to a non-volatile memory according to a board card number.
Detailed Description
The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
The embodiments of the present disclosure are described below with specific examples, and other advantages and effects of the present disclosure will be readily apparent to those skilled in the art from the disclosure in the specification. It is to be understood that the described embodiments are merely illustrative of some, and not restrictive, of the embodiments of the disclosure. The disclosure may be embodied or carried out in various other specific embodiments, and various modifications and changes may be made in the details within the description without departing from the spirit of the disclosure. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the appended claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the disclosure, one skilled in the art should appreciate that one aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. Additionally, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present disclosure, and the drawings only show the components related to the present disclosure rather than the number, shape and size of the components in actual implementation, and the type, amount and ratio of the components in actual implementation may be changed arbitrarily, and the layout of the components may be more complicated.
In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
The embodiment of the disclosure provides a method for configuring a network address on line, which is used for configuring the network address on line of a flight parameter protocol adapter under a VxWorks operating system, and comprises a network address presetting method and a network address configuration method;
the network address presetting method comprises the following steps: as shown in fig. 1, different preset network addresses are set for a plurality of boards with the same function through SHELL, and the different preset network addresses are stored in the nonvolatile memory of each board; the network address configuration method comprises the following steps: and adopting the preset network address when the plurality of board cards with the same function run.
Table 1 shows the assignment relationship between each board card and the IP address and MAC address.
| Plate number | IP address | MAC address |
| 1# | 192.168.0.1 | 0x08003e325301 |
| 2# | 192.168.0.2 | 0x08003e325302 |
| 3# | 192.168.0.3 | 0x08003e325303 |
| 4# | 192.168.0.4 | 0x08003e325304 |
| 5# | 192.168.0.5 | 0x08003e325305 |
| 6# | 192.168.0.6 | 0x08003e325306 |
| 7# | 192.168.0.7 | 0x08003e325307 |
| 8# | 192.168.0.8 | 0x08003e325308 |
| 9# | 192.168.0.9 | 0x08003e325309 |
| 10# | 192.168.0.10 | 0x08003e32530a |
TABLE 1
In this embodiment, ten boards with the same function are included, the present design adopts a VxWorks operating system, a motFecEndLoad () function of a MAC address in syslib.c under a config folder is initialized, and a MAC address initialized in the sysfecendload () function is an address defined by sysfecendaddr [ ] under a default state of motFecEndLoad () → SYS _ FEC _ enter _ ADDR _ GET → sysfecteddaddget (). The IP address can also be initialized in BootRom by calling usrNetIfConfig () → ifAddrSet (), and the IP address is derived from DEFAULT _ BOOT _ LINE in config.h under the config folder, and the present solution sets the DEFAULT IP address to 192.168.0.1 and the MAC address to 0x08003e 325301. Meanwhile, the scheme supports two methods for configuring IP and MAC addresses:
(1) the slot is used to identify the current card number and the IP and MAC addresses are automatically set, and the software flow chart is shown in FIG. 2.
(2) The software flow diagram for using the nonvolatile memory to store the IP and MAC addresses is shown in fig. 3. When using the method, manual configuration is required to store the current network address in the non-volatile memory. The manual configuration flow is shown in fig. 4.
In this embodiment, the network address configuration method further includes: when the board cards are electrified and initialized, the preset network addresses in the nonvolatile memories are read by the board cards, if the preset network addresses are valid, the preset network addresses are adopted by the board cards, and if the network addresses are invalid, default network addresses are used by the board cards, and fault processing is carried out.
In this embodiment, the preset network address includes an IP address and a MAC address.
In this embodiment, the method for presetting the network address further includes: detecting whether the board number is correct, if not, performing fault processing, if so, generating a corresponding network address according to the board number, and storing the network address in a specific area of a nonvolatile memory.
In this embodiment, the failure processing of the network address presetting method is as follows: and when the board card number is incorrect, lightening a fault signal lamp on the board card and outputting related fault information in the Shell.
In this embodiment, the failure processing of the network address presetting method is as follows: and when the preset network address is invalid, lightening a fault signal lamp on the board card.
The above description is only for the specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present disclosure should be covered within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.
Claims (6)
1. A method for configuring network address on line is used for configuring network address on line of flight parameter protocol adapter under VxWorks operating system, which is characterized in that: the method comprises a network address presetting method and a network address configuration method;
the network address presetting method comprises the following steps: setting different preset network addresses for a plurality of board cards with the same function through SHELL, and storing the different preset network addresses in a nonvolatile memory of each board card;
the network address configuration method comprises the following steps: and adopting the preset network address when the plurality of board cards with the same function run.
2. The method of claim 1, wherein the network address is configured on-line by: the network address configuration method further comprises the following steps: when the board cards are electrified and initialized, the preset network addresses in the nonvolatile memories are read by the board cards, if the preset network addresses are valid, the preset network addresses are adopted by the board cards, and if the network addresses are invalid, default network addresses are used by the board cards, and fault processing is carried out.
3. The method of configuring a network address online as recited in claim 2, wherein: the preset network address comprises an IP address and an MAC address.
4. The method of claim 3, wherein the network address is configured on-line by: the network address presetting method further comprises the following steps: detecting whether the board number is correct, if not, performing fault processing, if so, generating a corresponding network address according to the board number, and storing the network address in a specific area of a nonvolatile memory.
5. The method of claim 4, wherein the network address is configured on-line by: the fault processing of the network address presetting method comprises the following steps: and when the board card number is incorrect, lightening a fault signal lamp on the board card and outputting related fault information in the Shell.
6. The method of claim 5, wherein the network address is configured on-line by: the fault processing of the network address presetting method comprises the following steps: and when the preset network address is invalid, lightening a fault signal lamp on the board card.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010820188.XA CN112087531A (en) | 2020-08-14 | 2020-08-14 | Method for on-line configuring network address |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010820188.XA CN112087531A (en) | 2020-08-14 | 2020-08-14 | Method for on-line configuring network address |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN112087531A true CN112087531A (en) | 2020-12-15 |
Family
ID=73729125
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010820188.XA Pending CN112087531A (en) | 2020-08-14 | 2020-08-14 | Method for on-line configuring network address |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112087531A (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050182851A1 (en) * | 2004-02-12 | 2005-08-18 | International Business Machines Corp. | Method and system to recover a failed flash of a blade service processor in a server chassis |
| CN101150413A (en) * | 2007-10-31 | 2008-03-26 | 中兴通讯股份有限公司 | A kind of ATCA blade server multi-chassis cascading system and method |
| US20150081853A1 (en) * | 2013-09-13 | 2015-03-19 | Netapp Inc. | Network address assignment with duplication detection |
| CN105812190A (en) * | 2016-04-29 | 2016-07-27 | 中国人民解放军国防科学技术大学 | Network address management method of Feiteng server blade system |
| CN109802856A (en) * | 2019-01-04 | 2019-05-24 | 烽火通信科技股份有限公司 | A kind of method of the how sub- deckle board card of list NE management |
-
2020
- 2020-08-14 CN CN202010820188.XA patent/CN112087531A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050182851A1 (en) * | 2004-02-12 | 2005-08-18 | International Business Machines Corp. | Method and system to recover a failed flash of a blade service processor in a server chassis |
| CN101150413A (en) * | 2007-10-31 | 2008-03-26 | 中兴通讯股份有限公司 | A kind of ATCA blade server multi-chassis cascading system and method |
| US20150081853A1 (en) * | 2013-09-13 | 2015-03-19 | Netapp Inc. | Network address assignment with duplication detection |
| CN105812190A (en) * | 2016-04-29 | 2016-07-27 | 中国人民解放军国防科学技术大学 | Network address management method of Feiteng server blade system |
| CN109802856A (en) * | 2019-01-04 | 2019-05-24 | 烽火通信科技股份有限公司 | A kind of method of the how sub- deckle board card of list NE management |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| FI93585B (en) | Programmable option selection | |
| US4701878A (en) | Apparatus for assigning addresses to pluggable modules based on contact configuration | |
| CN111211955B (en) | Method for distributing slave node address and node management system | |
| CN112231251B (en) | Board card slot identification method and device, communication equipment and readable storage medium | |
| CN104679619A (en) | Server and detection method of server | |
| CN101499961B (en) | Blade server and method for managing blade address | |
| CN111124505B (en) | Method and device for configuring motherboard hardware | |
| CN105530627A (en) | Method for realizing communication connection of mobile terminal, card adaption server side, and mobile terminal | |
| CN102724110A (en) | Single plate communication method, single plate communication system and single plate | |
| CN107071083A (en) | One kind is based on Embedded many board IP address generation methods and device | |
| CN101170471A (en) | Methods for operating the fieldbus | |
| US7949754B2 (en) | Method and apparatus for prescribing station identifiers in a profit IO network | |
| CN112087531A (en) | Method for on-line configuring network address | |
| CN103064309A (en) | Needle selector address confirming method and system | |
| CN114760322A (en) | Vehicle information association method, Internet of vehicles terminal and Internet of vehicles platform | |
| DE69129261T2 (en) | Subscriber interface with programmable ROM | |
| CN116226019A (en) | System and method for managing multiple types of IO board cards based on universal controller | |
| CN102413592B (en) | User identification card, terminal and related processing method | |
| CN101170470B (en) | Methods for operating the fieldbus | |
| CN117896351B (en) | Slave address updating method and related device | |
| US20050259642A1 (en) | Blade server for auto-assigning communication addresses | |
| CN119668701A (en) | Adapter card identification method, device, electronic device and computer-readable storage medium | |
| CN115295053B (en) | Configuration information storage circuit, volatile configuration method and device and flash memory | |
| CN115883347B (en) | A relay protection device and self-organizing network method thereof | |
| CN114826489A (en) | Link error correction method, system, storage medium and equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201215 |