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





实验成功。

相关推荐
coder!mq35 分钟前
说几个常见的语法糖?
java·开发语言·算法
OH_TPC39 分钟前
【鸿蒙优选三方库】@ohos/mpchart:让 HarmonyOS 应用的数据可视化开箱即用
华为·信息可视化·harmonyos·鸿蒙
LuminousCPP1 小时前
数据结构-双向循环链表
c语言·数据结构·笔记·链表
SamChan901 小时前
PDF翻译API的JWT签名鉴权与速率限制设计:安全实战指南
网络·安全·pdf
雾时之林1 小时前
Linux--软件管理、源码包安装
linux·服务器·数据库
不爱学英文的码字机器1 小时前
推荐算法梳理,六种主流模型与九步训练流程
算法·机器学习·推荐算法
Python大数据分析@2 小时前
使用大模型MCP采集数据,爬虫已经无门槛
python·网络爬虫
xiaoxiangsiyan2 小时前
HCIA 网络技术基础核心模块详解
运维·网络·网络协议·tcp/ip·运维开发·网络基础
quantdash_cc2 小时前
告别自建 Requests/BS4 网页爬虫:基于 QuantDash 搭建零维保的高性能量化行情流水线
开发语言·爬虫·python·pandas·量化·quantdash
65岁退休Coder2 小时前
LangChain v1.3.4 笔记 - 07 补充:链式调用 LCEL
后端·python·langchain