DES-7200 Configuration Guide Chapter 5 DHCP Relay Configuration
5-14
SwitchB(config)#interface gigabitEthernet 0/1
SwitchB(config-if)#no switchport
SwitchB(config-if)#ip address 10.1.1.3 255.255.255.0
SwitchB(config-if)#exit
! Configure default route on Switch A
SwitchA(config)#ip route 0.0.0.0 0.0.0.0 10.1.1.3
Step 3: Configure the gateway for access users.
! On Switch B, configure the SVI of VLAN 10 to 192.168.1.1/24.
SwitchB(config)#vlan 10
SwitchB(config-vlan)#exit
SwitchB(config)#interface vlan 10
SwitchB(config-if)#ip address 192.168.1.1 255.255.255.0
SwitchB(config-if)#exit
! Configure the SVI of VLAN 20 to 192.168.2.1/24.
SwitchB(config)#vlan 20
SwitchB(config-vlan)#exit
SwitchB(config)#interface vlan 20
SwitchB(config-if)#ip address 192.168.2.1 255.255.255.0
SwitchB(config-if)#exit
Step 4: Configure DHCP Relay.
! On Switch B, globally configure the address of DHCP server as 10.1.1.2 and
enable DHCP Server.
SwitchB(config)#ip helper-address 10.1.1.2
SwitchB(config)#service dhcp
Step 5: Configure layer-2 communication between Switch B and Switch C/D.
! On Switch B, configure ports Gi 0/2 and Gi 0/3 as the Trunk Port.
SwitchB(config)#interface range gigabitEthernet 0/2-3
SwitchB(config-if-range)#switchport mode trunk
! Configure port Fa 0/1 of Switch C and Switch D as the Trunk Port.
5.5.5 Verification
Step 1: Display configurations of respective devices.
! Configurations of Switch A
SwitchA#show running-config
!
service dhcp