华为dhcp服务配置在路由器上

 

[Huawei]sys R1
[R1]dhcp enable
[R1]ip pool dhcp10
[R1-ip-pool-dhcp10]network 192.168.10.0 mask 24
[R1-ip-pool-dhcp10]gateway 192.168.10.1
[R1-ip-pool-dhcp10]dns-list 200.200.200.200
[R1-ip-pool-dhcp10]excluded-ip-address 192.168.10.101 配置地址池中某个ip不参与自动分配
[R1-ip-pool-dhcp10]lease day 0 hour 2 配置IP地址租期为2小时
[R1-ip-pool-dhcp10]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 192.168.10.1 24
[R1-GigabitEthernet0/0/0]dhcp select global
[R1-GigabitEthernet0/0/0]q
[R1]ip pool dhcp20
[R1-ip-pool-dhcp20]network 192.168.20.0 mask 24
[R1-ip-pool-dhcp20]gateway 192.168.20.1
[R1-ip-pool-dhcp20]dns-list 200.200.200.200
[R1-ip-pool-dhcp20]lease day 0 hour 2
[R1-ip-pool-dhcp20]int g0/0/1
[R1-GigabitEthernet0/0/1]ip add 192.168.20.1 24
[R1-GigabitEthernet0/0/1]dhcp select global

posted @ 2020-03-15 18:12  终于还  阅读(772)  评论(0编辑  收藏  举报