CN1767545B - Method for obtaining device MAC address - Google Patents

Method for obtaining device MAC address Download PDF

Info

Publication number
CN1767545B
CN1767545B CN 200410086134 CN200410086134A CN1767545B CN 1767545 B CN1767545 B CN 1767545B CN 200410086134 CN200410086134 CN 200410086134 CN 200410086134 A CN200410086134 A CN 200410086134A CN 1767545 B CN1767545 B CN 1767545B
Authority
CN
China
Prior art keywords
mac address
device mac
station location
location marker
unit
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
CN 200410086134
Other languages
Chinese (zh)
Other versions
CN1767545A (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.)
Nanjing Kang Shisheng Computer Technology Co ltd
Original Assignee
ZTE 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 ZTE Corp filed Critical ZTE Corp
Priority to CN 200410086134 priority Critical patent/CN1767545B/en
Publication of CN1767545A publication Critical patent/CN1767545A/en
Application granted granted Critical
Publication of CN1767545B publication Critical patent/CN1767545B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

This invention discloses a method for obtaining the MAC address of a device including: 1, designing the position ID of a physical position ID unit of a device, 2, turning on the device, 3, fetching the physical position ID information by a hardware logic and writing it in a register, 4, a MAC address generating unit takes the plant number of the device as the prefix and combines it with the physical position ID information in the register to generate the MAC address of the device, 5, the generating unit reports the generated address to the address resource management unit of the system to register it and judges if there is conflict to the MAC address, 6, returning to the first to reset the physical position ID if so, otherwise, it's over, which gets the MAC address when a device is turnedon automatically.

Description

A kind of method of obtaining device mac address
Technical field
The present invention relates to the equipment addressing of communication, electronic applications, in particular to a kind of method of obtaining device mac address.
Background technology
In the network based on the IP communication, the network equipment must dispose MAC Address just can carry out normal communication.Current at present device mac address production method is: the manufacturer that produces the network equipment buys one section MAC Address to the IEEE application, and MAC Address is burnt in the equipment, just can obtain the MAC Address of oneself after the device power by the content that reads burning.Because MAC Address must be unique, cause the program that in device fabrication, needs burning different, this just is unfavorable for large-scale production, and in a single day MAC Address is solidificated in the equipment in addition, and just inconvenience is revised, and lacks flexibility.
Summary of the invention
Purpose of the present invention is exactly the method for obtaining device mac address that helps the applying flexible of large-scale production.
A kind of method of obtaining device mac address is characterized in that comprising the following steps:
The first step, the station location marker of devices'physical locations identify unit is set;
Second step, device power;
The 3rd step, hardware logic read the physical location identification information, and write register;
The 4th step, device mac address generation unit with instrument factory trading company as prefix, with the MAC Address of physical location identification information in register combination generation equipment;
The 5th step, device mac address generation unit report the system address rm-cell with the device mac address that generates, and the MAC Address conflict is registered and judged whether in the address resource management unit to device mac address;
Return the first step if there was the MAC Address conflict in the 6th step and reset the physical location sign; Otherwise finish.
The method that the present invention proposes cooperates by software and hardware when device power, obtains MAC Address automatically, and method is simple, can not cause the software version difference of equipment because of the reason of MAC Address, helps production line large-scale production.And when needs are revised device mac address,, give device power again as long as change the physical location sign, just can change device mac address.
Description of drawings
Fig. 1 is the flow chart of the method that proposes of the present invention.
Embodiment
Further describe the present invention below in conjunction with drawings and Examples.
The realization of the method that the present invention proposes relates to the address resource management unit of devices'physical locations identify unit, MAC Address generation unit and system, is described below respectively:
The physical location identify unit: the physical location of marking equipment in network, as the unique identification of equipment.In order to distinguish the miscellaneous equipment in the network, as the foundation that constitutes MAC Address, avoid taking place the MAC Address conflict with this.The physical location identify unit is in order to distinguish each equipment, in network, must keep uniqueness, can be by the realization of leaving behind on toggle switch or the resistance, toggle switch or resistance several sections be can be divided into, network element, frame, machine frame, groove position or expression province, city, district, office represented respectively.Read sign by logic after powering on and be kept in the register, read for the MAC Address generation unit;
MAC Address generation unit: according to the information that the physical location identify unit provides, generate the MAC Address of equipment, and MAC Address is reported the address resource management unit.
Address resource management unit: receive mac address information,, avoid taking place address conflict in order to MAC Address in registration, the whole network of management from the MAC Address generation unit.If exist conflict to need alarm to give the user.
As shown in Figure 1, the method for the present invention's proposition comprises the following steps:
The first step, the station location marker of devices'physical locations identify unit is set.Draw and drop-down realization on break-make that can be by toggle switch is set or the resistance.
Second step, device power.
The 3rd step, hardware logic read the physical location identification information, and write register.The hardware logic here is meant EPLD or the CPLD or the FPGA of physical location identify unit the inside, and the inside burning program can move after powering on.
The 4th step, device mac address generation unit with instrument factory trading company as prefix, with the MAC Address of physical location identification information in register combination generation equipment.The device mac address generation unit at first will read the trading company of factory of MAC Address, and trading company of factory is bought to IEEE by manufacturer, and as the prefix of MAC Address, trading company of factory can be solidificated in the program, makes up after reading the physical location identification information then from register.For example: trading company of factory is 00-D0-D0, and the physical location sign is 16bit, and the information that reads from register is 1F-58, and then MAC Address can be 00-D0-D0-00-1F-58.
The 5th step, device mac address generation unit report the system address rm-cell with the device mac address that generates, and the MAC Address conflict is registered and judged whether in the address resource management unit to device mac address.
Return the first step if there was the MAC Address conflict in the 6th step and reset the physical location sign; Otherwise finish.If there is the MAC Address conflict, then must resets the physical location sign and generate new MAC Address.

