ARP commands run to implement static IP/MAC bindings

Source: Internet
Author: User
Tags get ip

The company network appears locally unable to connect, before the company is assigned to the fixed IP, the result is still unable to connect the network, later managed to help me set the next, I also learned the next. The solution is as follows:

1. First run CMD as Administrator Open command-line program start-Program-Accessories-command Prompt right-click to select "Run as Administrator"

2. Enter the command arp-a see the ARP table entry after the successful addition, the result is as follows:


C:\windows\system32>arp-a

Interface: 192.168.16.65---0xa
Internet Address Physical Address type
192.168.16.1 00-11-22-33-44-55 News
192.168.16.52 74-D4-35-00-67-54 News
192.168.16.66 38-2C-4A-5E-2C-D9 News
192.168.16.200 F0-79-59-66-1A-D6 News
192.168.255.255 ff-ff-ff-ff-ff-ff Static
224.0.0.22 01-00-5e-00-00-16 Static
224.0.0.252 01-00-5E-00-00-FC Static
237.171.210.221 01-00-5e-2b-d2-dd Static
255.255.255.255 ff-ff-ff-ff-ff-ff Static

You can see my bold section, the type is dynamic and cannot connect to the network.

3. Run Netsh i i show in or input netsh interface ipv4 show interface

Results appear:

IDX Met MTU Status Name
--- ---------- ---------- ------------ ---------------------------
1 4294967295 connected Loopback Pseudo-Interface 1
Connected Local Connection
1400 Disconnected Local Connection * 9

4, in the above display content to find you to use the Internet connection deidx that number, in the following command (I Internet de network card shi "local link" so idx is 10). Then, in the Command Prompt window, enter:
Netsh-c "I i" Add Neighbors "192.168.16.1" "00-22-aa-cc-a0-af" enter

instructions, "00-22-aa-cc-a0-af" is Gateway Mac

5. Then run arp-a at the command prompt to see that the bundled gateway is static

6, then release the old IP, and then get the new IP.

Ipconfig/release Enter


Ipconfig/renew Enter

7. Change IPv4 to get IP automatically

Reference URL: http://blog.sina.com.cn/s/blog_459861630100ndcc.html

Http://www.woaidiannao.com/dnpz/3336.html

ARP commands run to implement static IP/MAC bindings

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.