CN100568832C - The method for detecting of controlling address failure of medium access on network card - Google Patents

The method for detecting of controlling address failure of medium access on network card Download PDF

Info

Publication number
CN100568832C
CN100568832C CNB2006100918786A CN200610091878A CN100568832C CN 100568832 C CN100568832 C CN 100568832C CN B2006100918786 A CNB2006100918786 A CN B2006100918786A CN 200610091878 A CN200610091878 A CN 200610091878A CN 100568832 C CN100568832 C CN 100568832C
Authority
CN
China
Prior art keywords
storage chip
access control
computer installation
media access
mac address
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.)
Expired - Fee Related
Application number
CNB2006100918786A
Other languages
Chinese (zh)
Other versions
CN101090344A (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.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CNB2006100918786A priority Critical patent/CN100568832C/en
Publication of CN101090344A publication Critical patent/CN101090344A/en
Application granted granted Critical
Publication of CN100568832C publication Critical patent/CN100568832C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

A kind of method for detecting of controlling address failure of medium access on network card, be applied on the computer installation that has network card in, this method comprises media access control (MAC) address is write to the preset field that keeps in the basic input output system (BIOS) of a storage chip on this network card and this computer installation respectively, make this computer installation when each start, BIOS can read stored MAC Address in this storage chip, and compare with MAC Address stored in this preset field, whether be not written into MAC Address in this storage chip or be written into wrong MAC Address to judge, and send corresponding information warning.So, user or testing staff need not under the prerequisite of buying more additional software and setting up any hardware, only need comply with this information warning, can judge wrong place at a glance, and remedied, effectively save or exempted manpower and time that the tester is wasted for the detection mistake.

Description

The method for detecting of controlling address failure of medium access on network card
Technical field
The present invention is a kind of method for detecting of controlling address failure of medium access on network card, especially refer to when a computer opening, media access control (Media AccessControl on the Auto-Sensing one in-building type network card, hereinafter to be referred as MAC) address mistake whether, and when finding mistake, send the method for detecting of corresponding information warning.
Background technology
The all essential unique address, the whole world of setting on each network hardware equipment (as: network card), be used in network world, identification code as the identification identity, this is media access control (the Media Access Control of network hardware equipment, hereinafter to be referred as MAC) address (Address), its length is generally 48 positions, normally with hexadecimal numeric representation, as: 00-80-C8-3F-E3-B5, wherein preceding 24 is identification code (Company ID in order to the manufacturer that represents network hardware equipment, be called for short CID), back 24 is sequence code (Serial ID, abbreviation SID) in order to represent network hardware equipment.So, the computer installation (as: desktop PC, notebook computer and server etc..) of network hardware equipment is installed before beginning to carry out network of relation software when one, the driver of network hardware equipment (Driver) will read MAC Address by the automatic network hardware device, use for network software, with as the physical address of network software when transmitting or receive package.
With the computer installation that has network card in one is example, the practice now is earlier this network card to be mounted to this computer installation on production line, again with this network card (Network Interface Controller, hereinafter to be referred as NIC) in the direct storage chip of imprinting on it of basic document (Information) of required setting, this basic document comprises one can be in order to insert the field of MAC Address, then, again on production line, by specific instrument, the MAC Address that manufacturer has been applied for writes this field, so, promptly finish the installation and the setting of network card.Generally speaking, because the quantity of the computer installation of assembling on production line is huge, if desire to verify one by one at the MAC Address of the built-in network card of each computer installation, certainly will expend a large amount of manpowers and man-hour, not only production efficiency is caused negative effect, more will cause production cost to increase.
Though, on production line, correct MAC Address is not write storage chip or forgets MAC Address is write storage chip, can't make the hardware components of computer installation or network card that any unusual condition takes place, yet, as previously mentioned, because the MAC Address of network card is for the identification identity in the network world, and determine the user to hold according to this and whether can carry out an online important identification code with network, therefore, when MAC Address is not written into or correctly do not write storage chip, the user is on computer installation during executive operating system, or before start execution environment (Preboot Execution Environment, hereinafter to be referred as PXE) when carrying out start under the pattern, the situation that network can't use will take place.General speech, for finding out the reason that can't use network, often spacious day time-consuming, is that mac address error causes because few people can associate this situation.
At present, whether the MAC Address at the built-in network card of computer installation is correctly write storage chip, the unique spendable inspection method of user or testing staff, be that driver (Driver) with network card is mounted to earlier in the operating system of this computer installation, then, inquire the MAC Address of this network card again by driver.Yet in fact, as previously mentioned, because the few can notice the problem of mac address error immediately when computer installation takes place to use the situation of network, therefore, naturally must expend plenty of time and manpower at all possible problem, detect one by one and investigate, cause causing manpower and time to go up meaningless waste, moreover, if desire under the PXE pattern, to start shooting, more should find the problem of mac address error as early as possible, to be improved in real time.
Because the testing staff of aforementioned user or production line, must expend plenty of time and manpower, just can detect the mac address error problem of network card, therefore, how to design a kind of method for detecting of controlling address failure of medium access on network card, with when the computer opening, can be automatically at the mac address error problem of network card, detect, and when detecting mac address error, send corresponding information warning, notify user or testing staff with the fastest speed, the design and the manufacturer that promptly become network hardware equipment desire most ardently an important topic that overcomes and solve.
Summary of the invention
Must expend plenty of time and manpower in view of aforementioned, just can detect the mac address error problem of network card, the inventor is through the permanent research and experiment of making great efforts, finally development and Design goes out the method for detecting of a kind of controlling address failure of medium access on network card of the present invention, in the hope of when the computer opening, can be automatically detect at the mac address error problem of network card, and when detecting mac address error, send corresponding information warning, notify user or testing staff with the fastest speed.
Main purpose of the present invention, provide a kind of method for detecting of controlling address failure of medium access on network card, be to be applied in the computer installation (as: desktop PC that has network card in, notebook computer and server etc..) on, this method comprises MAC Address is write to the preset field that keeps among the BIOS of a storage chip on this network card and this computer installation respectively, make this computer installation when each start, BIOS can read stored MAC Address in this storage chip, and compare with the MAC Address that stores in this preset field, whether be not written into MAC Address in this storage chip or be written into wrong MAC Address to judge, and when finding mistake, send corresponding information warning.So, need not fully under the prerequisite of buying more additional software and setting up any hardware, user or testing staff are behind this computer opening, can learn on this network card whether mistake of MAC Address, and only need comply with this information warning, can judge wrong place at a glance, and be remedied, effectively save or exempt manpower and the time that the tester is wasted for the detection mistake.
Another object of the present invention, be at system management BIOS (System Management BIOS, hereinafter to be referred as SMBIOS) the middle preset field (Reserved Field) that keeps at least 24, in order to store the identification code (Company ID) of manufacturer, with when starting shooting backward at every turn, BIOS can read back 24 of the interior MAC Address of this storage chip automatically, judge whether it is 00-00-00 or FF-FF-FF, be whether MAC Address is not written in this storage chip, after judging for the first time, with MAC Address in the identification code that stores in this preset field and this storage chip preceding 24 compare again, judge whether the two is consistent, so, can be behind this computer opening, learn on this network card whether mistake of MAC Address easily.
For making the auditor can be to the object, the technical characteristics and the effect of the present invention, understanding be arranged further and understand, existing especially exemplified by an embodiment, and cooperate graphicly, be described in detail as follows.
Description of drawings
Fig. 1 is a handling process schematic diagram of the present invention.
Embodiment
The present invention is a kind of method for detecting of controlling address failure of medium access on network card, this method is to be applied on the computer installation (as: desktop PC, notebook computer and server etc..) that has network card in, with when this computer opening, automatic media access control (the Media Access Control of energy at this network card, hereinafter to be referred as MAC) the address error problem, detect, and when detecting mac address error, send corresponding information warning.
The present invention is on the production line of this computer installation, after this network card is mounted to this computer installation, one MAC Address is write to the storage chip on this network card and a basic input output system (the Basic Input Output System of this computer installation, hereinafter to be referred as BIOS) the middle preset field that keeps, consult shown in Figure 1, make this computer installation when each start, BIOS can carry out following treatment step:
101, read stored MAC Address in this storage chip, and with this preset field in stored MAC Address compare;
102, do you judge whether be not written into MAC Address in this storage chip? if promptly carry out step 104; Otherwise, continue the following step;
103, do you judge the MAC Address that is written into mistake in this storage chip? if promptly carry out step 105; Otherwise, enter step 106;
104, the display screen to this computer installation sends the information warning that is not written into MAC Address in this storage chip, for user or testing staff's reference, enters step 106;
105, the display screen to this computer installation sends the information warning that is written into wrong MAC Address in this storage chip, for user or testing staff's reference, enters step 106; And
106, continue boot program.
So, need not fully under the prerequisite of buying more additional software and setting up any hardware, user or testing staff can be when this computer openings, pass through respectively this information warning immediately, learn whether be not written into MAC Address on this network card or be written into wrong MAC Address, judge corresponding mistake at a glance, and carry out its corresponding measures, effectively save or exempted manpower and the time that user or testing staff are wasted for the detecting mistake.
In a most preferred embodiment of the present invention, consult shown in Figure 1 again, be system management BI0S (System Management BIOS at this computer installation, hereinafter to be referred as SMBIOS) in kept a preset field (Reserved Field), its length is at least 24 positions, and be with hexadecimal numeric representation, in order to store the identification code (Company ID) of manufacturer, as: " 00-A0-D1 ", so, when this computer installation is started shooting, its BIOS will read preceding 24 or back 24 of the interior MAC Address of this storage chip automatically, judge whether it is 00-00-00 or FF-FF-FF, if, promptly the display screen to this computer installation sends an information warning, shows that MAC Address is not written in this storage chip; Otherwise preceding 24 with MAC Address in the identification code that stores in this preset field and this storage chip compare again, and judge whether the two is consistent; If the two is inconsistent, promptly the display screen to this computer installation sends an information warning, shows the non-genus MAC Address that manufacturer registered of MAC Address stored in this storage chip; If the two unanimity, then this computer installation does not show any information warning, and continues its boot program.
In other embodiments of the invention, the preset field that SMBIOS kept of this computer installation, its length can be 48 positions, and be with hexadecimal numeric representation, wherein preceding 24 is in order to store the identification code of manufacturer, 24 of backs are the sequence codes in order to the storage network card, so, when this computer installation is started shooting, its BIOS will read preceding 24 or back 24 or whole 48 of the interior MAC Address of this storage chip automatically, judge whether it is 00-00-00 or FF-FF-FF or 00-00-00-00-00-00 or FF-FF-FF-FF-FF-FF, if, promptly the display screen to this computer installation sends an information warning, shows that MAC Address is not written in this storage chip; Otherwise preceding 24 with MAC Address in the identification code that stores in this preset field and this storage chip compare again, and judge whether the two is consistent; If the two is inconsistent, promptly the display screen to this computer installation sends an information warning, shows the non-genus MAC Address that manufacturer registered of MAC Address stored in this storage chip; If the two unanimity, then this computer installation does not show any information warning, and continues its boot program.
According to the above, whether the MAC Address that the present invention is directed to the built-in network card of computer installation is correctly write the problem of storage chip, need not additionally to buy more software and setting up under the situation of any hardware, a kind of automatic detecting machine system is provided, this mechanism is when computer opening, can automatic mac address error problem detect at network card, and when detecting mac address error, send corresponding information warning, learn whether mistake of MAC Address with same seasonal user or testing staff in start at once, and can judge wrong situation at a glance, and be remedied as early as possible at information warning, to avoid expending plenty of time and manpower at all possible problem, detect one by one and investigate, just can detect the mac address error problem of network card, cause manpower and time to go up meaningless waste.
The above only is of the present invention one best specific embodiment, and feature of the present invention is not limited thereto, and anyly is familiar with this skill person in field of the present invention, and the variation that can expect easily or modification all should be encompassed in the claim protection range of the present invention.

Claims (7)

1, a kind of method for detecting of controlling address failure of medium access on network card, this method is applied on the production line of a computer installation, and after a network card is mounted to described computer installation, one media access control address of described network card will be written into a preset field that keeps in the basic input output system of described computer installation, it is characterized in that, described basic input output system is carried out the following step when described computer opening:
Read the media access control address that stores in the storage chip on the described network card, and with described preset field in stored media access control address compare;
Judge and whether be not written into media access control address in the described storage chip;
If judge and be not written into media access control address in the described storage chip, promptly the display screen to described computer installation sends the information warning that is not written into media access control address in the described storage chip;
If judge and be written into media access control address in the described storage chip, promptly judge whether be written into wrong media access control address in the described storage chip; If judge and be written into wrong media access control address in the described storage chip, promptly described display screen is sent the information warning that is written into wrong media access control address in the described storage chip.
2, method for detecting as claimed in claim 1, it is characterized in that described preset field is the system management basic input output system that is retained in described computer installation, its length is 24 positions, and be with hexadecimal numeric representation, in order to store the identification code of manufacturer.
3, method for detecting as claimed in claim 1, it is characterized in that, described preset field is the system management basic input output system that is retained in described computer installation, its length is 48 positions, and be with hexadecimal numeric representation, wherein preceding 24 identification codes in order to storage manufacturer, back 24 sequence codes in order to the storage network card.
4, method for detecting as claimed in claim 2, it is characterized in that, when described computer installation is started shooting, described basic input output system will read preceding 24 of the interior media access control address of described storage chip automatically, judge whether it is 00-00-00 or FF-FF-FF, if promptly the display screen to described computer installation sends an information warning, show media access control address is not written in the described storage chip.
5, method for detecting as claimed in claim 4, it is characterized in that, if preceding 24 the non-00-00-00 or the FF-FF-FF of media access control address in the described storage chip, then described basic input output system compares with preceding 24 of MAC Address in the identification code that stores in the described preset field and the described storage chip again, and judges whether the two is consistent; If the two is inconsistent, promptly the display screen to described computer installation sends an information warning, shows the non-genus MAC Address that manufacturer registered of MAC Address stored in the described storage chip.
6, method for detecting as claimed in claim 3, it is characterized in that, when described computer installation is started shooting, described basic input output system will read preceding 24 or back 24 or whole 48 of the interior media access control address of described storage chip automatically, judge whether it is 00-00-00 or FF-FF-FF or 00-00-00-00-00-00 or FF-FF-FF-FF-FF-FF, if, promptly the display screen to described computer installation sends an information warning, and show media access control address is not written in the described storage chip.
7, method for detecting as claimed in claim 6, it is characterized in that, if preceding 24 or back 24 or whole 48 non-00-00-00 or FF-FF-FF or the 00-00-00-00-00-00 or the FF-FF-FF-FF-FF-FF of media access control address in the described storage chip, then described basic input output system compares with preceding 24 of MAC Address in the identification code that stores in the described preset field and the described storage chip again, and judges whether the two is consistent; If the two is inconsistent, promptly the display screen to described computer installation sends an information warning, shows the non-genus MAC Address that manufacturer registered of MAC Address stored in the described storage chip.
CNB2006100918786A 2006-06-13 2006-06-13 The method for detecting of controlling address failure of medium access on network card Expired - Fee Related CN100568832C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100918786A CN100568832C (en) 2006-06-13 2006-06-13 The method for detecting of controlling address failure of medium access on network card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100918786A CN100568832C (en) 2006-06-13 2006-06-13 The method for detecting of controlling address failure of medium access on network card

Publications (2)

Publication Number Publication Date
CN101090344A CN101090344A (en) 2007-12-19
CN100568832C true CN100568832C (en) 2009-12-09

Family

ID=38943521

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100918786A Expired - Fee Related CN100568832C (en) 2006-06-13 2006-06-13 The method for detecting of controlling address failure of medium access on network card

Country Status (1)

Country Link
CN (1) CN100568832C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105988937A (en) * 2015-05-12 2016-10-05 乐视移动智能信息技术(北京)有限公司 Processing method and device of MAC (Media Access Control) address

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102200916B (en) 2010-03-26 2014-12-31 联想(北京)有限公司 Electronic equipment, configurable member and method for storing configuration information of configurable member
CN112148201A (en) * 2019-06-26 2020-12-29 龙芯中科技术有限公司 Data writing method, device and storage medium
CN112579368A (en) * 2019-09-29 2021-03-30 佛山市顺德区顺达电脑厂有限公司 Power management chip detection system and method
CN111464377A (en) * 2020-03-12 2020-07-28 苏州浪潮智能科技有限公司 Network card inspection method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
直接读取PCI网卡的MAC地址的原理与方法. 李忠全,王希超.计算机工程,第31卷第18期. 2005
直接读取PCI网卡的MAC地址的原理与方法. 李忠全,王希超.计算机工程,第31卷第18期. 2005 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105988937A (en) * 2015-05-12 2016-10-05 乐视移动智能信息技术(北京)有限公司 Processing method and device of MAC (Media Access Control) address

Also Published As

Publication number Publication date
CN101090344A (en) 2007-12-19

Similar Documents

Publication Publication Date Title
CN100517262C (en) Master plate monitoring system and method
US6754817B2 (en) Apparatus and method for detecting a change in system hardware configuration to reduce the amount of time to execute a post routine
US6101617A (en) Computer failure recovery and alert system
US6449735B1 (en) Method and apparatus for providing improved diagnostic functions in a computer system
CN102760090B (en) Debugging method and computer system
US7370238B2 (en) System, method and software for isolating dual-channel memory during diagnostics
CN100568832C (en) The method for detecting of controlling address failure of medium access on network card
JPH05346900A (en) Data processing system and method for operating data processing system
JPH0535489A (en) Computer workstation
CN100498715C (en) Method for simulating IPMI by BIOS
CN101131662B (en) Computer automatic tour inspection system and method thereof
CN102662701A (en) Online CPLD (Complex Programmable Logic Devices) upgrading method, device and business veneer
EP2189906A1 (en) Method and apparatus for abnormality recovering of data card, and data card
US20090100287A1 (en) Monitoring Apparatus and a Monitoring Method Thereof
CN101135984B (en) Hardware information backup device, and method for backup operation information and saving detecting information
CN109918143A (en) OpenPOWER platform starts information display method and relevant apparatus
CN100367226C (en) Method for realizing parts detection utilizing intelligent equipment firmware
US8015448B2 (en) System and method for conducting BIST operations
KR100621095B1 (en) Booting-system and booting-method for initializing peripherals
CN114138527A (en) Method, device and medium for improving performance of server
CN110502386A (en) The on-line fault diagnosis method and apparatus of hard disk
CN107355949A (en) A kind of air-conditioning trouble shooting learning method
US6463559B1 (en) Non-volatile fault indicator
CN112182586A (en) Test method, device and system for MCU read-write protection
CN104298624B (en) A kind of method for safely downloading, apparatus and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20091209

Termination date: 20180613