Overriding the Default DHCP Relay Configuration Settings

Similar documents
Example: Configuring DHCP Snooping and DAI to Protect the Switch from ARP Spoofing Attacks

Configuring DHCP Snooping

DHCP Relay Server ID Override and Link Selection Option 82 Suboptions

Configuring DHCP. About DHCP Snooping, page 2 About the DHCPv6 Relay Agent, page 8

Configure the Protocol Family on page 40. Configure the Interface Address on page 40

IPv6 Client IP Address Learning

DHCP and DDNS Services

Configuration Examples for DHCP, on page 37 Configuration Examples for DHCP Client, on page 38 Additional References for DHCP, on page 38

Operation Manual DHCP H3C S5500-SI Series Ethernet Switches. Table of Contents. Table of Contents

Implementing the Dynamic Host Configuration Protocol

Example: Configuring DHCP Snooping, DAI, and MAC Limiting on an EX Series Switch with Access to a DHCP Server Through a Second Switch

Finding Feature Information, page 2 Information About DHCP Snooping, page 2 Information About the DHCPv6 Relay Agent, page 8

Configuring DHCP. Finding Feature Information

DHCP Configuration. Page 1 of 14

Configure Ethernet Physical Interface Properties on page 82. Configure 802.1Q VLANs on page 83. Configure the Management Ethernet Interface on page 84

Implementing the Dynamic Host Configuration Protocol

DHCP and DDNS Services

HP A3100 v2 Switch Series

HP FlexFabric 5930 Switch Series

FiberstoreOS IP Service Configuration Guide

JunosE Software for E Series Broadband Services Routers

Configuring DHCP Features

HPE FlexFabric 5940 Switch Series

Configuring DHCP Snooping

H3C S6520XE-HI Switch Series

HP 5120 SI Switch Series

Table of Contents 1 IPv6 Configuration IPv6 Application Configuration 2-1

DHCP Server RADIUS Proxy

Operation Manual DHCP. Table of Contents

DHCP Commands. default-router, page 13

Configuring Dynamic ARP Inspection

IPv6 Neighbor Discovery

Chapter 7. ARP and RARP MGH T MGH C I 20

DHCP and DDNS Services for Threat Defense

Wireshark Lab: DHCP SOLUTION

DHCP and DDNS Services

H3C S6800 Switch Series

Configuring IPv6 First-Hop Security

Connecting to the Network

Operation Manual DHCP. Table of Contents

Configuring the Cisco IOS DHCP Relay Agent

Configuring DHCP. Finding Feature Information. Information About DHCP. DHCP Server. DHCP Relay Agent

Agenda. DHCP Overview DHCP Basic. DHCP Additional. DHCP Relay DHCP Snooping DHCP Server. DHCP Security SAVI ND Snooping

Quiz 7 May 14, 2015 Computer Engineering 80N

DGS-1510 Series Gigabit Ethernet SmartPro Switch Web UI Reference Guide

Introduction to DHCP. DHCP Overview

Selected Network Security Technologies

H3C S5560S-EI & S5130S-HI[EI] & S5110V2 & S3100V3-EI Switch Series

Configuring ISG Policies for Automatic Subscriber Logon

Guide to TCP/IP, Third Edition. Chapter 8: The Dynamic Host Configuration Protocol

Configuring DHCP Features

H3C S7500E-XS Switch Series

Configuring DHCP. Finding Feature Information. Information About DHCP. DHCP Server. DHCP Relay Agent

Troubleshooting DHCP server configuration 28

Configuring DHCP. Finding Feature Information. Information About DHCP. DHCP Server. DHCP Relay Agent

Configuring DHCP. Information About DHCP. DHCP Server. DHCP Relay Agent. DHCP Snooping

DHCP Technology White Paper

Multicast VLAN, page 1 Passive Clients, page 2 Dynamic Anchoring for Clients with Static IP Addresses, page 5

11. IP Mobility 최 양 희 서울대학교 컴퓨터공학부

DHCPv6 Overview 1. DHCPv6 Server Configuration 1

HP FlexFabric 5930 Switch Series

MBC. Auto. Address. Networks. Mesh. uto- configuration for Wireless. Keecheon Kim. Konkuk University Seoul, Korea

Configuring DHCP. Finding Feature Information. Information About DHCP. DHCP Server. DHCP Relay Agent

IP Addressing and Subnetting

Table of Contents 1 DHCP Overview DHCP Server Configuration 2-1

HP A5830 Switch Series Layer 3 - IP Services. Configuration Guide. Abstract

