路由器全局配置DHCP实验简述

news/2024/9/19 9:01:00 标签: 智能路由器, 网络, 华为, python, linux, 算法, 数据结构

在这里插入图片描述
一、路由器配置

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
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
实验成功。


http://www.niftyadmin.cn/n/5665300.html

相关文章

使用 Python 实现 Windows 应用图标的便捷生成:一站式 PNG 转 ICO 工具20240918

使用 Python 实现 Windows 应用图标的便捷生成:一站式 PNG 转 ICO 工具 在开发 Windows 桌面应用程序时,图标文件(ICO)的生成是不可忽视的关键步骤。无论是任务栏图标、快捷方式,还是应用程序的主图标,都需…

利用WPF绘制轮廓并保存为图片

1.前言 WPF作为显示工具也挺好用,用C#开发应用软件会比较省力,当然也有其缺点,如在对效率要求较高的情况下有性能问题,本文记录用WPF绘制轮廓并保存为图片相关内容。 显示效果也还不错,满足调试使用了&#xf…

C语言--结构体(学习笔记)

内容借鉴于b站杜远超官方频道(C语言结构体详解【干货】) 首先C语言中定义变量格式为“数据类型 变量名”,如int a; float b;等等。 那么结构体则是将多个变量(数据类型 变量名)结合在一起的一种新的数据类型&…

pycharm 安装对应python版本的pip

pycharm: 调出终端命令行 AltF12 返回用户级别的Python安装基础目录。 python3 -m site --user-base 添加新的Python版本到update-alternatives sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1 将python3的默认路径/usr/bin/python…

佰朔资本:股票中什么叫龙头?怎么找龙头股?

龙头,也便是龙头股,指的是某一工作中有必定影响力和号召力的股票,龙头股的涨跌一般对其他同工作板块股票的涨跌有必定演示和引导效果,是一种风向标一般的存在。龙头股的技能面表现和成交量都会比一同间的大盘和地块要强。 龙头股…

写一个自动化记录鼠标/键盘的动作,然后可以重复执行的python程序

import sys import threading import time from PyQt5.QtWidgets import * from auto_fun import * import pyautogui import pynput from PyQt5.QtCore import pyqtSignal from MouseModule import * from pynput import keyboardlocal_list [] # 保存操作坐标、动作、文本 …

南昌大学-计算机科学与技术专业-预推免-专业课(408)复试面试准备

一、数据结构与算法 1. 什么是时间复杂度和空间复杂度? 时间复杂度用于描述算法的执行时间与输入规模之间的关系,即当输入规模增加时,算法的运行时间如何变化。它主要衡量算法的效率和性能。 空间复杂度用于描述算法在运行过程中所需内存空…

golang学习笔记28——golang中实现多态与面向对象

推荐学习文档 golang应用级os框架,欢迎stargolang应用级os框架使用案例,欢迎star案例:基于golang开发的一款超有个性的旅游计划app经历golang实战大纲golang优秀开发常用开源库汇总想学习更多golang知识,这里有免费的golang学习笔…