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服务器设置

上一篇:CDialog的用法误区


下一篇:Dos命令