Claims (4)

1. a method of obtaining device mac address is characterized in that comprising the following steps:
The first step, the station location marker of devices'physical locations identify unit is set, the station location marker of devices'physical locations identify unit perhaps is set with province, city, district's drawn game with network element, frame, machine frame and groove position;
Second step, device power;
The 3rd step, hardware logic read station location marker information, and write register;
The 4th step, device mac address generation unit as prefix, generate the MAC Address of equipment with station location marker information combination in the register with instrument factory trading company;
The 5th step, device mac address generation unit report the system address rm-cell with the device mac address that generates, and the MAC Address conflict is registered and judged whether in the address resource management unit to device mac address;
If there was the MAC Address conflict in the 6th step then returned the first step and reset station location marker; Otherwise finish.
2. method according to claim 1 is characterized in that described physical location identify unit realizes with toggle switch.
3. method according to claim 1 is characterized in that described physical location identify unit is with the realization of leaving behind on the resistance.
4. according to claim 1 or 2 or 3 described methods, it is characterized in that the trading company of factory of equipment in described the 4th step is solidificated in the program.
CN 200410086134 2004-10-27 2004-10-27 Method for obtaining device MAC address Expired - Fee Related CN1767545B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200410086134 CN1767545B (en) 2004-10-27 2004-10-27 Method for obtaining device MAC address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200410086134 CN1767545B (en) 2004-10-27 2004-10-27 Method for obtaining device MAC address

Publications (2)

Publication Number Publication Date
CN1767545A CN1767545A (en) 2006-05-03
CN1767545B true CN1767545B (en) 2010-06-16

Family

ID=36743144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200410086134 Expired - Fee Related CN1767545B (en) 2004-10-27 2004-10-27 Method for obtaining device MAC address

Country Status (1)

Country Link
CN (1) CN1767545B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100407685C (en) * 2006-08-18 2008-07-30 华为技术有限公司 Method for obtaining MAC address by communication apparatus and communication system
CN101179420B (en) * 2006-11-09 2010-09-29 中兴通讯股份有限公司 Method of preventing copy use of pluggable optical module
CN101414892A (en) * 2007-10-16 2009-04-22 华为技术有限公司 Method, system and node equipment for detecting link layer address collision
CN101272305B (en) * 2008-04-29 2011-06-08 华为技术有限公司 Access point/user set network entry method, access point and network management device
CN102710436B (en) * 2012-05-23 2016-06-29 福建星网锐捷网络有限公司 A kind of network device management method, device, relevant device and system
CN105430118B (en) * 2015-12-28 2019-05-17 广州慧睿思通信息科技有限公司 A kind of MAC Address generation method and device
CN105959429A (en) * 2016-04-28 2016-09-21 浪潮电子信息产业股份有限公司 Method for ensuring network card MAC address uniqueness in computer complete machine system batch production

