Related Documentation
- EX Series
- Understanding DHCP Snooping for Port Security
- Configuring IP Source Guard (CLI Procedure)
- Example: Configuring IP Source Guard on a Data VLAN That Shares an Interface with a Voice VLAN
- Example: Configuring IP Source Guard with Other EX Series Switch Features to Mitigate Address-Spoofing Attacks on Untrusted Access Interfaces
- Example: Configuring IP Source Guard and Dynamic ARP Inspection to Protect the Switch from IP Spoofing and ARP Spoofing
- QFX Series standalone switches
- Understanding DHCP Snooping for Port Security
Understanding IP Source Guard for Port Security on EX Series Switches
Ethernet LAN switches are vulnerable to attacks that involve spoofing (forging) of source IP addresses or source MAC addresses. You can use the IP source guard access port security feature on Juniper Networks EX Series Ethernet Switches to mitigate the effects of these attacks.
IP Address Spoofing
Hosts on access interfaces can spoof source IP addresses and source MAC addresses by flooding the switch with packets containing invalid addresses. Such attacks combined with other techniques such as TCP SYN flood attacks can result in denial-of-service (DoS) attacks. With source IP address or source MAC address spoofing, the system administrator cannot identify the source of the attack. The attacker can spoof addresses on the same subnet or on a different subnet.
How IP Source Guard Works
IP source guard checks the IP source address and MAC source address in a packet sent from a host attached to an untrusted access interface on the switch against entries stored in the DHCP snooping database. If IP source guard determines that the packet header contains an invalid source IP address or source MAC address, it ensures that the switch does not forward the packet—that is, the packet is discarded.
![]() | Note:
|
IP source guard applies its checking rules to packets sent from untrusted access interfaces on those VLANs. By default, on EX Series switches, access interfaces are untrusted and trunk interfaces are trusted. IP source guard does not check packets that have been sent to the switch by devices connected to either trunk interfaces or to trusted access interfaces so that a DHCP server can be connected to that interface to provide dynamic IP addresses.
![]() | Note: IP source guard is not supported on trunk interfaces regardless of whether the trunk interface is trusted or untrusted. |
IPv6 Source Guard
IPv6 source guard is available on switches with support for DHCPv6 snooping. DHCPv6 snooping is enabled automatically when IPv6 source guard is configured on a VLAN. To determine whether your switch supports DHCPv6 snooping, see the EX Series Switch Software Features Overview.
The DHCP Snooping Table
IP source guard obtains information about IP address to MAC address bindings (IP-MAC binding) from the DHCP snooping table, also known as the DHCP binding table. The DHCP snooping table is populated either through dynamic DHCP snooping or through configuration of specific static IP address to MAC address bindings. For more information about the DHCP snooping table, see Understanding DHCP Snooping for Port Security.
To display the DHCP snooping table, issue the operational mode command that appears in the command-line interface (CLI) for your switch.
For DHCPv4 snooping:
- (For non-ELS switches) show ip-source-guard
- (EX4300 switches only) show dhcp-security binding ip-source-guard
For DHCPv6 snooping:
- (EX4300 switches only) show dhcp-security ipv6 binding
Typical Uses of Other Junos Operating System (Junos OS) Features with IP Source Guard
You can configure IP source guard with various other features on the EX Series switch to provide access port security, including:
- VLAN tagging (used for voice VLANs)
- GRES (Graceful Routing Engine switchover)
- Virtual Chassis configurations (See EX Series Switch Software Features Overview for list of models that support IP Source Guard.)
- Link aggregation groups (LAGs)
- 802.1X user authentication in single supplicant, single-secure
supplicant, or multiple supplicant mode.

Note: If you are implementing 801.X user authentication in single-secure supplicant or multiple supplicant mode, use the following configuration guidelines:
- If the 802.1X interface is part of an untagged MAC-based VLAN and you want to enable IP source guard and DHCP snooping on that VLAN, you must enable IP source guard and DHCP snooping on all dynamic VLANs in which the interface has untagged membership. This also applies to IPv6 source guard and DHCPv6 snooping.
- If the 802.1X interface is part of a tagged MAC-based VLAN and you want to enable IP source guard and DHCP snooping on that VLAN, you must enable IP source guard and DHCP snooping on all dynamic VLANs in which the interface has tagged membership. This also applies to IPv6 source guard and DHCPv6 snooping.
Related Documentation
- EX Series
- Understanding DHCP Snooping for Port Security
- Configuring IP Source Guard (CLI Procedure)
- Example: Configuring IP Source Guard on a Data VLAN That Shares an Interface with a Voice VLAN
- Example: Configuring IP Source Guard with Other EX Series Switch Features to Mitigate Address-Spoofing Attacks on Untrusted Access Interfaces
- Example: Configuring IP Source Guard and Dynamic ARP Inspection to Protect the Switch from IP Spoofing and ARP Spoofing
- QFX Series standalone switches
- Understanding DHCP Snooping for Port Security