ARP, ARP Inspection, ARP Types and Deployment Considerations

This article is the second of our layer 2 attacks identification and mitigation techniques series, which will be a part of a bigger series discussing Security Infrastructure. Dynamic ARP Inspection relies on DHCP snooping technology explained in the previous article. It’s strongly recommended to be familiar with DHCP snooping, if you are not, just take a quick look at it.

Background What is ARP?

Address Resolution Protocol is a layer 2 protocol responsible for resolving IPv4 addresses to MAC addresses. Note: IPv6 does NOT use ARP; it uses a different protocol that relies on ICMP called Network Discovery Protocol (NDP). We will get to that in later article when we discuss IPv6 security and deployment considerations.

Why do we need ARP?

When a device needs to communicate with another; it need to know the MAC address of the next hop to forward data packets to. The next hop could be another host in the same segment or the default gateway (if both devices reside on 2 different segments).

ARP message types:

Request: A Host send a broadcast looking for the MAC address of a specific IP address.

Reply: A Host replies to an ARP request with his MAC address. Types of ARP

ARP: The host knows the IP address of the destination and needs the layer 2 MAC address.


Figure 1 – ARP Message format

RARP (Reverse ARP):

The client knows the MAC address and need the IP address of the destination. Obsolete by the use of BOOTP and DHCP.

InARP (Inverse ARP): Works with Frame Relay. In this case (like RARP) the client knows the layer 2 address (DLCI) and needs the layer 3 IP address. InARP is also used with ATM technology for the same purpose. You can also check our another blog post on Gratuitous ARP!.

ARP Poisoning and Man In The Middle  

Due to GARP capability to update ARP cache entries on other hosts; attackers exploit this feature to perform a Man In The Middle (MITM) attack by altering (poisoning) other hosts ARP cache tables.


Figure 2 – ARP Poisoning

When a host goes online and connects to the network it sends an ARP message to acquire the MAC address of its default gateway and starts communicating with other networks (for ex., The Internet). An attacker will send a GARP to that host telling him that the gateway MAC address has changed and puts his MAC address (the attackers MAC) associated with the gateway IP address.

The victim host will receive the GARP and changes his cache table to the new gateway MAC address, and starts sending traffic with the attacker MAC address as a destination layer 2 address. Now, the switch is a layer 2 device; it forwards traffic based on MAC addresses, as a result, the switch will forward the traffic to the destination MAC address, which is the attacker MAC address.

The attacker will then receive the packets; view (or alter) them, and forwards it to the actual gateway MAC address with his MAC address as the source address. When the gateway replies back; it will be replying to the attackers MAC address; because for the gateway the traffic originated from the attacker; the gateway does not know anything about the victim host.

The attacker will receive the traffic, forwards it back to the victim, and continues like that till the victim reboots or clears its ARP cache table.

Dynamic ARP Inspection (DAI)

DAI is a security feature that allows us to intercept and validate ARP packets originating from hosts connected to the switch. DAI uses the DHCP snooping binding table to validate the ARP packets. DAI deployment involves identification of trusted and untrusted ports. DAI will trust and allow -without inspection- ARP packets on all trusted interfaces, and will intercept all packets on untrusted interfaces.

When DAI intercepts a packet it compares the source MAC and IP addresses with the DHCP snooping binding table; if DAI finds a valid entry it will allow the packet to pass, if no valid entry found, it will drop the packet and log the event. This way ARP can make sure that only valid packets are allowed; and that’s because entries in DHCP snooping binding table are created when a host acquires IP address from DHCP server.

DAI Deployment considerations

As stated before DAI relies on DHCP snooping to perform ARP packets validation; that means you must allow for the binding table to be built before applying DAI, otherwise, DAI will block everything. Allow the same time of DHCP lease. For example, if DHCP lease time is 1 day; give DHCP snooping 1 day; and then apply DAI.

