路由器接口配置DHCP实验简述

一、路由器配置

Huaweiundo info-center enable

Info: Information center is disabled.

DHCP-SERVERsysname DHCP-Server

DHCP-Serverdis this

sysname DHCP-Server

undo info-center enable

return

DHCP-Serverdhcp enable

Info: The operation may take a few seconds. Please wait for a moment.done.

DHCP-Serverdis this

sysname DHCP-Server

undo info-center enable

dhcp enable

return

DHCP-Serverint g0/0/0

DHCP-Server-GigabitEthernet0/0/0ip add 172.16.0.2 24

DHCP-Server-GigabitEthernet0/0/0dhcp select interface

DHCP-Server-GigabitEthernet0/0/0dhcp server dns-list 221.141.85.68

DHCP-Server-GigabitEthernet0/0/0dhcp server dns-list 8.8.8.8

DHCP-Server-GigabitEthernet0/0/0quit

DHCP-Serverquit

save

The current configuration will be written to the device.

Are you sure to continue?Y/Ny

Info: Please input the file name ( *.cfg, *.zip ) vrpcfg.zip:

Now saving the current configuration to the slot 17.

Save the configuration successfully.

二、PC1和PC2自动获取IP 地址、网关和DNS




实验成功。

相关推荐
MacroZheng5 小时前
同事问我:"Claude Code经常失忆,不怕它把项目搞炸?",我:"怕,三个Markdown文件给它装个永不丢失的外置大脑!"
java·人工智能·后端
学习星球6 小时前
OFDM技术精讲:正交性推导、循环前缀原理与80行Python链路仿真(附实测数据)
算法·面试·前端框架
十年Java程序媛7 小时前
深度实战:JDK21 虚拟线程 + HikariCP 生产正确配比、坑点、监控全套
java·spring boot
xiaoqiMikko7 小时前
有人在搜一个不存在的 Tomcat 版本
java·tomcat
65岁退休Coder8 小时前
LangGraph v1.2.9 节点容错策略 & 流式输出 & 持久化记忆管理
后端·python·langchain
用户31268748772010 小时前
ConcurrentHashMap 怎么保证线程安全?从分段锁到 CAS+synchronized
java
vipxieliang10 小时前
ValidX vs Apache Commons Validator:功能与性能对比
java·spring boot
SimonKing10 小时前
升级Spring Boot 4后,从 Jackson 2 到 3,到底有哪些变化
java·后端·程序员
BreezeJiang10 小时前
从域名到 Node.js:一次云服务器请求经过了哪些层?
服务器
ikun_文10 小时前
Django框架路由Router的使用
python·pycharm·django