Related Documentation
- EX Series
- Enabling a Trusted DHCP Server (J-Web Procedure)
- Understanding Trusted DHCP Servers for Port Security
- QFabric System
- Understanding Trusted DHCP Servers for Port Security
- QFX Series standalone switches
- Understanding Trusted DHCP Servers for Port Security
Enabling a Trusted DHCP Server (CLI Procedure)
![]() | Note: This example uses Junos OS for EX Series switches with support for the Enhanced Layer 2 Software (ELS) configuration style. If your switch runs software that does not support ELS, see Enabling a Trusted DHCP Server (CLI Procedure). For ELS details, see Getting Started with Enhanced Layer 2 Software. |
You can configure any interface on a switch that connects to a DHCP server as a trusted interface (port). Configuring a DHCP server on a trusted interface protects against rogue DHCP servers sending leases.
By default, all access interfaces are untrusted, and all trunk interfaces are trusted. However, you can override the default setting for access interfaces by configuring a group of access interfaces within a VLAN, specifying an interface to belong to that group, and then configuring the group as trusted.
Before you can configure a trusted DHCP server, you must configure a VLAN. See Configuring VLANs for EX Series Switches (CLI Procedure).
To configure an untrusted access interface as a trusted interface for a DHCP server by using the CLI :
- Configure a group within a VLAN with a specific access
interface:
[edit vlans vlan-name forwarding-options dhcp-security ]
user@switch# set group group-name interface interface-name - Configure that group as trusted to make the specified interface contained within the group a trusted interface:
Related Documentation
- EX Series
- Enabling a Trusted DHCP Server (J-Web Procedure)
- Understanding Trusted DHCP Servers for Port Security
- QFabric System
- Understanding Trusted DHCP Servers for Port Security
- QFX Series standalone switches
- Understanding Trusted DHCP Servers for Port Security
