Ip dhcp-relay server-address – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual
Page 1716

Dynamic Host Configuration Protocol (DHCP) Commands
Software Reference for x310 Series Switches
64.18
AlliedWare Plus
TM
Operating System - Version 5.4.4C
C613-50046-01 REV A
ip dhcp-relay server-address
This command adds a DHCP server for the DHCP Relay Agent to forward client DHCP
packets to on a particular interface. You can add up to five DHCP servers on each device
interface that the DHCP Relay Agent is listening on.
The no variant of this command deletes the specified DHCP server from the list of servers
available to the DHCP relay agent.
For DHCP Relay Agent introductory information, see
“DHCP Relay Agent Introduction”
Syntax
ip dhcp-relay server-address {<ipv4-address>|
<ipv6-address> <server-interface>}
no ip dhcp-relay server-address {<ipv4-address>|
<ipv6-address> <server-interface>}
Mode
Interface Configuration for a VLAN interface.
Usage
For a DHCP server with an IPv6 address you must specify the interface for the DHCP server.
See examples below for configuration differences between IPv4 and IPv6 DHCP relay
servers.
See also the
command to enable the DHCP Relay Agent on your
device. The
command defines a relay destination on an
interface on the device, needed by the DHCP Relay Agent to relay DHCP client packets to a
DHCP server.
Examples
To enable the DHCP Relay Agent to relay DHCP packets on interface vlan2 to the DHCP
server with the IPv4 address 192.0.2.200, use the commands:
Parameter
Description
<ipv4-address>
Specify the IPv4 address of the DHCP server for DHCP Relay
Agent to forward client DHCP packets to, in dotted
decimal notation. The IPv4 address uses the format
A.B.C.D.
<ipv6-address>
Specify the IPv6 address of the DHCPv6 server for DHCPv6
Relay Agent to forward client DHCP packets to, in
hexadecimal notation.
<server-interface>
Specify the interface name of the DHCPv6 server. It is only
required for a DHCPv6 server with an IPv6 address.
awplus#
configure terminal
awplus(config)#
service dhcp-relay
awplus(config)#
interface vlan2
awplus(config-if)#
ip dhcp-relay server-address 192.0.2.200