Cisco NX-OS/IOS DHCP Relay Comparison

From DocWiki

Jump to: navigation, search

Objective

This tech note outlines the main differences in Dynamic Host Configuration Protocol (DHCP) Relay support between Cisco® NX-OS Software and Cisco IOS® Software. Sample configurations are included for Cisco NX-OS and Cisco IOS Software to demonstrate the similarities and differences. Please refer to the NX-OS documentation on Cisco.com for a complete list of supported features.


DHCP Relay Overview

The DHCP Relay feature was designed to forward DHCP broadcast requests as unicast packets to a configured DHCP server or servers for redundancy.


Important Cisco NX-OS and Cisco IOS Software Differences

In Cisco NX-OS:

  • DHCP command-line interface (CLI) configuration and verification commands are not available until you enable the DCHP feature with the feature dhcp command.
  • The DHCP service is not enabled by default, whereas it is enabled by default in Cisco IOS Software.
  • The DHCP Relay feature is equivalent to the ip helper-address feature in Cisco IOS Software.
  • Only packets destined to User Datagram (UDP) port 67 (Bootps) and 68 (Bootpc) are forwarded by the relay, whereas Cisco IOS Software forwards additional protocols (Trivial File Transfer Protocol [TFTP], Domain Name System [DNS], Time, NetBios, and Neighbor Discovery).
  • The Cisco NX-OS cannot act as a DHCP server.


Things You Should Know

The following list provides some additional facts about Cisco NX-OS that should be helpful when designing, configuring, and maintaining networks with the DHCP-Relay feature.

  • If you remove the feature dhcp command, all relevant DHCP configuration information is also removed.
  • Sixteen DHCP Relay addresses can be configured per interface.
  • DHCP packets are always forwarded through DHCP Relay in the same Virtual Route Forwarding (VRF) instance assigned to the interface.
  • Assign a DHCP Relay to every interface that may have a client, even if the server resides in the same Layer-2 broadcast domain (VLAN). - This has been fixed in 4.2(1) software.


Configuration Comparison

The following sample code shows configuration similarities and differences between the Cisco NX-OS and Cisco IOS Software CLIs. There are two significant differences: in Cisco NX-OS, the DHCP feature must be enabled, and the DHCP service is not enabled by default.


Cisco IOS CLI Cisco NX-OS CLI
Enabling the DHCP Feature
Cisco IOS Software does not have the ability to enable or disable DHCP. feature dhcp
Enabling the DHCP Service
Cisco IOS Software enables service dhcp by default. service dhcp
Configuring DHCP Relay for an Interface
interface Ethernet2/1

ip address 192.168.10.1 255.255.255.0

ip helper-address 1.1.1.1

interface Ethernet2/1

ip address 192.168.10.1/24

ip dhcp relay address 1.1.1.1

Personal tools