CCNP Switch Questions/Answers Securing Campus Infrastructure

IP Addressing: DHCP Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 920 Series)

HP 6125 Blade Switch Series

Configuring Dynamic ARP Inspection

Lehrstuhl für Informatik 4 Kommunikation und verteilte Systeme. Auxiliary Protocols

Introduction to the Packet Tracer Interface using a Hub Topology

DHCP Overview. Introduction to DHCP

Configuring ARP attack protection 1

Transparent or Routed Firewall Mode

IPv6 Neighbor Discovery

HPE 5920 & 5900 Switch Series

H3C S7500E-XS Switch Series

Address Management in IP Networks

White Paper. Ruijie DHCP Snooping. White Paper

ip dhcp-client network-discovery through ip nat sip-sbc

IPv6 Associated Protocols. Athanassios Liakopoulos 6DEPLOY IPv6 Training, Skopje, June 2011

Configuring DHCP Features and IP Source Guard

How to Configure Mobile VPN for Forcepoint NGFW TECHNICAL DOCUMENT

H3C S5120-SI Switch Series

HPE FlexNetwork 5510 HI Switch Series

H3C S6300 Switch Series

Mobile IP Overview. Based on IP so any media that can support IP can also support Mobile IP

FiberstoreOS. IP Service Configuration Guide

IPv6. IPv4 & IPv6 Header Comparison. Types of IPv6 Addresses. IPv6 Address Scope. IPv6 Header. IPv4 Header. Link-Local

Command Manual Network Protocol. Table of Contents

FSOS IP Service Configuration Guide

H3C S5130-HI Switch Series

H3C S5120-EI Series Ethernet Switches. Layer 3 - IP Services. Configuration Guide. Hangzhou H3C Technologies Co., Ltd.

IPv6 Protocols and Networks Hadassah College Spring 2018 Wireless Dr. Martin Land

HP 3600 v2 Switch Series

HPE FlexFabric 7900 Switch Series

H3C S9800 Switch Series

CS475 Networks Lecture 8 Chapter 3 Internetworking. Ethernet or Wi-Fi).

HPE FlexFabric 5950 Switch Series

Transcription:

Overriding the Default DHCP Relay Configuration Settings Subscriber management enables you to override certain default DHCP relay agent configuration settings. You can override the settings at the global level, for a named group of interfaces, or for a specific interface within a named group. To override global default DHCP relay agent configuration options, include the overrides statement and its subordinate statements at the [edit forwarding-options dhcp-relay] hierarchy level. To override DHCP relay configuration options for a named group of interfaces, include the statements at the [edit forwarding-options dhcp-relay group group-name] hierarchy level. To override DHCP relay configuration options for a specific interface within a named group of interfaces, include the statements at the [edit forwarding-options dhcp-relay group group-name interface] hierarchy level. To override default DHCP relay agent configuration settings: Global override: Group level override: user@host# edit group boston overrides Per-interface override: user@host# edit group boston overrides interface fe-1/0/1.2 2. (Optional) Enable DHCP relay proxy mode. See Enabling DHCP Relay Proxy Mode. 3. (Optional) Overwrite the giaddr in DHCP packets the DHCP relay agent forwards. See Overwriting giaddr Information on page 2. 4. (Optional) Replace the IP source address in DHCP relay request and release packets with the gateway IP address (giaddr). See Replacing the DHCP Relay Request and Release Packet Source Address on page 3. 5. (Optional) Override the DHCP relay agent information option (option 82) in DHCP packets. See Overriding Option 82 Information on page 3. 6. (Optional) Override the setting of the broadcast bit in DHCP request packets and use the Layer 2 unicast transmission method. Overriding the Default DHCP Relay Configuration Settings 1

