Zhone 1813 Guia Do Utilizador

Página de 135
Command Line Interface User’s Guide 
EXAMPLE 
host add -o -macaddr 00.00.00.d1.26.95 -ipaddr 192.168.5.34 
This command specifies that the machine with the MAC address of 00.00.00.d1.26.95 will be 
assigned the IP address 192.168.5.34. 
host delete -o -macaddr 00.00.00.d1.26.95 
This command removes this host configuration for the machine with the MAC address of 
d1.26.95. 
 
5.8.5 
lease 
lease list 
lease delete -o -ipaddr <ipaddr> 
This command displays or deletes the lease configuration. Leases represent which IP addresses 
are allocated to which machines and for how long. The list option lists all outstanding leases. 
delete -o -ipaddr <ipaddr> 
This command deletes the lease for the specified IP addresses. Dot notation is used to specify the 
IP address. 
5.9  DHCP relay 
dhcpr start -o <remote_server> 
dhcpr stop 
dhcpr status 
 
The dhcpr command is used for setting up the DHCP relay function. The system acts as a proxy 
for DHCP requests. When enabling the DHCP Relay, the address of the DHCP server is 
specified and DHCP requests are relayed to the specified server. On enabling DHCP relay 
functionality, the DHCP server functionality gets disabled (if it is enabled) and vice versa. 
 
COMMAND DESCRIPTION 
start -o <remote_server> 
This option starts DHCP relay. The remote_server is the IP address of the DHCP server. 
stop 
This option disables or stops the DHCP relay service. 
status 
90                                                                                                                                                                      1800-A2-GB20-00