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





实验成功。

相关推荐
m0_715674434 分钟前
政务泛监测体系能力排行:AI 重塑监测边界,治理的颗粒度革命
大数据·网络·人工智能·安全·网络安全·政务
w_zero_one9 分钟前
递归算法(一)
java·开发语言·算法
李松桃27 分钟前
基于端口号的服务配置
linux·nginx-核心模块配置
视觉小萌新32 分钟前
AI Class 3 · Chapter 2-3:函数、异常、文件读写+JSON / JSONL 读写(小白版)
人工智能·python·json
AI 编程助手GPT39 分钟前
curl 返回成功就能收文件?用本地 HTTP 验证错误页与超时
网络·网络协议·http
小小张说故事2 小时前
Python 的 obj.x 到底按什么顺序找?拆开数据描述符、实例字典和 __getattr__ 那条优先级链
python
风影同志783242 小时前
20 个比特能装下多少行情?——实测拆解 Kronos 的 K 线分词器
算法
十碗饭吃不饱2 小时前
后端运维:网络联通、进程查询、Java服务启动脚本
java·运维·网络
写的都是BUG2 小时前
APK 里的钥匙,一直就放在门口:聊聊加固真正该做什么
前端·算法
用户11481867894843 小时前
水印的实现方式逻辑
前端·python