DHCP服务器设置

2021/7/24 6:08:07

本文主要是介绍DHCP服务器设置,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

以三层交换机作为DHCP服务器

所有设备均用交换机代替

对DHCP服务器进行设置

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]undo inf e
Info: Information center is disabled.
[Huawei]sys DHCP
[DHCP]dhcp en
[DHCP]ip pool vlan100
[DHCP-ip-pool-vlan100]network 192.168.1.0 mask 24
[DHCP-ip-pool-vlan100]gateway-list 192.168.1.1
[PC]int vlanif1
[PC-Vlanif1]ip add 192.168.1.1 24
[PC-Vlanif1]dhcp select global

对PC机设置,

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]undo inf e
Info: Information center is disabled.
[Huawei]sys PC
[PC]dhcp en
[PC]int vlanif1
[PC-Vlanif1]ip ad dhcp-alloc
[PC-Vlanif1]dis ip int br
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 2
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
MEth0/0/1                         unassigned           down       down      
NULL0                             unassigned           up         up(s)     
Vlanif1                           192.168.1.254/24     up         up  

中间的交换机可以不设置

路由器做DHCP



这篇关于DHCP服务器设置的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程