Dhcp Configuration Examples - Planet XGS3-42000R User Manual

4-slot layer 3 ipv6/ ipv4 routing chassis switch
Table of Contents

Advertisement

1. Enable DHCP relay.
Command
Global Mode
servi ce dhcp
no servi ce dhcp
2. Configure DHCP relay to forward DHCP broadca st packet.
Command
Global Mode
ip forward-protocol udp bootps
no ip forward-protocol udp bootps
Interface Configuration Mode
ip helper-address <ipaddress>
no ip helper-address <ipaddress>

28.4 DHCP Configuration Examples

Scenario 1:
To 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 net work for the company is divided into
network A and B according to the office locations. The net work 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 loc ation 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".
XGS 3-42000R(config)#interface vlan 1
XGS 3-42000R(config-Vlan-1)#ip address 10.16.1. 2 255.255. 0.0
XGS 3-42000R(config-Vlan-1)#exit
XGS 3-42000R(config)#ip dhcp pool A
XGS 3-42000R (dhcp-A -config)#network 10.16.1.0 24
XGS 3-42000R (dhcp-A -config)#lease 3
XGS 3-42000R (dhcp-A -config)#default -route 10.16.1.200 10.16.1.201
XGS 3-42000R (dhcp-A -config)#dns-server 10.16.1.202
XGS 3-42000R (dhcp-A -config)#netbios -name-server 10.16. 1.209
XGS 3-42000R (dhcp-A -config)#netbios -node-type H-node
XGS 3-42000R (dhcp-A -config)#exit
DHCP server and DHCP relay is enabled as the
DHCP servic e is enabled.
The UDP port 67 is used for DHCP broadcast
packet forwarding.
Set the destination IP address for DHCP relay
forwarding;
<ipaddress>"command cancels the setting.
PoolB(network 10.16.2.0)
IP address
Device
10.16. 1.200
Default gateway
10.16. 1.201
10.16. 1.202
DNS server
10.16. 1.209
WWW server
H-node
3 days
Lease
28-5
Explanation
Explanation
the
"no
ip
helper-address
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