7 interacting with relay agents, Interacting with relay agents -7 – Riverstone Networks WICT1-12 User Manual

Page 177

Advertising
background image

Riverstone Networks RS Switch Router User Guide Release 8.0 10-7

DHCP Configuration Guide

Interacting with Relay Agents

3.

Define the network parameters for ‘scope1’ with the default gateway 10.1.1.1.

4.

Define the address pool for ‘scope1’.

5.

Define the network parameters for ‘scope2’ with the default gateway 10.2.1.1.

6.

Define the address pool for ‘scope2’.

7.

Create a superscope ‘super1’ that includes ‘scope1’.

8.

Include ‘scope2’ in the superscope ‘super1’.

For clients on the secondary subnet, the default gateway is 10.2.1.1, which is also the secondary address for the
interface ‘clients’.

10.7 INTERACTING WITH RELAY AGENTS

For clients that are not directly connected to the DHCP server, a relay agent (typically a router) is needed to
communicate between the client and the server. The relay agent is usually only needed during the initial leasing of an
IP address. Once the client obtains an IP address and can connect to the network, the renewal of the lease is performed
between the client and server without the help of the relay agent.

The default gateway for the client must be capable of reaching the RS’s DHCP server. The RS must also be capable of
reaching the client’s network. The route must be configured (with static routes, for example) or learned (with RIP or
OSPF, for example) so that the DHCP server can reach the client.

The following example shows a simple configuration to support clients across a relay agent.

1.

Create an interface ‘clients’ with the primary address 10.1.1.1.

dhcp scope1 define parameters address-netmask 10.1.0.0/16 gateway

10.1.1.1 dns-domain acme.com dns-server 10.1.44.55

dhcp scope1 define pool 10.1.1.10-10.1.1.20

dhcp scope2 define parameters address-netmask 10.2.0.0/16 gateway

10.2.1.1 dns-domain acme.com dns-server 10.1.77.88

dhcp scope2 define pool 10.2.1.40-10.2.1.50

dhcp scope1 attach superscope super1

dhcp scope2 attach superscope super1

interface create ip clients address-mask 10.1.1.1/16 port et.3.3

Advertising