3com 8807 사용자 가이드

다운로드
페이지 883
Configuring DHCP Relay
701
DHCP Relay 
Configuration Example
Network requirements
As shown in Figure 163, two DHCP clients located at the same network segment 
(10.110.0.0) are connected to a switch through a port in VLAN 2. The switch, 
acting as a DHCP relay, is supposed to forward DHCP packets between the two 
DHCP clients and the DHCP server with the IP address of 202.38.1.2.
Network diagram
Figure 163   Network diagram for DHCP Relay
Configuration procedure
# Enter system view.
<SW8800>system-view 
# Create VLAN 2.
[SW8800]vlan 2 
# Create Vlan-interface 2 and enter VLAN interface view.
[SW8800]interface Vlan-interface 2 
# Assign an IP address to Vlan-interface 2.
[3Com-Vlan-interface2]ip address 10.110.1.1 255.255.0.0 
# Specify to forward DHCP packets to a remote DHCP server.
[3Com-Vlan-interface2]dhcp select relay 
# Configure the IP address of the DHCP server to which VLAN 2 sends DHCP 
packets.
Enable debugging for DHCP Relay 
debugging dhcp relay { allpacket | error | 
event } 
Disable debugging for DHCP Relay 
undo debugging dhcp relay { allpacket | 
error | event }
Table 653   Display and debug DHCP Relay
Operation Command 
Ethernet
Ethernet
Internet
DHCP client
DHCP client
Sw itch ( 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
Internet
DHCP client
DHCP client
Sw itch ( DHCP Relay )
10.110.0.0
DHCP Server
202.38.1.2
10.110.1.1
202.38.0.0
202.38.1.1