Chapter 3. Command Reference

broadcast

enables a central VPN DHCP relay agent that will broadcast DHCP requests received from a VPN tunnel.

disable

disables DHCP relay.

server ip [ relay-from-vpn]

sets the device to relay DHCP messages to a DHCP server at the IP address specified. Use the relay-from-vpnoption to relay DHCP messages received from a VPN tunnel to the specified DHCP server.

tunnel tunnel-name

sets the device to relay DHCP messages over the named VPN tunnel.

 

static-map add ip mac mac

 

assigns a static IP address to the device with the specified MAC address.

 

static-map remove ip

 

deletes a static mapping.

 

wins [primary server] [secondary server]

 

defines a primary or secondary WINS server.

 

 

 

Using conf t dhcp-server

enable DHCP

Use configure terminal dhcp-serverto enable the device’s DHCP server.

on the device

 

 

hostname# conf t dhcp-server enable

configure the

Use configure terminal dhcp-server addresses to configure the IP address pool of the DHCP server.

address pool

In this example, the DHCP scope is set as the address group 'dhcp':

of the DHCP

 

server

hostname# conf t dhcp-server addresses group dhcp

remove DHCP

Use configure terminal dhcp-server addresses none to deconfigure the DHCP scope settings when

scope settings

the DHCP server is disabled.

 

hostname# conf t dhcp-server addresses none

relaying

Use configure terminal dhcp-server relay server relay-from-vpn to relay messages received over a

messages

VPN tunnel to DHCP server 192.168.0.200 (Central VPN Relay Agent):

 

hostname# conf t dhcp-server relay server 192.168.0.200 relay-from-vpn

 

Use configure terminal dhcp-server relay tunnel to relay DHCP messages over the VPN tunnel

 

VPNTUNNEL (Remote VPN Relay Agent):

 

hostname# conf t dhcp-server relay tunnel VPNTUNNEL

42 X Family CLI Reference V 2.5.1