路由器全局配置DHCP实验简述

一、路由器配置

reset saved-configuration

Warning: The action will delete the saved configuration in the device.

The configuration will be erased to reconfigure. Continue? [Y/N]:y

Warning: Now clearing the configuration in the device.

Info: Succeeded in clearing the configuration in the device.

reboot

Info: The system is now comparing the configuration, please wait.

Warning: All the configuration will be saved to the configuration file for the n

ext startup:, Continue?[Y/N]:

Error: Please choose 'YES' or 'NO' first before pressing 'Enter'. [Y/N]:n

Info: If want to reboot with saving diagnostic information, input 'N' and then e

xecute 'reboot save diagnostic-information'.

System will reboot! Continue?[Y/N]:y

sys

Enter system view, return user view with Ctrl+Z.

Huawei\]sysname DHCP-Server-global \[DHCP-Server-global\]undo info-center enable Info: Information center is disabled. \[DHCP-Server-global\]interface gigabitethernet 0/0/0 \[DHCP-Server-global-GigabitEthernet0/0/0\]ip add 172.16.0.2 24 \[DHCP-Server-global-GigabitEthernet0/0/0\]quit \[DHCP-Server-global\]dhcp enable Info: The operation may take a few seconds. Please wait for a moment.done. \[DHCP-Server-global\]ip pool jxskxy Info:It's successful to create an IP address pool. \[DHCP-Server-global-GigabitEthernet0/0/0\]quit \[DHCP-Server-global\]ip pool jxskxy \[DHCP-Server-global-ip-pool-jxskxy\]network 172.16.0.0 mask 24 \[DHCP-Server-global-ip-pool-jxskxy\]dns-list 211.141.85.68 \[DHCP-Server-global-ip-pool-jxskxy\]dns-list 8.8.8.8 \[DHCP-Server-global-ip-pool-jxskxy\]gateway-list 172.16.0.2 \[DHCP-Server-global-ip-pool-jxskxy\]quit \[DHCP-Server-global\]int g0/0/0 \[DHCP-Server-global-GigabitEthernet0/0/0\]dhcp select global \[DHCP-Server-global-GigabitEthernet0/0/0\]quit \[DHCP-Server-global\]quit save 二、PC1和PC2自动获取IP 地址、网关和DNS ![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/fedab93966694156b5d89723f4417606.png) ![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/9ac518a5972c4a4db5af596de9f9df55.png) ![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/e43ace81995d4d88abac37e9f4a044d8.png) ![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/6dc33f9e96f5496dba3beb84f820ecf9.png) ![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/6a74024e62e149e9b7c6681076bb3d9e.png) ![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/ba4e5c80594c437aae56d8ed72773b5b.png) 实验成功。

相关推荐
IT逆夜几秒前
实现Yum本地仓库自动同步的完整方案(CentOS 7)
linux·运维·windows
S***267514 分钟前
linux上redis升级
linux·运维·redis
p666666666815 分钟前
vmware虚拟机的三种网络配置详细介绍,包能解决虚拟机网络问题
网络
稚辉君.MCA_P8_Java17 分钟前
Gemini永久会员 Java中的四边形不等式优化
java·后端·算法
稚辉君.MCA_P8_Java28 分钟前
通义 插入排序(Insertion Sort)
数据结构·后端·算法·架构·排序算法
赖small强31 分钟前
【Linux 网络基础】Linux 平台 DHCP 运作原理与握手过程详解
linux·网络·dhcp
Mu.3871 小时前
计算机网络模型
网络·网络协议·计算机网络·安全·http·https
烤汉堡1 小时前
Python入门到实战:post请求+cookie+代理
爬虫·python
无限进步_1 小时前
C语言动态内存的二维抽象:用malloc实现灵活的多维数组
c语言·开发语言·数据结构·git·算法·github·visual studio
luod1 小时前
Python异常链
python