See Using Layer 2 Unicast Transmission for DHCP Packets on page 4. 7. (Optional) Trust DHCP client packets that have a giaddr of 0 and that contain option 82 information. See Trusting Option 82 Information on page 4. 8. (Optional) Override ARP table population in distrusted environments. See Disabling ARP Table Population on page 4. 9. (Optional) Override the maximum number of DHCP clients allowed per interface. See Specifying the Maximum Number of DHCP Clients Per Interface on page 6. 10. (Optional) Configure client auto logout. See DHCP Auto Logout Overview. 11. Enable or disable support for DHCP snooped clients on interfaces. See Allowing DHCP Snooped Clients on Interfaces on page 6. 12. (Optional) Disable DHCP relay agent on specific interfaces. See Disabling DHCP Relay on page 8. 13. (Optional) Send release messages to the DHCP server when clients are deleted. See Sending Release Messages When Clients Are Deleted on page 8. Overwriting giaddr Information This topic contains the following sections: Overwriting giaddr Information on page 2 Replacing the DHCP Relay Request and Release Packet Source Address on page 3 Overriding Option 82 Information on page 3 Using Layer 2 Unicast Transmission for DHCP Packets on page 4 Trusting Option 82 Information on page 4 Disabling ARP Table Population on page 4 Specifying the Maximum Number of DHCP Clients Per Interface on page 6 Allowing DHCP Snooped Clients on Interfaces on page 6 Sending Release Messages When Clients Are Deleted on page 8 Disabling DHCP Relay on page 8 You can configure the DHCP relay agent to change the gateway IP address (giaddr) field in packets that it forwards between a DHCP client and a DHCP server. To overwrite the giaddr of every DHCP packet with the giaddr of the DHCP relay agent before forwarding the packet to the DHCP server: 2 Overwriting giaddr Information

2. Specify that the giaddr of DHCP packets is overwritten. user@host# set always-write-giaddr Replacing the DHCP Relay Request and Release Packet Source Address You can configure the DHCP relay agent to replace request and release packets with the gateway IP address (giaddr) before forwarding the packet to the DHCP server. To replace the source address with giaddr: 2. Specify that you want to replace the IP source address in DHCP relay request and release packets with the gateway IP address (giaddr). user@host# set replace-ip-source-with giaddr Overriding Option 82 Information You can configure the DHCP relay agent to add or remove the DHCP relay agent information option (option 82) in DHCP packets. This feature causes the DHCP relay agent to perform one of the following actions, depending on the configuration: If the DHCP relay agent is configured to add option 82 information to DHCP packets, it clears the existing option 82 values from the DHCP packets and inserts the new values before forwarding the packets to the DHCP server. If the DHCP relay agent is not configured to add option 82 information to DHCP packets, it clears the existing option 82 values from the packets, but does not add any new values before forwarding the packets to the DHCP server. To override the default option 82 information in DHCP packets destined for a DHCP server: 2. Specify that the option 82 information in DHCP packets is overwritten. user@host# set always-write-option-82 Replacing the DHCP Relay Request and Release Packet Source Address 3

Using Layer 2 Unicast Transmission for DHCP Packets You can configure the DHCP relay agent to override the setting of the broadcast bit in DHCP request packets. DHCP relay agent then instead uses the Layer 2 unicast transmission method to send DHCP Offer reply packets and DHCP ACK reply packets from the DHCP server to DHCP clients during the discovery process. To override the default setting of the broadcast bit in DHCP request packets: 2. Specify that the DHCP relay agent uses the Layer 2 unicast transmission method. user@host# set layer2-unicast-replies Trusting Option 82 Information By default, the DHCP relay agent treats client packets with a giaddr of 0 (zero) and option 82 information as if the packets originated at an untrusted source, and drops them without further processing. You can override this behavior and specify that the DHCP relay agent process DHCP client packets that have a giaddr of 0 (zero) and contain option 82 information. To configure DHCP relay agent to trust option 82 information: 2. Specify that the DHCP relay agent process DHCP client packets with a giaddr of 0 and that contain option 82 information. user@host# set trust-option-82 Disabling ARP Table Population By default, DHCP populates the ARP table with the MAC address of a client when the client binding is established. However, you may choose to use the DHCP no-arp statement to hide the subscriber MAC address information, as it appears in ARP table entries. When running in a trusted environment (that is, when not using the no-arp statement), DHCP populates the ARP table with unique MAC addresses contained within the DHCP PDU for each DHCP client: 4 Using Layer 2 Unicast Transmission for DHCP Packets

Table 1: ARP Table in Trusted Environment IP Address Client 1 IP Address Client 2 IP Address Client 3 IP Address MAC Address MAC A MAC B MAC C In distrusted environments, you can specify the no-arp statement to hide the MAC addresses of clients. When you specify the no-arp statement, DHCP does not automatically populate the ARP table with MAC address information from the DHCP PDU for each client. Instead, the system performs an ARP to obtain the MAC address of each client and obtains the MAC address of the immediately-attached device (for example, a DSLAM). DHCP populates the ARP table with the same interface MAC address (for example, MAC X from a DSLAM interface) for each client: Table 2: ARP Table in Distrusted Environment IP Address Client 1 IP Address Client 2 IP Address Client 3 IP Address MAC Address MAC X MAC X MAC X To disable ARP table population: For DHCP local server: [edit system services dhcp-local-server] For DHCP relay: 2. Disable ARP table population with client-specific information. (DHCP local server and DHCP relay agent both support the no-arp statement.) For DHCP local server: [edit system services dhcp-local-server overrides] user@host# set no-arp For DHCP relay: Disabling ARP Table Population 5

