Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Vyatta_Services_R6.3_v01.pdf
Скачиваний:
20
Добавлен:
19.02.2016
Размер:
1.18 Mб
Скачать

30

Chapter 4: DHCP

This chapter describes how to implement DHCP on the Vyatta system.

This chapter presents the following topics:

DHCP Overview

DHCP Configuration

DHCP Commands

Services

R6.3 v01

Vyatta

Chapter 4: DHCP

DHCP Overview 31

 

 

 

DHCP Overview

The Dynamic Host Configuration Protocol (DHCP) allows dynamic assignment of reusable IP addresses and other configuration information to DHCP clients. This reduces costs, configuration effort, and management burden associated with Internet access. On the other hand, it also increases network and service overhead.

In DHCP, the server assigns an IP address and other configuration parameters to a client for a limited period of time. This period of time is called the lease. The lease is valid for the period you configure on the Vyatta system, or until the client explicitly relinquishes the address.

To use the DHCP service, you define a pool of IP addresses for each subnet assigned by the DHCP server. Each DHCP address pool is mapped to a subnet associated with the system. For each address pool, you can specify the length of time an address will be valid (its lease duration). The default lease duration is 24 hours. You can also specify a number of different servers (for example DNS, WINS, SMTP, ...) available to clients on the subnet.

You can statically map an IP address to the MAC address of a device. The DHCP service listens on UDP port 67 for lease requests from DHCP clients. The request packet allows the system to determine which interface the client is located on. It then assigns an IP address from the appropriate pool and binds it to the client.

In addition to providing a DHCP server, individual interfaces on the Vyatta system can be configured as DHCP clients. For details, see the Vyatta documentation for the interface you are interested in configuring as a DHCP client.

The Vyatta system also supports DHCP relay.

A DHCP relay agent receives DHCP packets from DHCP clients and forwards them to a DHCP server. This allows you to place DHCP clients and DHCP servers on different networks; that is, across router interfaces.

The relay agent is configured with addresses of DHCP servers to which they should relay client DHCP message. The relay agent intercepts the broadcast, sets the gateway address (the giaddr field of the DHCP packet) and, if configured, inserts the Relay Agent Information option (option 82) in the packet and forwards it to the DHCP server.

The DHCP server echoes the option back verbatim to the relay agent in server-to-client replies, and the relay agent strips the option before forwarding the reply to the client.

Services

R6.3 v01

Vyatta

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]