Chapter 6 Interfaces

6.2.2.1 DHCP Setting Command Examples

The following example uses these commands to configure DHCP pool DHCP_TEST.

Router# configure terminal

DHCP_TEST

Router(config)# ip dhcp pool

Router(config-ip-dhcp-pool)#

network 192.168.1.0 /24

Router(config-ip-dhcp-pool)#

domain-name zyxel.com

Router(config-ip-dhcp-pool)#

first-dns-server 10.1.5.1

Router(config-ip-dhcp-pool)#

second-dns-server ge1 1st-dns

Router(config-ip-dhcp-pool)#

third-dns-server 10.1.5.2

Router(config-ip-dhcp-pool)#

default-router 192.168.1.1

Router(config-ip-dhcp-pool)#

lease 0 1 30

Router(config-ip-dhcp-pool)#

starting-address 192.168.1.10 pool-size 30

Router(config-ip-dhcp-pool)#

hardware-address 00:0F:20:74:B8:18

Router(config-ip-dhcp-pool)#

client-identifier 00:0F:20:74:B8:18

Router(config-ip-dhcp-pool)#

client-name TWtester1

Router(config-ip-dhcp-pool)#

exit

Router(config)#

interface ge1

Router(config-if)# ip dhcp-pool DHCP_TEST

Router(config-if)# exit

server status

Router(config)# show ip dhcp

binding interface

: ge1

 

binding pool

: DHCP_TEST

 

 

 

 

6.2.2.2 DHCP Extended Option Setting Command Example

The following example configures the DHCP_TEST pool with a SIP server (code 120) extended DHCP option with one IP address to provide to the SIP clients.

Router# configure terminal

Router(config)# ip dhcp pool DHCP_TEST

Router(config-ip-dhcp-pool)# dhcp-option 120 sip ip 192.168.1.20

Router(config-ip-dhcp-pool)# exit

66

 

ZyWALL (ZLD) CLI Reference Guide