Dhcp Configuration Examples - Planet Networking & Communication WGSW-50040 Configuration Manual

50-port 10/100/1000mbps with 4 shared sfp managed gigabit switch
Table of Contents

Advertisement

host <address> [<mask> |
<prefix-length> ]
no host
client-identifier <unique-identifier>
no client-identifier
3. Enable logging for address conflicts
Global Mode
ip dhcp conflict logging
no ip dhcp conflict logging
Admin Mode
clear ip dhcp conflict <address | all >

18.3 DHCP Configuration Examples

Scenario 1:
Too save configuration efforts of network administrators and users, a company is using switch as a DHCP
server. The Admin VLAN IP address is 10.16.1.2/16. The local area network for the company is divided into
network A and B according to the office locations. The network configurations for location A and B are shown
below.
PoolA(network 10.16.1.0)
Device
Default gateway
DNS server
WINS server
WINS node type
Lease
In location A, a machine with MAC address 00-03-22-23-dc-ab is assigned with a fixed IP address of
10.16.1.210 and named as "management".
Switch(config)#service dhcp
Switch(config)#interface vlan 1
Switch(Config-Vlan-1)#ip address 10.16.1.2 255.255.0.0
Switch(Config-Vlan-1)#exit
Switch(config)#ip dhcp pool A
Switch(dhcp-A-config)#network 10.16.1.0 24
Switch(dhcp-A-config)#lease 3
Switch(dhcp-A-config)#default-route 10.16.1.200 10.16.1.201
Command
IP address
10.16.1.200
10.16.1.201
10.16.1.202
10.16.1.209
H-node
3 days
Specify/delete the IP address to be
assigned to the specified client when
binding address manually.
Specify/delete the unique ID of the user
when binding address manually.
Explanation
Enable/disable logging for DHCP address to
detect address conflicts.
Delete a single address conflict record or all
conflict records.
PoolB(network 10.16.2.0)
Device
Default gateway
DNS server
WWW server
Lease
18-4
IP address
10.16.1.200
10.16.1.201
10.16.1.202
10.16.1.209
1day

Advertisement

Table of Contents
loading

Table of Contents