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

[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





实验成功。

相关推荐
爱吃生蚝的于勒6 分钟前
深入学习指针(5)!!!!!!!!!!!!!!!
c语言·开发语言·数据结构·学习·计算机网络·算法
yeyuningzi7 分钟前
Debian 12环境里部署nginx步骤记录
linux·运维·服务器
羊小猪~~10 分钟前
数据结构C语言描述2(图文结合)--有头单链表,无头单链表(两种方法),链表反转、有序链表构建、排序等操作,考研可看
c语言·数据结构·c++·考研·算法·链表·visual studio
上辈子杀猪这辈子学IT25 分钟前
【Zookeeper集群搭建】安装zookeeper、zookeeper集群配置、zookeeper启动与关闭、zookeeper的shell命令操作
linux·hadoop·zookeeper·centos·debian
minihuabei31 分钟前
linux centos 安装redis
linux·redis·centos
进击的六角龙32 分钟前
Python中处理Excel的基本概念(如工作簿、工作表等)
开发语言·python·excel
王哈哈^_^35 分钟前
【数据集】【YOLO】【VOC】目标检测数据集,查找数据集,yolo目标检测算法详细实战训练步骤!
人工智能·深度学习·算法·yolo·目标检测·计算机视觉·pyqt
星沁城37 分钟前
240. 搜索二维矩阵 II
java·线性代数·算法·leetcode·矩阵
SuperHeroWu744 分钟前
【HarmonyOS】键盘遮挡输入框UI布局处理
华为·harmonyos·压缩·keyboard·键盘遮挡·抬起
一只爱好编程的程序猿1 小时前
Java后台生成指定路径下创建指定名称的文件
java·python·数据下载