Use the command line to bind an IP address to a MAC address.

Source: Internet
Author: User

Why do I need to bind an IP address? Can the IP address you specified be connected to the Internet? The reason for binding an IP address is that it will change the IP address. For example, if the IP address on my local machine is 192.168.1.11, this IP address has already been set on the firewall and cannot access the Internet, but if I know that there is an IP address 192.168.1.30 that can access the Internet, so I won't change 192.168.1.11 to 192.168.1.30 to be able to access the Internet? Therefore, the IP address is bound to prevent him from changing the IP address. Because the MAC address of the NIC is the only one in the world, like our ID card, he will not recognize it once he changes it. So how to bind it?

For example, my IP address is 192.168.1.11, And the MAC address of the NIC is 00-11-2f-3f-96-88 (how can I see my mac address? Enter ipconfig/all in the command line and respond as follows:

Physical address ......: 00-11-2f-3f-96-88

DHCP enabled...

IP address ......: 192.168.1.11

Subnet Mask ......: 255.255.255.0

Default Gateway...: 192.168.1.1

DNS servers ......: 61.177.7.1

Primary WINS server...: 192.168.1.254

This information is the IP address and MAC address of your current computer!

Enter ARP-s 192.168.1.11 00-11-2f-3f-96-88 in the command line and press Enter.

It is bound.

To check whether it is bound, run ARP-A 192.168.1.11 and press Enter. The following message is displayed:

Internet address physical address type

192.168.1.30 00-11-2f-3f-96-88 static

OK.

What if I want to divide it? Enter ARP-D 192.168.1.30 in the command line to remove it.

Bind Gateway:

ARP-s 192.168.1.1 XX-XX (Gateway MAC address)

View your IP address and the MAC address of the NIC. For Windows 98/Me, Run "winipcfg". The IP address displayed in the dialog box is, and the "adapter address" is the MAC address of the NIC. In Windows 2000/XP, enter "ipconfig/all" at the command prompt. The displayed "physical address" is the MAC address, and "ip address" is the IP address; to bind the two, enter "ARP-s IP address MAC address", for example, "ARP-s 192.168.0.28 54-44-4b-b7-37-21.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.