40
2. Set up an IP address of the Gateway or configure the Gateway to get an IP address
automatically from DHCP server.
IP command
Parameter
Description
Gateway(config)# ip lan-
ip [A.B.C.D] [255.X.X.X]
[A.B.C.D]
Enter the desired IP address for your Gateway.
[255.X.X.X]
Enter subnet mask of your IP address.
Gateway(config)# ip dhcp
server
Enable DHCP mode.
No command
Gateway(config)#no lan-ip address
Remove the Gateway
’s IP address.
Gateway(config)# no ip dhcp server
Disable DHCP mode.
Show command
Gateway(config)#show ip address
Show the current IP configurations or verify the
configured IP settings.
IP command example
Gateway(config)# ip lan-ip address
192.168.1.198 255.255.255.0
Set up the Gateway
’s IP to 192.168.1.198,
subnet mask to 255.255.255.0
Gateway(config)# ip dhcp server
Get an IP address automatically.
3. Configure DHCP advanced function
IP command
Parameter
Description
Gateway(config)# ip dhcp
server domain-name
[domain-name]
[domain-name]
Specify the domain name of the Residential
Gateway up to 30 characters.
Gateway(config)# ip dhcp
server ip-lease-time [1-
14400]
[1-14400]
Specify the lease time in minute. This is a time
period in which the DHCP clients can keep their
IP addresses since the last time in which they
receive the DHCP acknowledgement packet
from the Residential Gateway.
Gateway(config)# ip dhcp
server start-ip [A.B.C.D]
[pools]
[A.B.C.D]
Specify an IP address from which the
Residential Gateway will start to assign the IP
addresses to the DHCP clients on the private
network.
[pools]
Specify the maximum number of IP addresses
which the Residential Gateway can assign to
the DHCP clients.
Gateway(config)# ip dhcp
server ip-mac-binding
address-reservation apply
Apply all the configuration of DHCP reservation
made.
Gateway(config)# ip dhcp
server ip-mac-binding
address-reservation [1-
20]
[1-20]
Specify the entry number of DHCP reservation.
Gateway(config-address-
reservation-No.)#
description [description]
[description]
This is a brief description for this entry.
Gateway(config-address-
reservation-No.)# ip-
address [A.B.C.D]
[A.B.C.D]
This is an IP address which you want to reserve
for a specific DHCP client.