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





实验成功。

相关推荐
重生之高冷汉堡包5 分钟前
JavaScript 网络爬虫教程(2026)
大数据·网络·爬虫·安全
荆棘鸟智能5 分钟前
虫情测报灯图像识别算法实践:小目标检测、粘连计数与飞虱细粒度分类
算法·目标检测·分类
Lhan.zzZ9 分钟前
Linux + Qt/QML:解决 QtQuick.VirtualKeyboard.Plugins 模块加载失败与环境变量配置
linux·数据库·qt
Raas10012 分钟前
AI网关怎么选?MAI Gateway(魔芋企业级AI网关)入选2026年企业级AI网关推荐清单
大数据·网络·人工智能·gateway·mai gateway
程序猿追12 分钟前
渐变中间那一格怎么算?用 colormath 做个鸿蒙调色器
华为·harmonyos
小毛驴85014 分钟前
mvn help:effective-settings 与 mvn help:effective-pom
java·linux·前端
逸A16 分钟前
携程app逆向那些事(ai agent能力偏弱时)
人工智能·python·安全
silvamux_27 分钟前
OpenAI Python SDK v1 迁移实战
开发语言·python
爱读书的小胖27 分钟前
LeetCode 27. 移除元素(C)解题分析
数据结构·算法
旋生万物28 分钟前
螺旋数不是玄学:Python 实现广义复数与等角螺线
开发语言·人工智能·python·云原生·aigc·软件工程·后端开发