- DHCP协议 (动态主机配置协议)
- 概述
- 位置:Linux DHCP Server
- 思科路由器附带DHCP服务功能
- 工作原理:
- Client 以广播的形式查找DNCP服务器 S: 0.0.0.0 D:255.255.255.255
- DHCP Server发送广播包,以单播帧的形式单播给client
- Client 请求
- Server回复
- DHCP中继代理 实现跨网段IP地址动态获取
(帮助地址),将广播转发到另外的地址,指定端口号被代理
二、DHCP服务的配置
#service dhcp 开启
#no service dhcp 关闭
#ip dhcp pool [pool name]
#network 192.168.1.0/24
#default-router 192.168.1.1
#dns-server 202.96.64.68
#dns-server 202.96.69.8
#lease 1 2 30客户端地址的租期 1天2小时30分钟
#import all
#ip dhcp excluded-address 192.168.1.2 192.168.1.10 地址池不包含静态地址
#no ip dhcp confillict logging 关闭日子
#ip add dhcp
#show ip dhcp banding ?
#show ip dhcp pool
#ip helper-address 34.1.1.2
#ip forward-protocol udp dhcp 67