Configure a Static ARP Entry
Network Requirements
- Device and PC are directly connected.
- The MAC address of PC is 4437.e603.0d63.
- The IP address and MAC address of PC is bound to Device.
- PC can successfully ping the address of the interface VLAN2 of Device.
Network Topology
Figure 1-2 Networking for Configuring a Static ARP Entry
Configuration Steps
Step 1: Create VLANs, and add ports to the required VLANs.(Omitted)
Step 2: Configure IP addresses for the ports. (Omitted)
Step 3: Bind the IP address and MAC address of PC to Device.
#Configure Device.
Bind the IP address and MAC address of PC to Device.
Device(config)#arp 10.0.0.1 4437.e603.0d63
|
Step 4: Check the result.
#Query the ARP entry of Device.
Device1#show arp
Protocol Address Age (min) Hardware Addr Type Interface Switchport
Internet 10.0.0.1 - 4437.e603.0d63 ARPA vlan2 gigabitethernet0/1
Internet 10.0.0.254 - 0001.7a13.0102 ARPA vlan2 ---------------
#PC can successfully ping the address 10.0.0.254 of the interface VLAN2 of Device.
C:\Documents and Settings>ping 10.0.0.254
Pinging 10.0.0.254 with 32 bytes of data:
Reply from 10.0.0.254: bytes=32 time<1ms TTL=255
Reply from 10.0.0.254: bytes=32 time<1ms TTL=255
Reply from 10.0.0.254: bytes=32 time<1ms TTL=255
Reply from 10.0.0.254: bytes=32 time<1ms TTL=255
Ping statistics for 10.0.0.254:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
|
#PC can successfully ping the address of the interface VLAN2 of Device.