CLI Commands: Switching
472
5.8
DHCP Server Commands
CLI L2P
Release
7.0
05/2011
5.8.1 DHCP server configuration example
The example shown below has the following task: The IP address is only to
be served, if a request is coming via interface 1/1 with specified Mac address.
<Hirschmann PowerMICE> >enable
<Hirschmann PowerMICE> #configure
<Hirschmann PowerMICE> <Config>#dhcp-server operation
enable
<Hirschmann PowerMICE> <Config>#dhcp-server pool add 1
static 192.168.0.10
<Hirschmann PowerMICE> <Config>#dhcp-server pool modify
1 mode interface 1/1
<Hirschmann PowerMICE> <Config>#dhcp-server pool modify
1 mode mac 00:80:63:12:34:56
<Hirschmann PowerMICE> <Config>#dhcp-server pool modify
1 option gateway 192.168.0.1
<Hirschmann PowerMICE> <Config>#dhcp-server pool enable
1
<Hirschmann PowerMICE> <Config>#interface 1/1
<Hirschmann PowerMICE> <interface 1/1>#dhcp-server oper-
ation enable
This configuration leads to the following result:
<Hirschmann PowerMICE> #show dhcp-server pool 1
ID................................ 1
Status............................ Enabled
Start Address..................... 192.168.0.10
End Address....................... 192.168.0.10
Leasetime......................... 86400
Hirschmann Device................. Disabled
Mode.............................. Interface(1/1)
MAC............................... 00:80:63:12:34:56
Options:
Configpath........................
Gateway........................... 192.168.0.1
Subnet Mask....................... 255.255.255.0
WINS.............................. 0.0.0.0
DNS............................... 0.0.0.0
Hostname..........................