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

ops/2024/9/26 1:27:12/

在这里插入图片描述
一、路由器配置

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
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
实验成功。


http://www.ppmy.cn/ops/116035.html

相关文章

linux如何启用ipv6随机地址

简介 在 IPv6 中,临时随机地址(Temporary IPv6 Address)是一种为了提高隐私和安全而设计的功能。通常,默认的 IPv6 地址是基于设备的 MAC 地址生成的,容易导致跟踪和识别设备。启用临时 IPv6 地址可以避免这个问题&am…

力扣 92.反转链表Ⅱ

力扣《反转链表》系列文章目录 刷题次序,由易到难,一次刷通!!! 题目题解206. 反转链表反转链表的全部 题解192. 反转链表 II反转链表的指定段24. 两两交换链表中的节点两个一组反转链表 题解225. K 个一组翻转链表K …

浅显易懂的Git教程

Git概述 SVN与Git的对比 SVN(Subversion) 类型:集中式版本控制系统 工作流程: 从中央服务器下载最新版本到本地。在本地进行开发。提交更改回中央服务器。 优点: 简单易用,适合小型团队。版本历史清…

解决NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+问题

问题描述 NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1, currently the ‘ssl’ module is compiled with ‘LibreSSL 2.8.3’. See: https://github.com/urllib3/urllib3/issues/3020 解决方法 python3 pip3 install urllib31.26.6 python2 pip install u…

【基于开源鸿蒙(OpenHarmony)的智慧农业综合应用系统】

基于开源鸿蒙OpenHarmony的智慧农业综合应用系统 1. 智能环境监测与调控1)场景描述2)技术实现 2.精准种植与作物管理1)场景描述2)技术实现 3.智能仓储与物流管理1)场景描述2)技术实现 1. 智能环境监测与调控…

vue2使用npm引入依赖(例如axios),报错Module parse failed: Unexpected token解决方案

报错情况 Module parse failed: Unexpected token (5:2) You may need an appropriate loader to handle this file type. 原因 因为我们npm install时默认都是下载最新版本,然后个别依赖的版本太新,vue2他受不起这个福分。 解决方法 先去package.js…

蜗牛兼职网:Spring Boot与微服务

第2章相关技术 2.1 B/S架构 B/S结构的特点也非常多,例如在很多浏览器中都可以做出信号请求。并且可以适当的减轻用户的工作量,通过对客户端安装或者是配置少量的运行软件就能够逐步减少用户的工作量,这些功能的操作主要是由服务器来进行控制的…

langchain基于混元大模型的实时内容的RAG问答

一、本文知识可以涉及到的知识: pythonlangchainlangchain-agentlangchain-toollangchain-retriever向量数据库QdrantHunYuanHunYuan Embeeding 二、本文所需要解决的场景 尽量少的花费tokens(翻译一下啊:少花钱)一场进行中的会…