24
dhcpserver subnetmask
[Subnet mask]
G
Configure subnet
mask for DHCP clients
switch(config)#
dhcpserver
subnetmask 255.255.255.0
dhcpserver gateway
[Gateway]
G
Configure gateway for
DHCP clients
switch(config)#
dhcpserver
gateway 192.168.1.254
dhcpserver dnsip
[DNS IP]
G
Configure DNS IP for
DHCP clients
switch(config)#
dhcpserver dnsip
192.168.1.1
dhcpserver leasetime
[Hours]
G
Configure lease time
(in hour)
switch(config)#
dhcpserver
leasetime 1
dhcpserver ipbinding
[IP address]
I
Set static IP for DHCP
clients by port
switch(config)#
interface
fastEthernet 2
switch(config)#
dhcpserver
ipbinding 192.168.1.1
show dhcpserver
configuration
P
Show configuration of
DHCP server
switch#
show dhcpserver
configuration
show dhcpserver clients
P
Show client entries of
DHCP server
switch#
show dhcpserver clients
show dhcpserver ip-
binding
P
Show IP-Binding
information of DHCP
server
switch#
show dhcpserver ip-
binding
no dhcpserver
G
Disable DHCP server
function
switch(config)#
no dhcpserver
security enable
G
Enable IP security
function
switch(config)#
security enable
security http
G
Enable IP security of
HTTP server
switch(config)#
security http
security telnet
G
Enable IP security of
telnet server
switch(config)#
security telnet
security ip
[Index(1..10)] [IP
Address]
G
Set the IP security list switch(config)#
security ip 1
192.168.1.55
show security
P
Show the information
of IP security
switch#
show security
no security
G
Disable IP security
switch(config)#
no security