Ethernet Switches & Routers

Brocade FastIron - Ip Helper (DHCP relay)

by gfcm on ‎04-29-2011 12:09 AM (7,201 Views)

Background information

Traditional DHCP requests from a client must find a DHCP server using a Layer 2 broadcast (thus in the same subnet). So, if  the router is not able to function as a proxy for the broadcasts, it would be necessary to put a DHCP server on every network segment where such service is needed. Thanks to the ip-helper command, when a client sends a DHCP request packet to a broadcast address, the router replaces the source address with its own IP address for the interface that received the request. And it replaces the destination with the address specified in the ip-helper command. Thus, as soon as a pool is configured for the given subnet, the DHCP server can retrieve an address for a host that is not in the same subnet.

 

Equipment used

  • FastIron FCX that runs FCXR07100a.bin (Router)
  • FastIron FCX that runs FCXR07100a.bin (Router that acts as a DHCP Server)

 

Network Diagram

ip_helper.jpg

Configuration

  • DHCP Server

!

ip dhcp-server enable

!

ip dhcp-server pool vlan4

  dhcp-default-router 192.168.4.1

  excluded-address 192.168.4.1 192.168.4.100

  lease 1 0 0

  network 192.168.4.0 255.255.255.0

  deploy

!

ip route 0.0.0.0 0.0.0.0 192.168.5.2

!

interface ethernet 1/1/5

  ip address 192.168.5.1 255.255.255.252

!

 

  • Router

!

vlan 4 by port

  untagged ethe 1/1/4

  router-interface ve 4

!

interface ethernet 1/1/5

  ip address 192.168.5.2 255.255.255.252

!

interface ve 4

  ip address 192.168.4.1 255.255.255.0

  ip helper-address 1 192.168.5.1

!