user@host# set no-arp Specifying the Maximum Number of DHCP Clients Per Interface By default, there is no limit to the number of DHCP local server or DHCP relay clients allowed on an interface. However, you can override the default setting and specify the maximum number of clients allowed per interface, in the range 1 through 500,000. When the number of clients on the interface reaches the specified limit, no additional DHCP Discover PDUs or DHCPv6 Solicit PDUs are accepted. When the number of clients subsequently drops below the limit, new clients are again accepted. NOTE: The maximum number of DHCP (and DHCPv6) local server clients or DHCP relay clients can also be specified by Juniper Networks VSA 26-143 during client login. The VSA-specified value always takes precedence if the interface-client-limit number statement specifies a different number. If the VSA-specified value differs with each client login, DHCP uses the largest limit set by the VSA until there are no clients on the interface. To configure the maximum number of DHCP clients allowed per interface: For DHCP local server: [edit system services dhcp-local-server] For DHCPv6 local server: [edit system services dhcp-local-server dhcpv6] For DHCP relay agent: 2. Configure the maximum number of clients allowed per interface. (DHCP local server, DHCPv6 local server, and DHCP relay agent all support the interface-client-limit statement.) [edit system services dhcp-local-server overrides] user@host# set interface-client-limit number Allowing DHCP Snooped Clients on Interfaces You can explicitly enable or disable DHCP snooping support on specific interfaces the router and override the default configuration. If you disable DHCP snooping support, the interface drops snooped DHCP discover and request messages. You can 6 Specifying the Maximum Number of DHCP Clients Per Interface

manage DHCP snooping support globally, for a named group of interfaces, or for a specific interface within a named group. NOTE: In JUNOS release 10.0 and earlier, DHCP snooping is enabled by default. In releases 10.1 and later, DHCP snooping is disabled by default. To enable DHCP snooping support, include the allow-snooped-clients option to the overrides statement at the global, group, or interface hierarchy level. To disable DHCP snooping support, include the no-allow-snooped-clients option to the overrides statement. The following two examples show a configuration that enables DHCP snooping support for a group of interfaces and a configuration that disables support on a specific interface. To enable DHCP snooping support on a group of interfaces: 1. Specify the named group. user@host# edit group boston 2. Specify that you want to configure overrides. [edit forwarding-options dhcp-relay group boston] 3. Enable DHCP snooping support. [edit forwarding-options dhcp-relay group boston overrides] user@host# set allow-snooped-clients To disable DHCP snooping support on a specific interface: 1. Specify the named group of which the interface is a member. user@host# edit group boston 2. Specify the interface on which you want to disable DHCP snooping support. [edit forwarding-options dhcp-relay group boston] user@host# edit interface fe-1/0/1.2 3. Specify that you want to configure overrides. [edit forwarding-options dhcp-relay group boston interface fe-1/0/1.2] 4. Disable DHCP snooping support on the interface. [edit forwarding-options dhcp-relay group boston interface fe-1/0/1.2 overrides] user@host# set no-allow-snooped-clients Allowing DHCP Snooped Clients on Interfaces 7

Sending Release Messages When Clients Are Deleted By default, when DHCP relay and relay proxy delete a client, they do not send a release message to the DHCP server. You can override the default behavior and configure DHCP relay and relay proxy to send a release message whenever they delete a client. The release message sent by DHCP relay and relay proxy includes option 82 information. NOTE: In releases prior to JUNOS Release 10.2, DHCP relay sent a release message to the DHCP server due to the client-discover-match configuration. This is no longer the case. Starting with JUNOS Release 10.2 you must include the send-release-on-delete statement to configure DHCP relay and relay proxy to send the release message for client-discover-match configurations. To send a release message: 1. Specify that you want to configure overrides. 2. Specify that you want DHCP relay and relay proxy to send a release message when clients are deleted. user@host# set send-release-on-delete Disabling DHCP Relay You can disable DHCP relay on all interfaces or a group of interfaces. To disable DHCP relay agent: 2. Disable the DHCP relay agent. user@host# set disable-relay Published: 2010-04-15 8 Sending Release Messages When Clients Are Deleted