通过本实验掌握,如何在Cisco Catalyst 3550交换机来配置DHCP服务,实现对内网主机分配IP地址,网关,DNS,WINS,租期,域名等。可能你之前是在windows Server服务器或者Cisco Router 部署过DHCP,但在工程项目中,根据需求,大多是在接入层或者汇聚层多层交换机来配置的,可以同时实现DHCP Snooping等技术。

p_w_picpath


实验过程:

第一步:Catalyst 3550底层配置
Switch(config)#no ip do lo
Switch(config)#line con 0
Switch(config-line)#no exec-t
Switch(config-line)#logg syn
Switch(config-line)#host Switch_Dhcp
Switch_Dhcp(config)#int f0/1
Switch_Dhcp(config-if)#no sh
Switch_Dhcp(config-if)#spanning-tree portfast
//连接终端的接口下,开启portfast特性,跳过生成树的选举,接口立即进入转发状态
%Warning: portfast should only be enabled on ports connected to a single
host. Connecting hubs, concentrators, switches, bridges, etc... to this
interface when portfast is enabled, can cause temporary bridging loops.
Use with CAUTION
%Portfast has been configured on FastEthernet0/1 but will only
have effect when the interface is in a non-trunking mode.
Switch_Dhcp(config-if)#end
第二步: 开启DHCP服务,定义分配地址池范围及掩码,网关,DNS,域名,租期等