ensp实践dhcp服务
- 1、dhcp接口分配模式
- 2、dhcp接口地址池分配模式
- 3、dhcp布拉布拉布拉
1、dhcp接口分配模式
1.1、路由器AR1配置dhcp动态获取
<Huawei>system-view
[Huawei]interface g0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 10.1.1.1 24
[Huawei-GigabitEthernet0/0/0]q
开启dhcp服务
[Huawei]dhcp enable
dhcp接口分配模式
[Huawei]interface g0/0/0
[Huawei-GigabitEthernet0/0/0]dhcp select interface
[Huawei-GigabitEthernet0/0/0]dhcp server dns-list 114.114.114.114
1.2、查看PC自动配置结果
1.3、其他配置
[Huawei-GigabitEthernet0/0/0]dhcp server excluded-ip-address 10.1.1.101
[Huawei-GigabitEthernet0/0/0]dhcp server lease day 5
2.1、指定mac绑定静态ip
需要先关闭PC主机
<Huawei>system-view
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]dhcp server static-bind ip-address 10.1.1.10 mac-address 5489-98EE-2EE5
2.2、查看PC自动配置结果