拓扑图
整体实验
1.拓扑图
2.需求
3.需求分析
4.配置过程
5.结果验证
实验需求
通过配置实现client使用域名访问HTTP服务器
需求分析
需求
1、通过DHCP服务器,给PC1、PC2分配IP地址、网关、掩码、DNS服务器IP地址
2、Client要求手工配置IP地址,为192.168.1.2,可以通过该设备使用域名成功访问HTTP服务器3、整个拓扑图使用192.168.1.0/24和192.168.2.0/24网段进行分配
4、要求DHCP服务器需要排除被手工配置的IP地址;并修改租期时间为1小时
5、最终实现每台终端都可以相互通讯(ping成功)
配置过程
DHCP服务器
[DHCP service]interface GigabitEthernet 0/0/0 //设置网关端口号
[DHCP service-GigabitEthernet0/0/0]ip address 192.168.1.100 24 //设置网关ip地址
[DHCP service]interface GigabitEthernet 0/0/1 //设置网关端口号
[DHCP service-GigabitEthernet0/0/1]ip address 192.168.2 100 24 //设置网关ip地址
//观察dhcp服务器的网关地址信息
<DHCP service>display ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 1
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.1.100/24 up up
GigabitEthernet0/0/1 192.168.2.100/24 up up
GigabitEthernet0/0/2 unassigned down down
NULL0 unassigned up up(s)