Also Published As

Publication number Publication date
CN1767545A (en) 2006-05-03

Similar Documents

Publication Publication Date Title
CN107743072B (en) Efficient and extensible network simulation scene generation method
ATE340401T1 (en) NETWORK AND INFORMATION REPRESENTATION USING OBJECTS
CN104144215B (en) A kind of construction method of the ubiquitous device resource model of Internet of Things
CN101635645B (en) Method and device for managing network topology
CN105095553A (en) Topology display method and device
KR101574524B1 (en) Method and recording medium for compatibility between iec61850 and opc ua
CN108259209A (en) Method for configuring network equipment and device
DE60038054D1 (en) PROCESS FOR FACILITATING ELECTRONIC COMMUNICATION
CN1767545B (en) Method for obtaining device MAC address
CN101944770A (en) Communication implementation method of virtual station grade IED mode between primary station and substation in fault information system 61850
JP2002334030A5 (en) Position recognition system
CN112580178B (en) Graph-model bidirectional verification method and device for energy management system
JP2002344486A5 (en)
CN112055062A (en) Data communication method, device, equipment and readable storage medium
CN109309633A (en) A kind of whole machine cabinet server node management method and device based on management interchanger
CN114035539B (en) Method, device, equipment and storage medium for generating communication matrix of instantiated vehicle type
CN107786633A (en) Water meter querying method and Internet of things system based on compound Internet of Things
CN103227723B (en) A kind of service issuing method, service publication server and service register machine
CN102904743A (en) Electronic apparatus and methods for handling multiple device management (dm) server addresses
CN101150777B (en) SCCP addressing configuration method and device for user number
CN105607594A (en) Method for searching equipment in server memory based on smart home
WO2006093879A3 (en) Naming system layer
CN106508103B (en) A kind of dynamic control method of communication network simulation
CN105426615A (en) Modeling method for intelligent electronic device of power monitoring management system of intelligent substation
CN104516622A (en) Information processing method and device

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
ASS Succession or assignment of patent right

Owner name: NANJING YUHUATAI INTELLECTUAL PROPERTY CENTER

Free format text: FORMER OWNER: ZTE CORPORATION

Effective date: 20140926

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 518057 SHENZHEN, GUANGDONG PROVINCE TO: 210012 NANJING, JIANGSU PROVINCE

TR01 Transfer of patent right

Effective date of registration: 20140926

Address after: 210012 A building, 12, blue valley mansion, No. 106 software Avenue, Yuhuatai District, Jiangsu, Nanjing

Patentee after: NANJING YUHUATAI INTELLECTUAL PROPERTY PROMOTION CENTER

Address before: 518057 Nanshan District, Guangdong high tech Industrial Park, science and Technology Industrial Park, ZTE building, block A, layer 6, layer

Patentee before: ZTE Corp.

ASS Succession or assignment of patent right

Owner name: NANJING ENGINE INFORMATION + TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: NANJING YUHUATAI INTELLECTUAL PROPERTY CENTER

Effective date: 20141015

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 210012 NANJING, JIANGSU PROVINCE TO: 210000 NANJING, JIANGSU PROVINCE

TR01 Transfer of patent right

Effective date of registration: 20141015

Address after: 210000, room 55, 103 Hong Kong court, Qinhuai District, Jiangsu, Nanjing

Patentee after: Nanjing Anze Information Technology Co.,Ltd.

Address before: 210012 A building, 12, blue valley mansion, No. 106 software Avenue, Yuhuatai District, Jiangsu, Nanjing

Patentee before: NANJING YUHUATAI INTELLECTUAL PROPERTY PROMOTION CENTER

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20160908

Address after: 210000 A3 building, 180 software Avenue, Yuhuatai District, Jiangsu, Nanjing

Patentee after: Nanjing Kang Shisheng Computer Technology Co.,Ltd.

Address before: 210000, room 55, 103 Hong Kong court, Qinhuai District, Jiangsu, Nanjing

Patentee before: Nanjing Anze Information Technology Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100616

CF01 Termination of patent right due to non-payment of annual fee