路由器接口配置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




实验成功。

相关推荐
玫幽倩几秒前
2026黄河流域公安院校-电子物证单项赛(程序逆向分析+服务器取证)
运维·服务器·python·电子取证·逆向·程序分析·服务器取证
恒拓高科WorkPlus3 分钟前
从“可选项”到“必选项”——私有化部署即时通讯如何重塑企业协作新底座
大数据·网络·人工智能
北斗落凡尘4 分钟前
LangGraph 入门实战(4)
python·langchain
ChaHae-In6 分钟前
MyBatis入门操作
java·mybatis
闲研随记8 分钟前
【文献阅读 ICLR 2026】RL算法:Co-Rewarding
算法
xcLeigh11 分钟前
Go入门:短变量声明的陷阱与最佳实践
java·redis·golang·教程·变量
青山木17 分钟前
Hot 100 --- 最小栈
java·数据结构·算法·leetcode
疯狂打码的少年21 分钟前
【数据结构】栈的应用:表达式求值(后缀表达式)
java·数据结构·笔记·算法
liwulin050624 分钟前
【PYTHON】使用Selenium + ChromeDriver以及XPATH语法
开发语言·python·selenium
copyer_xyf26 分钟前
Agentic RAG 实战:PostgreSQL + LangGraph 一条链路
python·postgresql·agent