To make the frames sent by a network adapter receive and process the frames correctly, IEEE stipulates that each network adapter has a unique ethernet address-MAC address (which is called MAC address by IEEE ).
Because the addressing details are
First, network settings related1. Dynamic reset of the physical address of the network cardFor some requirements, such as the IP address on the network or the network account and the physical address of the NIC to bind, so that multiple devices
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Class \{4D36E972-E325-11CE-BFC1-08002BE10318 }\ 0012] "NetworkAddress" ="0222A538E712"
RED: find right ID on your NIC
RED: Find the correct ID you
Using Python code to generate a random MAC address, use the Python network programming or available, and use the Scapy module to generate the Mac directly using the Randmac () function.
Python
Copy Code code as follows:
Import
first, the protocol formatThe format of the ARP protocol is as follows: two chunks to explain: 1, the red box up is: Ethernet header, a total of 14 bytes. This is part of the packet that you send whatever Ethernet protocol you want, and it is
This article describes how to generate random MAC addresses in Python. For more information, see use python code to generate a random MAC address, if you use the scapy module, you can directly use the RandMAC () function to generate a MAC.
Python
// Do bank 1 stuff, packet filter:// For broadcast packets we allow only ARP packtets// All other packets shocould be unicast only for our Mac (maadr)//// The pattern to match on is therefore// Type eth. dst// ARP Broadcast// 06 08 -- FF-> IP
SSH Chinese documentsSSH is a security protocol created on the application layer and transport layer, which is used to replace the poor security telnet and secure login.SSH is currently a more reliable protocol that provides security for Telnet
Http://zhidao.baidu.com/question/93567501.html
Http://blog.csdn.net/wzw200/archive/2009/07/23/4373056.aspx
Ethernet frame format
I. Development of Ethernet frame formats
1980 Dec, Intel, and Xerox have developed Ethernet I standards1982 Dec, Intel,
Name
Send_arp-tool to notify network of the A new IP Address/mac address mapping Synopsis
Send_arp takes the supplied data and sends it out as a ARP broadcast on the specified network. This tool was mostly used by software (such Aspiranha),
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.