CN107547544A - A kind of method of refreshing network interface card Mac addresses - Google Patents
A kind of method of refreshing network interface card Mac addresses Download PDFInfo
- Publication number
- CN107547544A CN107547544A CN201710790012.2A CN201710790012A CN107547544A CN 107547544 A CN107547544 A CN 107547544A CN 201710790012 A CN201710790012 A CN 201710790012A CN 107547544 A CN107547544 A CN 107547544A
- Authority
- CN
- China
- Prior art keywords
- network interface
- interface card
- mac addresses
- node
- extrapolation
- 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
Landscapes
- Small-Scale Networks (AREA)
Abstract
The invention discloses a kind of method of refreshing network interface card Mac addresses, including establish sequence node number and the corresponding relation storehouse of extrapolation network interface card Mac addresses;The mutual trust access relation established between control server and whole machine cabinet internal segment point server;According to the corresponding relation storehouse, each node simultaneously brushes the Mac addresses of corresponding extrapolation network interface card in network interface card EPROM.The present invention is according to sequence node number and the corresponding relation storehouse of extrapolation network interface card Mac addresses, and by controlling the mutual trust between server and node server to access, each node carries out the refreshing of corresponding extrapolation network interface card Mac addresses simultaneously, increase substantially operating efficiency, and refreshed automatically according to data in corresponding relation storehouse, avoid refreshing and malfunction.
Description
Technical field
The present invention relates to field of computer technology, specifically a kind of method of refreshing network interface card Mac addresses.
Background technology
Smart Rack are new service device form --- the whole machine cabinets based on the exploitation of New Generation of IDC design concept
There is the advantage such as low-power consumption, manageability, highly reliable to play important work in whole machine cabinet server market by server, Smart Rack
With.
Therefore Smart Rack production and process of supervision need especially strict, in the batch production of Smart Rack whole machine cabinets
In, because company-information transmission error or Engineering Order issue mistake, cause batch extrapolation network interface card Mac (Medium/Media
Access Control, the position of the network equipment) address and mainboard integrated network card Mac addresses the problem of repeating.Tracing it to its cause is
Extrapolation network interface card supplier mistake, which refreshes Mac addresses, to be caused.The mac addresses of network interface card are typically to be used specifically by network interface card manufacturer
Replication tool is by EPROM (the Electrically Erasable Programmable of unique burned network interface card in mac addresses
Read and-Write Memory, electric erazable programmable read-write memory, the storage chip that data are not lost after a kind of power down).
But production waiting is all more nervous when finding such unexpected situation under normal circumstances, can not require that foundries are returned in a short time
Work is completed, it is clear that can not use that time-consuming, the cumbersome EPROM of burning one by one mode refreshes mac addresses.
If according to the server manufacturer mode of production at this stage, DOS environment can only be manually entered in turn to each node,
Manually enter mac addresses and perform refreshing instruction.However, this will greatly increase the error rate of manually input, while reduce production
Efficiency, delay product deliver the duration.
The content of the invention
It is an object of the invention to provide a kind of method of refreshing network interface card Mac addresses, for solving year each node M ac
Location is manually entered the problem of refreshing instruction operating efficiency is low, accuracy is poor.
The technical solution adopted for the present invention to solve the technical problems is:A kind of method of refreshing network interface card Mac addresses, including
Following steps:
Establish sequence node number and the corresponding relation storehouse of extrapolation network interface card Mac addresses;
The mutual trust access relation established between control server and whole machine cabinet internal segment point server;
According to the corresponding relation storehouse, each node simultaneously brushes the Mac addresses of corresponding extrapolation network interface card in network interface card EPROM.
Further, it is described to establish sequence node number and the detailed process in the corresponding relation storehouse of extrapolation network interface card Mac addresses is:
The Mac addresses of each node extrapolation network interface card are obtained, establish the corresponding relation of node and extrapolation network interface card Mac addresses;
The sequence number of each node is obtained, establishes sequence node number and the corresponding relation storehouse of extrapolation network interface card Mac addresses.
Further, the bar code on extrapolation network interface card is scanned by barcode scanning gun to obtain the Mac addresses of the extrapolation network interface card.
Further, the specific mistake of the mutual trust access relation between the control server and whole machine cabinet internal segment point server
Cheng Wei:
Control server is accessed in same LAN with node server;
SSH is without cryptographic acess pattern between configuration control server and node server.
Further, the Mac addresses of corresponding extrapolation network interface card are brushed into network interface card simultaneously according to the corresponding relation storehouse, each node
Detailed process in EPROM is:
Obtain the sequence number of present node;
According to the sequence number of acquisition, the Mac addresses of lookup extrapolation network interface card out of corresponding relation storehouse;
By in the EPROM of the extrapolation network interface card Mac address flush found to corresponding extrapolation network interface card.
Further, each node also wraps after the Mac addresses of corresponding extrapolation network interface card are brushed in network interface card EPROM simultaneously
Include step:Examine and refresh result.
Further, the detailed process of the inspection refreshing result is:
Obtain the sequence number of node;
According to the sequence number of acquisition, the Mac addresses of lookup extrapolation network interface card out of corresponding relation storehouse;
Obtain the Mac addresses of extrapolation network interface card corresponding to present node;
It is whether identical with the Mac addresses of acquisition to contrast the Mac addresses searched;
If so, the UID lamps of node are bright, then Flushing success, if it is not, the UID lamps of node are not bright, then according to corresponding relation storehouse,
Brush in network interface card EPROM the Mac addresses that the node is corresponded to extrapolation network interface card.
The effect provided in the content of the invention is only the effect of embodiment, rather than whole effects that invention is all, above-mentioned
A technical scheme in technical scheme has the following advantages that or beneficial effect:
1st, in whole machine cabinet, taken according to sequence node number and the corresponding relation storehouse of extrapolation network interface card Mac addresses, and by controlling
The mutual trust being engaged between device and node server accesses, and each node carries out the refreshing of corresponding extrapolation network interface card Mac addresses simultaneously, significantly
Operating efficiency is improved, and is refreshed automatically according to data in corresponding relation storehouse, avoids refreshing and malfunctions.
2nd, the Mac addresses of each extrapolation network interface card are obtained using barcode scanning gun, and distinguished according to each node by sequence number
Property, dexterously combine both, form corresponding relation storehouse, it is simple and convenient, and reduce going out for follow-up network interface card refresh process
Error rate.
3rd, SSH is configured between control server and node server without cryptographic acess pattern, avoid controlling server with
When entering line command transmission between node server, the username and password of node server is manually entered, is easy to each node batch
The refreshing of extrapolation network interface card Mac addresses is carried out, improves operating efficiency.
4th, test to refreshing result, and secretly whether succeeded to judge to refresh by the bright of node UID lamps, intuitive display
And in the case of non-Flushing success, refreshed again, ensure the accuracy of extrapolation network interface card Mac addresses.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the method for the invention one embodiment;
Fig. 2 is the schematic flow sheet of another embodiment of the method for the invention.
Embodiment
For the technical characterstic for illustrating this programme can be understood, below by embodiment, and its accompanying drawing is combined, to this hair
It is bright to be described in detail.Following disclosure provides many different embodiments or example is used for realizing the different knots of the present invention
Structure.In order to simplify disclosure of the invention, hereinafter the part and setting of specific examples are described.In addition, the present invention can be with
Repeat reference numerals and/or letter in different examples.This repetition is that for purposes of simplicity and clarity, itself is not indicated
Relation between various embodiments are discussed and/or set.It should be noted that part illustrated in the accompanying drawings is not necessarily to scale
Draw.Present invention omits the description to known assemblies and treatment technology and process to avoid being unnecessarily limiting the present invention.
The invention discloses a kind of method of refreshing network interface card Mac addresses.
As shown in figure 1, the method for the present embodiment comprises the following steps:
S1, establish sequence node number and the corresponding relation storehouse of extrapolation network interface card Mac addresses;
S2, control the mutual trust access relation between server and whole machine cabinet internal segment point server;
S3, according to the corresponding relation storehouse, each node simultaneously brushes the Mac addresses of corresponding extrapolation network interface card into network interface card EPROM
In.
In step sl, the bar code on extrapolation network interface card is scanned by barcode scanning gun, the Mac of extrapolation network interface card is contained in bar code
Location information, by the barcode scanning to bar code, will in the Mac address informations typing control server of extrapolation network interface card, establish node with it is outer
Insert the corresponding relation of network interface card Mac addresses.Due to the unique sequence numbers area carried between whole machine cabinet interior nodes and node by node
Point, the one-to-one relationship of increase node and sequence number in above-mentioned corresponding relation.Ultimately form outside sequence node number and node
Insert the corresponding relation storehouse of the mac addresses of network interface card.
Two network interfaces on some nodes be present, the situation of the corresponding two network interface card Mac addresses of a sequence number can be formed simultaneously,
Concrete form is as follows:
Wherein Serial Number represent sequence node number, and Mac1Address and Mac2Address represent two respectively
The Mac addresses of extrapolation network interface card.
In step S2, the equal fill operations system on each node server in whole machine cabinet.Under normal circumstances, server is controlled
Order is sent between each node server of whole machine cabinet, needs to be manually entered the user name of corresponding node server and close one by one
Code, this causes very burden to production line operation.Control server is connected with each node server of whole machine cabinet by interchanger
Enter in same LAN, and configured SSH (Secure Shell, security protocol) without cryptographic acess environment.
In step S3, the corresponding relation storehouse stored in server and refreshing script (flash.sh) will be controlled to upload to complete machine
Each node server of cabinet /root/ catalogues under, refresh process is as follows:
S31, obtain the sequence number of present node;
S32, according to the sequence number of acquisition, the Mac addresses of lookup extrapolation network interface card out of corresponding relation storehouse;
S33, by the EPROM of the extrapolation network interface card Mac address flush found to corresponding extrapolation network interface card.
Above-mentioned refreshing script flash.sh particular content will not be described here, in order to avoid the unnecessary limitation present invention.
After refreshing has been performed, reboot operation system, the Mac addresses of above-mentioned extrapolation network interface card can come into force.
As shown in Fig. 2 on the basis of above-mentioned steps S1~S3, in addition to step S4:The Mac addresses of extrapolation network interface card are brushed
After entering in network interface card EPROM, tested to refreshing result.
In step S4, examine refresh result the step of be:Obtain the sequence number of node;According to the sequence number of acquisition, from right
The Mac addresses that extrapolation network interface card is searched in storehouse should be related to;Obtain the Mac addresses of extrapolation network interface card corresponding to present node;Contrast is searched
Mac addresses with obtain Mac addresses it is whether identical;If so, the UID lamps of node are bright, then Flushing success, if it is not, the UID of node
(User Identification, user identity prove) lamp is not bright, then according to corresponding relation storehouse, is transferred to step S3, by the node
Brush in network interface card EPROM the Mac addresses of corresponding extrapolation network interface card.
Simply the preferred embodiment of the present invention described above, for those skilled in the art,
Without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications are also regarded as this hair
Bright protection domain.
Claims (7)
1. a kind of method of refreshing network interface card Mac addresses, it is characterized in that:Comprise the following steps:
Establish sequence node number and the corresponding relation storehouse of extrapolation network interface card Mac addresses;
The mutual trust access relation established between control server and whole machine cabinet internal segment point server;
According to the corresponding relation storehouse, each node simultaneously brushes the Mac addresses of corresponding extrapolation network interface card in network interface card EPROM.
2. a kind of method of refreshing network interface card Mac addresses according to claim 1, it is characterized in that:It is described to establish sequence node
Number it is with the detailed process in the corresponding relation storehouse of extrapolation network interface card Mac addresses:
The Mac addresses of each node extrapolation network interface card are obtained, establish the corresponding relation of node and extrapolation network interface card Mac addresses;
The sequence number of each node is obtained, establishes sequence node number and the corresponding relation storehouse of extrapolation network interface card Mac addresses.
3. a kind of method of refreshing network interface card Mac addresses according to claim 2, it is characterized in that:It is outer by barcode scanning gun scanning
The bar code on network interface card is inserted to obtain the Mac addresses of the extrapolation network interface card.
4. a kind of method of refreshing network interface card Mac addresses according to claim 1, it is characterized in that:It is described control server with
The detailed process of mutual trust access relation between whole machine cabinet internal segment point server is:
Control server is accessed in same LAN with node server;
SSH is without cryptographic acess pattern between configuration control server and node server.
5. a kind of method of refreshing network interface card Mac addresses according to claim 1, it is characterized in that:According to the corresponding relation
The Mac addresses of corresponding extrapolation network interface card are brushed the detailed process in network interface card EPROM simultaneously and are by storehouse, each node:
Obtain the sequence number of present node;
According to the sequence number of acquisition, the Mac addresses of lookup extrapolation network interface card out of corresponding relation storehouse;
By in the EPROM of the extrapolation network interface card Mac address flush found to corresponding extrapolation network interface card.
6. a kind of method of refreshing network interface card Mac addresses according to claim 1, it is characterized in that:Each node simultaneously will
The Mac addresses of corresponding extrapolation network interface card also include step after brushing in network interface card EPROM:Examine and refresh result.
7. a kind of method of refreshing network interface card Mac addresses according to claim 6, it is characterized in that:Described examine refreshes result
Detailed process be:
Obtain the sequence number of node;
According to the sequence number of acquisition, the Mac addresses of lookup extrapolation network interface card out of corresponding relation storehouse;
Obtain the Mac addresses of extrapolation network interface card corresponding to present node;
It is whether identical with the Mac addresses of acquisition to contrast the Mac addresses searched;
If so, the UID lamps of node are bright, then Flushing success, if it is not, the UID lamps of node are not bright, then according to corresponding relation storehouse, by this
Brush in network interface card EPROM the Mac addresses that node corresponds to extrapolation network interface card.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710790012.2A CN107547544A (en) | 2017-09-05 | 2017-09-05 | A kind of method of refreshing network interface card Mac addresses |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710790012.2A CN107547544A (en) | 2017-09-05 | 2017-09-05 | A kind of method of refreshing network interface card Mac addresses |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107547544A true CN107547544A (en) | 2018-01-05 |
Family
ID=60957701
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710790012.2A Pending CN107547544A (en) | 2017-09-05 | 2017-09-05 | A kind of method of refreshing network interface card Mac addresses |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107547544A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111464377A (en) * | 2020-03-12 | 2020-07-28 | 苏州浪潮智能科技有限公司 | Network card inspection method, device, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1696926A (en) * | 2004-05-15 | 2005-11-16 | 鸿富锦精密工业(深圳)有限公司 | MAC system of automatic assigning addresses and method |
US20140029618A1 (en) * | 2012-07-27 | 2014-01-30 | Dell Products L.P. | Systems and methods for optimizing layer three routing in an information handling system |
CN105955742A (en) * | 2016-04-29 | 2016-09-21 | 浪潮电子信息产业股份有限公司 | BIOS refreshing method, service system and BIOS refreshing system |
-
2017
- 2017-09-05 CN CN201710790012.2A patent/CN107547544A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1696926A (en) * | 2004-05-15 | 2005-11-16 | 鸿富锦精密工业(深圳)有限公司 | MAC system of automatic assigning addresses and method |
US20140029618A1 (en) * | 2012-07-27 | 2014-01-30 | Dell Products L.P. | Systems and methods for optimizing layer three routing in an information handling system |
CN105955742A (en) * | 2016-04-29 | 2016-09-21 | 浪潮电子信息产业股份有限公司 | BIOS refreshing method, service system and BIOS refreshing system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111464377A (en) * | 2020-03-12 | 2020-07-28 | 苏州浪潮智能科技有限公司 | Network card inspection method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101452745B (en) | Programmer and programming method thereof | |
CN101257567A (en) | System and method for television set on-line burn recording MAC address | |
TW589583B (en) | Portable information memory medium and the authorization method | |
TWI761496B (en) | Method for performing tests using automated test equipment and system for performing automated test | |
Skorobogatov | The bumpy road towards iPhone 5c NAND mirroring | |
CN112328440B (en) | Hard disk physical position determining method and device | |
CN108900354A (en) | Network collocating method, configuration file set creation method, device and the network equipment | |
CN109165266A (en) | List generation method, device, computer equipment and storage medium | |
CN109388397A (en) | Product page generation method, system, computer equipment and storage medium | |
CN104317690A (en) | Memory Demand Scrub testing method based on ITP (integration test platform) tool | |
CN106850875A (en) | A kind of MAC Address of Network Card method for burn-recording and device based on platform of soaring | |
US20110145482A1 (en) | Block management method for flash memory, and flash memory controller and flash memory storage device using the same | |
CN103810440B (en) | Access system and method | |
CN107547544A (en) | A kind of method of refreshing network interface card Mac addresses | |
CN101790027A (en) | Writing method of sequence number of set top box | |
CN107479917A (en) | A kind of batch refresh PSU FW method | |
CN101156361B (en) | Method, communications assembly and communications device for controlling the access to at least one communications device | |
CN106406127A (en) | Method and device for generating control interface of Internet of Things (IOT) device | |
CN107800802A (en) | A kind of Rack whole machine cabinets write-in and the method for reading UUID | |
CN108197457A (en) | Hard disk secure control method and device | |
CN103297849B (en) | A kind of method for generating bi-directional set-top box MAC Address | |
CN104182258A (en) | Device and method for upgrading POS (point-of-sale) terminals | |
CN107943644A (en) | A kind of building method of functional verification platform for the design based on LOCAL BUS buses | |
CN106951184A (en) | A kind of Bluetooth address generation method | |
CN101581959A (en) | Method and equipment for resetting single core in multicore chip |
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: 20180105 |