Trusted and untrusted ports should be configured properly; All ports connected to hosts should be configured as untrusted; ports connected to other switches should be configured as trusted.

For statically assigned IP addresses, you have to create static entries in the snooping binding table. In our next article, we will discuss IP source guard. Source guard is another l2 security technique that also relies on DHCP Snooping.

Created by
Orhan Ergun

Orhan Ergun, CCIE/CCDE Trainer, Author of Many Networking Books, Network Design Advisor, and Cisco Champion 2019/2020/2021

He created OrhanErgun.Net 10 years ago and has been serving the IT industry with his renowned and awarded training.

Wrote many books, mostly on Network Design, joined many IETF RFCs, gave Public talks at many Forums, and mentored thousands of his students.  

Today, with his carefully selected instructors, OrhanErgun.Net is providing IT courses to tens of thousands of IT engineers. 

View profile

Daniel Lardeux
Daniel Lardeux Senior Network Consultant at Post Telecom

I passed the CCDE Practical exam and Orhan’s CCDE course was very important contributor to my success. I attended the CCDE course of Orhan Ergun in July and it was exactly what I needed, Orhan is taking the pain to break down the different technologies.

Roy Lexmond
Roy Lexmond Senior Network Designer at Routz CCDE #20150017 & CCIE R&S; #26557

After I attended Orhan Ergun’s CCDE course I passed the CCDE practical exam.I really enjoyed the course a lot ...

Nicholas Russo
Nicholas Russo Network Consulting Engineer (CCDE/CCIEx2), Cisc

I signed up for Orhan’s CCDE training. This training is very technically detailed and the use-cases, quizzes, scenarios, and mind maps are all great resources in the overall training program. Orhan teaches his students to think like a network designer ...

Slide Heading
Slide Heading Network Systems Engineer at Conscia A/S CCIE #42544 (SP) & CCDE #20160015

Orhan is forcing you to take off the implementation hat that most of us have been wearing for many years, instead he is providing a new fancy design hat, which makes you see and deal with the issues presented ...

