Dhcp Configuration Examples - Planet WGSW-52040 Configuration Manual

48-port 10/100/1000base-t + 4-port 100/1000x sfp managed switch
Hide thumbs Also See for WGSW-52040:
Table of Contents

Advertisement

31.4 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
Switch(dhcp-A-config)#dns-server 10.16.1.202
Switch(dhcp-A-config)#netbios-name-server 10.16.1.209
Switch(dhcp-A-config)#netbios-node-type H-node
Switch(dhcp-A-config)#exit
Switch(config)#ip dhcp excluded-address 10.16.1.200 10.16.1.201
Switch(config)#ip dhcp pool B
Switch(dhcp-B-config)#network 10.16.2.0 24
Switch(dhcp-B-config)#lease 1
Switch(dhcp-B-config)#default-route 10.16.2.200 10.16.2.201
IP address
10.16.1.200
10.16.1.201
10.16.1.202
10.16.1.209
H-node
3 days
31-38
PoolB(network 10.16.2.0)
Device
Default gateway
DNS server
WWW server
Lease
IP address
10.16.1.200
10.16.1.201
10.16.1.202
10.16.1.209
1day

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents