DES-7200 Configuration Guide Chapter 5 DHCP Relay Configuration
5-13
2. Configuring DHCP Relay: On Switch B, configure the address of DHCP
Server (configure the address of DHCP Server as 10.1.1.2/24) and enable
DHCP Server.
Note
On Switch C and Switch D, configure the VLAN to which the
corresponding ports belong, and the access PC can acquire
dynamic IP address once connected.
5.5.4 Configuration Steps
Step 1: Configure DHCP Server.
! In global mode, create a DHCP address pool named "vlan10" on Switch A,
with corresponding IP network segment being 192.168.1.0/24 and the address
of network gateway being 192.168.1.1.
SwitchA(config)#ip dhcp pool vlan10
SwitchA(dhcp-config)#network 192.168.1.0 255.255.255.0
SwitchA(dhcp-config)#default-router 192.168.1.1
SwitchA(dhcp-config)#exit
! Create an address pool named "vlan20", with IP network segment being
192.168.2.0/24 and gateway address being 192.168.2.1.
SwitchA(config)#ip dhcp pool vlan20
SwitchA(dhcp-config)#network 192.168.2.0 255.255.255.0
SwitchA(dhcp-config)#default-router 192.168.2.1
SwitchA(dhcp-config)#exit
! In global configuration mode, configure 192.168.1.1 and 192.168.2.1 as the
excluded addresses, so as to avoid the conflict between allocated IP address
and gateway address.
SwitchA(config)#ip dhcp excluded-address 192.168.1.1
SwitchA(config)#ip dhcp excluded-address 192.168.2.1
! Enable DHCP Server.
SwitchA(config)#service dhcp
Step 2: Configure layer-3 communication between Switch A and Switch B.
! On Switch A, configure port Gi 0/1 as the Route Port, with corresponding IP
address being 10.1.1.2/24.
SwitchA(config)#interface gigabitEthernet 0/1
SwitchA(config-if-GigabitEthernet 0/1)#no switchport
SwitchA(config-if-GigabitEthernet 0/1)#ip address 10.1.1.2 255.255.255.0
SwitchA(config-if-GigabitEthernet 0/1)#exit
! On Switch B, configure port Gi 0/1 as the Route Port, with corresponding IP
address being 10.1.1.3/24.