DHCP简单配置-CISCO
 
 
实验目的:路由器充当DHCP服务器 分别给销售、财务分配2段、1段的IP地址.

f0/0口ip地址为192.168.2.1 f0/1口ip地址为192.168.1.1

实验结果:销售财务互相可以ping通。

配置命令如下:

R1>en

R1#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

R1(config)#int f0/0

R1(config-if)#ip add 192.168.2.1 255.255.255.0 配置IP

R1(config-if)#no shut

R1(config-if)#int f0/1

R1(config-if)#ip add 192.168.1.1 255.255.255.0

R1(config-if)#no shut

R1(config-if)#exit

R1(config)#ip dhcp excluded-address 192.168.1.1  将此IP从地址池中排出

R1(config)#ip dhcp excluded-address 192.168.2.1  将此IP从地址池中排出
R1(config)#ip dhcp pool caiwu   创建caiwu地址池

R1(dhcp-config)#network 192.168.1.0 255.255.255.0   地址池范围

R1(dhcp-config)#default-router 192.168.1.1             网关

R1(dhcp-config)#dns-server 202.102.192.68            dns地址

R1(dhcp-config)#lease 9  (Packet Tracer模拟器不支持此命令,租约9天。)

R1(dhcp-config)#domain-name cisco.com   (Packet Tracer模拟器不支持此命令,设置域名)

R1(dhcp-config)#exit

R1(config)#ip dhcp pool xiaoshou

R1(dhcp-config)#network 192.168.2.0 255.255.255.0

R1(dhcp-config)#default-router 192.168.2.1

R1(dhcp-config)#dns-server 202.102.192.68

R1(dhcp-config)#lease 9

R1(dhcp-config)#domain-name cisco.com

R1(dhcp-config)#exit
 
财务客户机:
DHCP简单配置-CISCO
DHCP简单配置-CISCO
×××机:
DHCP简单配置-CISCO
DHCP简单配置-CISCO