Step 2 Check the ARP Cache
Like any host on a network, a firewall must have the basic mechanism to relate IP addresses (Layer 3) to MAC addresses (Layer 2). This is done by building and maintaining an ARP cache. Normally, when a host knows a destination's IP address, it sends an ARP request in the hope that the destination will send an ARP reply with its MAC address. The firewall can build its ARP cache by sending its own ARP requests or by listening to other ARP replies on its interfaces.
Connectivity through the firewall can be affected if the firewall has a stale or incorrect ARP entry. For example, the next-hop router on an interface might have just changed its IP address. A host on the local network of a firewall interface could also change its IP address. If the firewall has a previous ARP entry and does not hear an ARP reply with the new information, it continues to use the stale entry.
For example, consider a host that starts out with IP address 192.168.199.100. Later, it changes to 192.168.199.101. Here is the firewall ARP cache before and after the address change:
Firewall# show arp inside 192.168.199.100 0050.e2c6.f680 Firewall# show arp inside 192.168.199.101 0050.e2c6.f680 inside 192.168.199.100 0050.e2c6.f680 Firewall# show arp timeout arp timeout 14400 seconds
With the default ARP timeout value, the old ARP entry remains in the cache for up to 4 hours! (In ASA, the show arp timeout command is actually show running-config arp timeout.)
Now imagine the opposite case, in which a change in MAC addresses occurs. Suppose the hosts on a network have been using an existing router as their default gateway. The router has always been 192.168.199.1 (00d0.0457.3bfc). Now a firewall is being installed in the network, and it will become the default gateway for the internal hosts. Therefore, the firewall uses 192.168.199.1, and the change in gateway platforms is transparent to the end users.
For security reasons, Cisco firewalls try to stay silent and do not announce any information about themselves. As a result, they do not send gratuitous ARP requests on their interfaces. One side effect of this appears when a firewall replaces an existing router on the network. All the internal hosts still have an ARP cache entry for 192.168.199.1 as 00d0.0457.3bfc, which belonged to the router. The firewall comes up as 192.168.199.1, but with its own MAC address of 0090.276c.3d0a. Because it does not announce itself with a gratuitous ARP, the hosts never notice the change in MAC addresses, and they continue to use the old router MAC address until their ARP entries expire. In other words, none of the hosts can send packets to their default gateway (the firewall) until the old ARP entries are flushed.
You should also be aware of how a firewall maintains its own ARP cache. If an ARP cache entry exists for an IP-to-MAC address mapping, a new ARP reply has the following effect:
• If the MAC address is the same, but the IP address is different, a new ARP entry is added to the cache.
• If the IP address is the same, but the MAC address is different, the existing ARP entry is overwritten with the new information.
You can follow these steps to verify ARP cache information:
1. Display the ARP cache:
Firewall# show arp
Each ARP entry contains the station's MAC address, the corresponding IP address, and the firewall interface where the ARP reply was heard. A sample ARP cache is as follows:
Firewall # show arp stateful 192.168.199.2 0030.8587.5432 outside 172.16.11.71 0003.4725.2e23 outside 172.16.11.67 00d0.01e6.6ffc inside 192.168.25.9 0003.4725.2e94 inside 192.168.25.10 0003.a088.5769 inside 192.168.254.2 0000.0c07.ac01
2. (Optional) Verify the ARP cache timeout value:
Continue reading here: Step 4 Use Traceroute to Verify the Forwarding Path
Was this article helpful?
Readers' Questions
-
maire7 months ago
- Reply