DHCP知识总结
作者:互联网
DHCP知识总结
1、DHCP(Dynamic Host Configuration Protocol,动态主机配置协议)通常被应用在局域网络环境中,主要作用是集中地管理、分配IP地址,使网络环境中的主机动态的获得IP地址
Discover 谁有?
Offer 我有
Request 给我一个
Ack 好的
2、抓包数据
3、配置命令
[Router]interface GigabitEthernet 0/0/0
[Router-GigabitEthernet0/0/0]ip address 192.168.100.1 24
[Router]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[Router]interface GigabitEthernet 0/0/0
[Router-GigabitEthernet0/0/0]dhcp select interface
//针对端口启动DHCP,并以本端口的IP地址为网关;以下为PC机查询结果
PC>ipconfig
Link local IPv6 address...........: fe80::5689:98ff:fe45:3771
IPv6 address......................: :: / 128
IPv6 gateway......................: ::
IPv4 address......................: 192.168.100.254
Subnet mask.......................: 255.255.255.0
Gateway...........................: 192.168.100.1
Physical address..................: 54-89-98-45-37-71
标签:总结,IP地址,知识,192.168,Router,interface,DHCP,address 来源: https://www.cnblogs.com/gucun-blog/p/16456702.html