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




实验成功。

相关推荐
Thneonl1 小时前
Celery 生产踩坑:1000 任务积压与 acks_late 双重执行
后端·python
清桔1 小时前
模型的调用
python
IT枫斗者枫哥1 小时前
MyBatis一对多分页:LIMIT 20,为什么凑不齐20个订单?
java·数据库
代码方舟1 小时前
Java数据工程:利用天远全网运营商三要素优化线上实名认证合规体验
java·人工智能
小小张说故事1 小时前
Python 多线程为什么跑不快?asyncio 入门指南:异步并发从零上手
后端·python
BBmmo1 小时前
我的 Java 学习笔记 · 第 7 篇:泛型与通配符
java
独泪了无痕1 小时前
Hutool之RandomUtil:随机数生成的终极利器
java·后端
10年前端老司机1 小时前
干货分享|企业智能知识库 Rerank 重排序落地实践与踩坑总结
python·aigc·agent
用户979984807181 小时前
200 行代码写一个能跑的 AI Agent:不依赖任何框架,只靠 tool-calling 原理
算法
花开路口1 小时前
深入理解 Java/Kotlin 协变与逆变
java·kotlin