398
C
HAPTER
46: DHCP R
ELAY
C
ONFIGURATION
Option 82 Supporting
Configuration Example
Network requirements
Two DHCP clients are on the network segment 10.110.0.0 (255.255.0.0). They obtain
IP addresses from a DHCP server through a switch acting as DHCP relay. Option 82
supporting is enabled on the DHCP relay.
Network diagram
Figure 124
Network diagram for option 82 supporting
Configuration procedure
This example supposes that the routes between the DHCP relay and the DHCP server
are reachable. The following configurations are only for the switch acting as DHCP
relay.
1
Enter system view.
<S4200G>
system-view
2
Enable DHCP.
[4200G]
dhcp enable
3
Configure the VLAN interface that is to carry out the DHCP relay function: First enter
the corresponding VLAN interface view. Then assign an IP address and a subnet mask
to the VLAN interface so that it is on the same network segment with the two DHCP
clients.
[4200G]
interface vlan-interface 100
[4200G-Vlan-interface 100]
ip address 10.110.1.1 255.255.0.0
4
Specify the IP address of the DHCP server by configuring the IP address of the DHCP
server to be used by DHCP server group 1.
[4200G]
dhcp-server 1 ip address 202.38.1.2
5
Map VLAN 100 interface to DHCP server group1.
[4200G-Vlan-interface100]
dhcp-server 1
[4200G-vlan-interface100]
quit
6
Return to system view.
[4200G-vlan-interface 100]
quit
7
Enable option 82 supporting on the DHCP relay, with the
keep
keyword specified.
[4200G]
dhcp relay information enable
[4200G]
dhcp relay information strategy keep
Ethernet
Ethernet
Interne
t
DHCP client
DHCP client
Switch ( DHCP relay )
10.110.0.0
DHCP server
202.38.1.2
10.110.1.1
202.38.0.0
202.38.1.1
Ethernet
Ethernet
Interne
t
DHCP client
DHCP client
10.110.0.0
202.38.1.2
10.110.1.1
202.38.0.0
202.38.1.1
Ethernet
Ethernet
Interne
t
DHCP client
DHCP client
Switch ( DHCP relay )
10.110.0.0
DHCP server
202.38.1.2
10.110.1.1
202.38.0.0
202.38.1.1
Ethernet
Ethernet
Interne
t
DHCP client
DHCP client
10.110.0.0
202.38.1.2
10.110.1.1
202.38.0.0
202.38.1.1
Ethernet
Ethernet
Interne
t
DHCP client
DHCP client
Switch ( DHCP relay )
10.110.0.0
DHCP server
202.38.1.2
10.110.1.1
202.38.0.0
202.38.1.1
Ethernet
Ethernet
Interne
t
DHCP client
DHCP client
10.110.0.0
202.38.1.2
10.110.1.1
202.38.0.0
202.38.1.1
Summary of Contents for 4200G 12-Port
Page 10: ...8 CONTENTS...
Page 14: ...4 ABOUT THIS GUIDE...
Page 46: ...32 CHAPTER 5 LOGGING IN THROUGH WEB BASED NETWORK MANAGEMENT SYSTEM...
Page 48: ...34 CHAPTER 6 LOGGING IN THROUGH NMS...
Page 60: ...46 CHAPTER 9 VLAN CONFIGURATION...
Page 64: ...50 CHAPTER 10 MANAGEMENT VLAN CONFIGURATION...
Page 80: ...66 CHAPTER 13 GVRP CONFIGURATION...
Page 98: ...84 CHAPTER 15 LINK AGGREGATION CONFIGURATION...
Page 112: ...98 CHAPTER 18 MAC ADDRESS TABLE MANAGEMENT...
Page 126: ...112 CHAPTER 19 LOGGING IN THROUGH TELNET...
Page 162: ...148 CHAPTER 20 MSTP CONFIGURATION...
Page 274: ...260 CHAPTER 29 IGMP SNOOPING CONFIGURATION...
Page 276: ...262 CHAPTER 30 ROUTING PORT JOIN TO MULTICAST GROUP CONFIGURATION...
Page 298: ...284 CHAPTER 33 SNMP CONFIGURATION...
Page 304: ...290 CHAPTER 34 RMON CONFIGURATION...
Page 338: ...324 CHAPTER 36 SSH TERMINAL SERVICES...
Page 356: ...342 CHAPTER 38 FTP AND TFTP CONFIGURATION...
Page 365: ...Information Center Configuration Example 351 S4200G terminal logging...
Page 366: ...352 CHAPTER 39 INFORMATION CENTER...
Page 378: ...364 CHAPTER 40 BOOTROM AND HOST SOFTWARE LOADING...
Page 384: ...370 CHAPTER 41 Basic System Configuration and Debugging...
Page 388: ...374 CHAPTER 43 NETWORK CONNECTIVITY TEST...
Page 406: ...392 CHAPTER 45 CONFIGURATION OF NEWLY ADDED CLUSTER FUNCTIONS...