Kim Pedersen
Kim Pedersen CCIE in RS and SP (#29189) CCDE#20170021

I’ve used Orhan’s self-paced CCDE training material. If you are interested in knowing how all the technologies go together in a coherent design i can highly recommend it.I also enjoyed the Quizzes which helped pick out my weak spots in selecting ...

Laurent Metzger
Laurent Metzger 3xCCIE/CCDE Senior Network Architect

Hi Orhan. I passed the CCDE exam on February 22. I read everything that you put on your Self Paced CCDE Training course and it was very helpful in my success. Thank you very much.

Martin J. Duggan
Martin J. Duggan Network Architect at AT&T;, Ciscopress Author CCDE #20160006 & CCIE#7942

I attended Orhan’s April 201610 days CCDE Bootcamp. I am CCDE now !

You can tell Orhan has a great deal of experience, it really comes through when he presents his design case studies and the CCDE Practical scenarios.

Muhammad Abubakar
Muhammad Abubakar Lead Network Architect – CCDE #20160016 2xCCIE #26693 2xJNCIE VCIX

Your excellent CCDE materials and amazing Bootcamp helped me tremendously through my learning journey.Also thank you very much for being available whenever I have a design question or a complex design topics. I can’t compare your design skills ...

Jennifer Pai
Jennifer Pai Network/Security Engineer at KNET Technology

Thanks Orhan very much for this course. It helped strengthen my “Network design mind”.

Ruslan Silyayev
Ruslan Silyayev Solution Architect at R.I.S.K Company

Training by Orhan is not a CCDE preperation training only. It will be useful for engineers which are dealing with design. You want to pass CCDE exam or learn network design, then don’t look at anywhere else!

Sameer Meher
Sameer Meher Solutions Architect at 23 Wards/Japan

Orhan Ergun’s CCDE course was really very good. CCDE Level Intelligence was delivered very well and with very useful case studies and the scenarios, I am thankful to Orhan for all his help!

Ken Young
Ken Young Senior Technical Architect Province of Nova Scotia, 2xCCIE #41597 | CCDE #20170047

If anyone wants to understand network design and architecture, also pass CCDE exam , I recommend you to attend Orhan’s online courses! I am a CCDE now but learning is a journey, we will be together in your other courses too Orhan!

Matt Cross
Matt Cross Technical Architect at Heartland – CCDE #2019::7

Orhan did an excellent job of filling in the gaps of knowledge that I had that took me to the finish line of the practical exam CCDE. The community of people that Orhan facilitates are both engaging and supportive of the journey to CCDE. Orhan ...

Shiling Ding
Shiling Ding Sentinel Technologies – CCDE #2019::12

Just passed the CCDE Practical exam! I attended Orhan Ergun’s CCDE training program , used Orhan’s Instructor Led and Self-Paced CCDE training and Online CCDE Practical Scenarios during my CCDE journey. Orhan’s CCDE In Depth book is an excellent summary ...

Abelardo Basurto
Abelardo Basurto Solutions Architect at Cisco Systems – CCDE 2018::6

Hi everyone, I’ve just passed the CCDE Exam. My Number is CCDE 2018::6 I attended to Online CCDE Bootcamp of Orhan. I want to thank Orhan not only for the great book and bootcamp, but also for his commitment, availability and willingness to assist the ...

Hady Mohamed Abdellah
Hady Mohamed Abdellah Network Architect Hamad International Airport Qatar – CCDE 2018::1

Hi guys, I’m so happy that I passed the exam. I’ve already got my number CCDE 2018::1. Thanks to Orhan for being the best CCDE instructor in the world. I highly recomend Orhan’s CCDE Training and In-Depth-CCDE ...

Bryan Bartik
Bryan Bartik Sr. Systems Engineer at CompuNet – CCDE 20170059

Hi Orhan I passed CCDE Practical exam on November 2017 ! I really enjoyed your materials and quizzes and use cases. They were definitely helpful in my preparation. Thanks a lot !

Giedrius Trapkauskas
Giedrius Trapkauskas Network Solutions Architect at Liberty Global – CCDE 20180004

I attended Orhan’s CCDE Training in Istanbul and it was very helpful in my preparation. I passed the exam recently and I want to say Thank you Orhan! For those who want to pass the CCDE exam, definitely start with ...

Alaa Issa
Alaa Issa Sr.Solutions Architect – CCDE#20180033 3xCCIE ( Collab|DC|Security )#27146

I registered to Orhan’s training in Feb 2017. From that time, I attended Orhan’s training several times. The depth of knowledge which Orhan has is amazing, and how to present such consistent knowledge to the ...

Mazin Ahsan Design Lead Engineer | Solutions Engineer | CCDE License # 20160030 | CCIE Licence # 23892

I passed the CCDE Practical Lab exam on November 17,2016 from supplications of elders and dedication from my Sensei Mr. Orhan Ergun I took different CCDE bootcamps in the past. Orhan has the most depth and expertise ...

Jeff Patterson CCDE# 2018::11

Hi Orhan I wanted to pass along my appreciation for the outstanding training material. I used the online CCDE training provided by Orhan as well as the In-Depth-CCDE book and passed the exam in February 2018. Thank you Orhan!

Mehdi Sfar
Mehdi Sfar Network and Security Architect / CCDE #20210003 | CCIE R&S; #51583

I signed up for Orhan’s CCDE Self paced Course. This course, along with the CCDE In Depth book, helped me for my CCDE Practical as well as Written exams. It pushed me to ask the "WHY" questions and allowed ...

Related courses

Network Design Fundamentals Course

02:28:37 Hours
17 Lectures


Layer 2 Network Design Training

02:16:18 Hours
17 Lectures


Cisco IP Services

03:17:55 Hours
14 Lectures