在生产环境中,我们需要使用多个网段,如果在连接这些网段的路由中配置 DHCP 服务,会增加我们的维护成本,这时我们可以使用 DHCP 的中继功能,来实现跨网段 IP 分配。项目拓扑项目拓扑如图:需求分析PC0 可以获取 IP。配置路由设备可以使其具备 DHCP 的功能,但图中的 DHCP 服务端与客户端之间存在另外一台路由设备,而该设备没有配置 DHCP 的功能。项目方案通过 DHCP 中继路由器实现。客户端在向最近的路由器请求 IP,而最近的路由器并非 DHCP 的服务端,但是它知道要找谁要 IP,根据指向地址,中继将获取到的地址发给客户端。方案步骤Router0 路由器:12345678910111213Continue with configuration dialog? [yes/no]: noRouter>enableRouter#configure terminalRouter(config)#interface fastEthernet 0/0Router(config-if)#ip address 192.168.1.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#ip dhcp pool cjkRouter(dhcp-config)#network 1
...
继续阅读
(38)