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





实验成功。

相关推荐
Ven%3 分钟前
深度学习速通系列:TextCNN介绍
人工智能·python·深度学习·自然语言处理·nlp
.Net Core 爱好者4 分钟前
ASP .NET CORE 6 项目实现WebSocket通信实践
网络·websocket·网络协议·c#·.net·.netcore·visual studio
Mr.kanglong12 分钟前
【LeetCode热题100】位运算
算法·leetcode
Gabriel Drop Out13 分钟前
10年408考研真题-数据结构
数据结构·考研
两仪式quq16 分钟前
Linux-环境变量
linux·运维·服务器
Android技术栈17 分钟前
鸿蒙开发(NEXT/API 12)【跨设备互通特性简介】协同服务
网络·harmonyos·鸿蒙·鸿蒙系统·openharmony·协同·跨设备
KuaiKKyo18 分钟前
c++9月20日
java·c++·算法
爱看书的小沐21 分钟前
【小沐学GIS】blender导入OpenStreetMap城市建筑(blender-osm、blosm)
python·gis·blender·openstreetmap·osm·blosm·blender-osm
算法萌新——121 分钟前
洛谷P5740——结构体运用
数据结构·算法·图论
啥也不会干的小码25 分钟前
【越学学糊涂的Linux系统】(1)Linux环境搭建|账户管理
linux