CN105024949A - Port automatically binding method and system - Google Patents
Port automatically binding method and system Download PDFInfo
- Publication number
- CN105024949A CN105024949A CN201410174470.XA CN201410174470A CN105024949A CN 105024949 A CN105024949 A CN 105024949A CN 201410174470 A CN201410174470 A CN 201410174470A CN 105024949 A CN105024949 A CN 105024949A
- Authority
- CN
- China
- Prior art keywords
- mac address
- access switch
- port
- corresponding relation
- 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.)
- Pending
Links
Landscapes
- Small-Scale Networks (AREA)
Abstract
The present invention discloses a port automatically binding method and system. The method comprises acquiring a corresponding relation between MAC address of access switches and ports according to a MAC address list of the access switches; acquiring corresponding relations among users, IP addresses and the MAC addresses in a local area network; comprising the corresponding relation of the MAC address of each access switch and the port with the corresponding relation among the user, the IP address and the MAC address in the local area network, to obtain a corresponding relation among the user, the IP address, the MAC address and the port of each access switch; converting corresponding relation information among the user, the IP address, the MAC address and the port of each access switch into an access switch recognizable command which is then input into each access switch; and port automatically binding of the corresponding relation information among the user, the IP address, the MAC address and the port under each port by each access switch can be realized.
Description
Technical field
The present invention relates to computer realm, particularly relate to the automatic binding method of a kind of port and system.
Background technology
At present, for to carry out effective management and control to the terminal of access network in intranet, prevent implicit IP address from illegally being usurped, network manager generally will bind the IP address accessed terminal, MAC Address on the port of each access switch, i.e. the binding of IP, MAC, switch ports themselves three.This need of work network manager logs in access switch by platform, inputs the bind command of IP, MAC, switch ports themselves under each port enabled one by one.For the enterprise that headcount is less, this work is comparatively easy; But for large and medium-sized enterprise, because switch quantity is more, this need of work expends the longer time, efficiency is extremely low and easily make mistakes.
Summary of the invention
The embodiment of the present invention provides the automatic binding method of a kind of port and system, can realize port and automatically bind.
The embodiment of the present invention adopts following technical scheme:
The automatic binding method of a kind of port, comprising:
According to each access switch mac address table, obtain MAC Address and the port corresponding relation of each access switch;
Obtain the corresponding relation between the user in local area network (LAN), IP address, MAC Address three;
To MAC Address and the port corresponding relation of each access switch, and the corresponding relation between the user in local area network (LAN), IP address, MAC Address three is compared, obtain the corresponding relation between each access switch user, IP address, MAC Address, port;
Correspondence relationship information between each access switch user, IP address, MAC Address, port is converted into the order of switch identifiable design, inputs each switch;
Automatically sign in each access switch, the configuration of access switch is preserved.
Optionally, described according to each access switch mac address table, the MAC Address and the port corresponding relation that obtain each access switch comprise:
By the log-on message of all access switch stored in text, described log-on message comprises IP address, login name, entry password, super password information;
Utilize script to read the text having described log-on message, automatically sign in MAC Address and port corresponding relation that every platform access switch obtains access switch.
The automatic binding system of a kind of port, comprising:
MAC derives module, for deriving each access switch mac address table;
First acquisition module, for according to each access switch mac address table, obtains MAC Address and the port corresponding relation of each access switch;
Second acquisition module, for obtaining the corresponding relation between user in local area network (LAN), IP address, MAC Address three;
3rd acquisition module, for to the MAC Address of each access switch and port corresponding relation, and the corresponding relation between the user in local area network (LAN), IP address, MAC Address three is compared, obtain the corresponding relation between each access switch user, IP address, MAC Address, port;
Input module, for the correspondence relationship information between each access switch user, IP address, MAC Address, port is converted into the order of switch identifiable design, inputs each switch;
Set up-conservancy module, for automatically signing in every platform access switch and automatically preserving configuration.
Based on technique scheme, the embodiment of the present invention, according to each access switch mac address table, obtains MAC Address and the port corresponding relation of each access switch; Obtain the corresponding relation between the user in local area network (LAN), IP address, MAC Address three; To MAC Address and the port corresponding relation of each access switch, and the corresponding relation between the user in local area network (LAN), IP address, MAC Address three is compared, obtain the corresponding relation between each access switch user, IP address, MAC Address, port; Correspondence relationship information between each access switch user, IP address, MAC Address, port is converted into the order of switch identifiable design, inputs each switch; Automatically sign in every platform access switch and configuration is preserved automatically.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of the method that the port of the embodiment of the present invention is bound automatically;
Fig. 2 is the structural representation of the system that the port of the embodiment of the present invention is bound automatically.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment 1
The present embodiment provides a kind of port automatic binding method, comprising:
According to each access switch mac address table, obtain MAC Address and the port corresponding relation of each access switch;
Obtain the corresponding relation between the user in local area network (LAN), IP address, MAC Address three;
To MAC Address and the port corresponding relation of each access switch, and the corresponding relation between the user in local area network (LAN), IP address, MAC Address three is compared, obtain the corresponding relation between each access switch user, IP address, MAC Address, port;
Correspondence relationship information between each access switch user, IP address, MAC Address, port is converted into the order of switch identifiable design, inputs each switch;
Automatically sign in every platform access switch and configuration is preserved automatically.
Optionally, described according to each access switch mac address table, the MAC Address and the port corresponding relation that obtain each access switch comprise:
By the log-on message of all access switch stored in text, described log-on message comprises IP address, login name, entry password, super password information;
Utilize script to read and have the text of described log-on message, automatically sign in every platform access switch and obtain MAC Address and the port corresponding relation of access switch.
The present embodiment also provides a kind of port automatic binding system, comprising:
MAC derives module, for deriving each access switch mac address table;
First acquisition module, for according to each access switch mac address table, obtains MAC Address and the port corresponding relation of each access switch;
Second acquisition module, for obtaining the corresponding relation between user in local area network (LAN), IP address, MAC Address three;
3rd acquisition module, for to the MAC Address of each access switch and port corresponding relation, and the corresponding relation between the user in local area network (LAN), IP address, MAC Address three is compared, obtain the corresponding relation between each access switch user, IP address, MAC Address, port;
Input module, for the correspondence relationship information between each access switch user, IP address, MAC Address, port is converted into the order of switch identifiable design, inputs each switch;
Set up-conservancy module, for automatically signing in every platform access switch and automatically preserving configuration.
The embodiment of the present invention, according to each access switch mac address table, obtains MAC Address and the port corresponding relation of each access switch; Obtain the corresponding relation between the user in local area network (LAN), IP address, MAC Address three; To MAC Address and the port corresponding relation of each access switch, and the corresponding relation between the user in local area network (LAN), IP address, MAC Address three is compared, obtain the corresponding relation between each access switch user, IP address, MAC Address, port; Correspondence relationship information between each access switch user, IP address, MAC Address, port is converted into the order of switch identifiable design, inputs each switch; For automatically signing in every platform access switch and automatically preserving configuration.
Embodiment 2
Fig. 1 is the flow chart of the method that the port of the embodiment of the present invention is bound automatically, comprising:
Step S1, automatically signing in every platform access switch derives " MAC-Port " corresponding relation that its mac address table obtains every platform access switch.In this step, " IP address, login name, entry password, super password " information of all access switch is put into " log-on message " text, in fastening means, utilize the relevant information in script reading " log-on message " text, sign in in all access switch by platform, run the order checking MAC Address, mac address information is exported to (the corresponding mac address table file of every platform switch) in text, obtain " MAC-Port " corresponding relation of access switch.
Step S2, obtains " User-IP-MAC " corresponding relation in local area network (LAN).Generally all deploy Terminal Security Management system in enterprise, intranet user profile can be derived in systems in which, comprise user name, IP address, MAC Address, obtain " User-IP-MAC " corresponding relation in local area network (LAN); If do not dispose Terminal Security Management system in enterprise, network manager, by the ARP list (i.e. " IP-MAC " corresponding relation) of IP address assignment table (i.e. " User-IP " corresponding relation) in conjunction with core switch, equally also can obtain " User-IP-MAC " corresponding relation in local area network (LAN).
Step S3, obtains " User-IP-MAC-Port " corresponding relation in local area network (LAN)." User-IP-MAC " in MAC Address in the mac address table of access switch each in step S1 and step S2 is compared, obtains the corresponding relation of each switch " User-IP-MAC-Port ".This step is completed automatically by program.
Step S4, signs in each access switch automatically by " User-IP-MAC-Port is converted into switch order and inputs to switch.Similar to step S1, in fastening means, utilize the relevant information in script reading " log-on message " text, sign in in all access switch by platform, " convert information in User-IP-MAC-Port is the bind command of switch and inputs to switch in extraction.
Step S5, preserves configuration.Similar to step S1, S4, automatically sign in each access switch successively and run and preserve configuration order, the configuration of switch is preserved.
Fig. 2 is the structural representation of the system that the port of the embodiment of the present invention is bound automatically, comprising: MAC derives module, user name, IP, MAC input module, data processing module, order input module, log pattern, Set up-conservancy module.
MAC derives module 21, derives its mac address table for automatically signing in each access switch." IP address, login name, entry password, super password " information of all access switch is put into " log-on message " text by this module, in fastening means, utilize the relevant information in script reading " log-on message " text, sign in in all access switch by platform, run the order checking MAC Address, mac address information is exported to (the corresponding mac address table file of every platform switch) in text, obtain " MAC-Port (port) " corresponding relation of access switch.
User name, IP, MAC input module 22, for receiving " User-IP-MAC " corresponding relation in local area network (LAN).
Data processing module 23, for obtaining " User-IP-MAC-Port " corresponding relation in local area network (LAN)." User-IP-MAC " corresponding relation that " MAC-Port " corresponding relation utilizing module 21 to obtain and module 22 obtain generates each access switch " User-IP-MAC-Port " corresponding relation.
Order input module 24, is converted into switch order for automatically signing in each access switch by " User-IP-MAC-Port " and inputs to switch.In fastening means, utilize the relevant information in script reading " log-on message " text, sign in in all access switch by platform, convert information in " User-IP-MAC-Port " is the bind command of switch and inputs to switch, annotate under the port of access switch, indicate the user of this switch ports themselves.
Log pattern 25, for recording the Operation Log of every platform access switch.
Set up-conservancy module 26, for the automatic preservation of every platform access switch configuration.
The embodiment of the present invention, step S1, step S4, step S5, module 21, module 24, module 25, module 26 all have employed fastening means and automatically log in and configuration switch in conjunction with the mode of script, step S2, S3, module 22, module 23 utilize program automatically to realize, and greatly improve the efficiency of IP, MAC, switch ports themselves binding work.
Those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.
Claims (3)
1. the automatic binding method of port, is characterized in that, comprising:
According to each access switch mac address table, obtain MAC Address and the port corresponding relation of each access switch;
Obtain the corresponding relation between the user in local area network (LAN), IP address, MAC Address three;
To MAC Address and the port corresponding relation of each access switch, and the corresponding relation between the user in local area network (LAN), IP address, MAC Address three is compared, obtain the corresponding relation between each access switch user, IP address, MAC Address, port;
Correspondence relationship information between each access switch user, IP address, MAC Address, port is converted into the order of switch identifiable design, inputs each switch.
2. method according to claim 1, is characterized in that, described according to each access switch mac address table, and the MAC Address and the port corresponding relation that obtain each access switch comprise:
By the log-on message of all access switch stored in text, described log-on message comprises IP address, login name, entry password, super password information;
Utilize script to read the text having described log-on message, obtain MAC Address and the port corresponding relation of access switch.
3. the automatic binding system of port, is characterized in that, comprising:
MAC derives module, for deriving each access switch mac address table;
First acquisition module, for according to each access switch mac address table, obtains MAC Address and the port corresponding relation of each access switch;
Second acquisition module, for obtaining the corresponding relation between user in local area network (LAN), IP address, MAC Address three;
3rd acquisition module, for to the MAC Address of each access switch and port corresponding relation, and the corresponding relation between the user in local area network (LAN), IP address, MAC Address three is compared, obtain the corresponding relation between each access switch user, IP address, MAC Address, port;
Input module, for the correspondence relationship information between each access switch user, IP address, MAC Address, port is converted into the order of switch identifiable design, inputs each switch;
Set up-conservancy module, for the automatic preservation of every platform access switch configuration.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410174470.XA CN105024949A (en) | 2014-04-28 | 2014-04-28 | Port automatically binding method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410174470.XA CN105024949A (en) | 2014-04-28 | 2014-04-28 | Port automatically binding method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105024949A true CN105024949A (en) | 2015-11-04 |
Family
ID=54414668
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410174470.XA Pending CN105024949A (en) | 2014-04-28 | 2014-04-28 | Port automatically binding method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105024949A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107888563A (en) * | 2017-10-17 | 2018-04-06 | 北京北信源软件股份有限公司 | A kind of determination method and apparatus of terminal access position |
CN109005172A (en) * | 2018-08-02 | 2018-12-14 | 郑州云海信息技术有限公司 | A kind of method, apparatus and storage medium for adding port forward rule |
CN111343193A (en) * | 2020-03-06 | 2020-06-26 | 咪咕文化科技有限公司 | Cloud network port security protection method and device, electronic equipment and storage medium |
CN112019653A (en) * | 2020-09-09 | 2020-12-01 | 迈普通信技术股份有限公司 | Access switch, IP address deployment method, device and readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1925497A (en) * | 2006-01-19 | 2007-03-07 | 莱克斯信息技术(北京)有限公司 | Binding method based on VID, MAC, IP and users |
US7234163B1 (en) * | 2002-09-16 | 2007-06-19 | Cisco Technology, Inc. | Method and apparatus for preventing spoofing of network addresses |
CN101193116A (en) * | 2007-07-09 | 2008-06-04 | 福建星网锐捷网络有限公司 | A method, system and router for coordinated prevention from address parsing protocol attack |
CN103401706A (en) * | 2013-07-26 | 2013-11-20 | 迈普通信技术股份有限公司 | Method and device for configuring port security |
-
2014
- 2014-04-28 CN CN201410174470.XA patent/CN105024949A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7234163B1 (en) * | 2002-09-16 | 2007-06-19 | Cisco Technology, Inc. | Method and apparatus for preventing spoofing of network addresses |
CN1925497A (en) * | 2006-01-19 | 2007-03-07 | 莱克斯信息技术(北京)有限公司 | Binding method based on VID, MAC, IP and users |
CN101193116A (en) * | 2007-07-09 | 2008-06-04 | 福建星网锐捷网络有限公司 | A method, system and router for coordinated prevention from address parsing protocol attack |
CN103401706A (en) * | 2013-07-26 | 2013-11-20 | 迈普通信技术股份有限公司 | Method and device for configuring port security |
Non-Patent Citations (2)
Title |
---|
汪玲敏,等: "利用VBScript脚本功能提高信息网络日常维护工作效率", 《电脑知识与技术》 * |
王东,等: "IP地址和MAC地址绑定在路由器上的实现", 《技术研发》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107888563A (en) * | 2017-10-17 | 2018-04-06 | 北京北信源软件股份有限公司 | A kind of determination method and apparatus of terminal access position |
CN107888563B (en) * | 2017-10-17 | 2020-07-14 | 北京北信源软件股份有限公司 | Method and device for determining terminal access position |
CN109005172A (en) * | 2018-08-02 | 2018-12-14 | 郑州云海信息技术有限公司 | A kind of method, apparatus and storage medium for adding port forward rule |
CN111343193A (en) * | 2020-03-06 | 2020-06-26 | 咪咕文化科技有限公司 | Cloud network port security protection method and device, electronic equipment and storage medium |
CN111343193B (en) * | 2020-03-06 | 2022-06-07 | 咪咕文化科技有限公司 | Cloud network port security protection method and device, electronic equipment and storage medium |
CN112019653A (en) * | 2020-09-09 | 2020-12-01 | 迈普通信技术股份有限公司 | Access switch, IP address deployment method, device and readable storage medium |
CN112019653B (en) * | 2020-09-09 | 2022-08-12 | 迈普通信技术股份有限公司 | Access switch, IP address deployment method, device and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103065074B (en) | A kind of method of carrying out URL control of authority based on fine granularity | |
CN106294222A (en) | A kind of method and device determining PCIE device and slot corresponding relation | |
CN103618719B (en) | Cloud service identity authentication method and equipment | |
CN105024949A (en) | Port automatically binding method and system | |
CN103118031A (en) | Method and electronic device for logging in application account | |
CN104980552B (en) | Realize the method and system of Android mobile terminal automatic test | |
CN110750793B (en) | Vulnerability scanning method and device | |
CN103067372B (en) | Cloud terminal logs in method and the login system of Cloud Server | |
CN103731356A (en) | Message processing method and device | |
CN103942491A (en) | Internet malicious code disposal method | |
CN105429929A (en) | Information processing method, client, server and information processing system | |
CN105516359A (en) | Method for managing and operating SAS Switch JBOD (Just a Bunch Of Disks) by using telnet protocol | |
CN101764689A (en) | Method of system for controlling logging-in mode of user | |
CN109359449B (en) | Authentication method, device, server and storage medium based on micro service | |
CN102981822A (en) | Method and equipment of treatment strategy | |
CN104182479B (en) | A kind of method and device handling information | |
CN103139136A (en) | Method and device for managing passwords | |
CN106528007A (en) | Printing control system and printing method thereof | |
US20180203893A1 (en) | Dynamically reconciling objects from multiple sources | |
CN104298570A (en) | Data processing method and device | |
CN101674327A (en) | Heterogeneous system message integration method, framework and system | |
CN104518871A (en) | Network platform and method for performing self-service authentication on mobile storage equipment | |
CN106127045A (en) | File fingerprint identifies and introduction method and system automatically | |
CN114338527B (en) | IPv6 active identifier processing method and system | |
CN102215275B (en) | Service processing method and system as well as set top box |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into 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: 20151104 |