路由器全局配置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.

Huaweisysname DHCP-Server-global

DHCP-Server-globalundo info-center enable

Info: Information center is disabled.

DHCP-Server-globalinterface gigabitethernet 0/0/0

DHCP-Server-global-GigabitEthernet0/0/0ip add 172.16.0.2 24

DHCP-Server-global-GigabitEthernet0/0/0quit

DHCP-Server-globaldhcp enable

Info: The operation may take a few seconds. Please wait for a moment.done.

DHCP-Server-globalip pool jxskxy

Info:It's successful to create an IP address pool.

DHCP-Server-global-GigabitEthernet0/0/0quit

DHCP-Server-globalip pool jxskxy

DHCP-Server-global-ip-pool-jxskxynetwork 172.16.0.0 mask 24

DHCP-Server-global-ip-pool-jxskxydns-list 211.141.85.68

DHCP-Server-global-ip-pool-jxskxydns-list 8.8.8.8

DHCP-Server-global-ip-pool-jxskxygateway-list 172.16.0.2

DHCP-Server-global-ip-pool-jxskxyquit

DHCP-Server-globalint g0/0/0

DHCP-Server-global-GigabitEthernet0/0/0dhcp select global

DHCP-Server-global-GigabitEthernet0/0/0quit

DHCP-Server-globalquit

save

二、PC1和PC2自动获取IP 地址、网关和DNS





实验成功。

相关推荐
老毛肚1 小时前
jeecg-boot-base-core 02 day
javascript·python
yaoxin5211231 小时前
434. Java 日期时间 API - Period 基于日期的时间段
java·开发语言·python
毒爪的小新1 小时前
Linux 环境极速部署 vLLM:从零搭建生产级大模型推理服务
linux·人工智能·ai·语言模型·vllm
鹤落晴春1 小时前
RH124问答3:从命令行管理文件
linux·运维·服务器
凡人叶枫1 小时前
Effective C++ 条款30:透彻了解 inlining 的里里外外
linux·开发语言·c++·嵌入式开发·effective c++
noipp1 小时前
推荐题目:洛谷 P10907 [蓝桥杯 2024 国 B] 蚂蚁开会
c语言·c++·算法·编程·洛谷
岁月宁静2 小时前
RAG 文档摄入全链路,从原理到生产落地
vue.js·人工智能·python
木咺吟2 小时前
鸿蒙原生应用实战(一):从零搭建快递追踪App——项目初始化与工程架构详解
华为·harmonyos
火山上的企鹅2 小时前
Codex实战:APP远程升级服务搭建(三)后台管理页面(APK 上传、版本管理、多应用页签)
服务器·网络·数据库·oracle·qgc
程序员二叉2 小时前
【JUC】线程池全套深度详解|参数|流程|拒绝策略|调优|异常处理
java·开发语言·jvm·算法·面试·juc