当前位置: 首页 > news >正文

DHCP中继+静态路由(eNSP)

实验目的:

终端PC得到DHCP中继的自动分配地址,配置静态路由实现终端全网互通。

拓扑:

AR2 DHCP服务配置请看:

DHCP服务实验及其安全风险应对(eNSP)https://blog.csdn.net/qq_44846097/article/details/153659367?spm=1001.2014.3001.5501

DHCP中继:

AR1端接口默认路由中继配置:

[Huawei]ip route-static 0.0.0.0 0.0.0.0 10.0.1.2    //配置默认路由[Huawei]int g0/0/0[Huawei-GigabitEthernet0/0/0]ip address 10.0.0.1 24[Huawei-GigabitEthernet0/0/0]int g0/0/1[Huawei-GigabitEthernet0/0/1]ip add 10.0.1.1 24[Huawei-GigabitEthernet0/0/1]dis ip int bri    //查询端接口IP配置
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 1Interface                         IP Address/Mask      Physical   Protocol
GigabitEthernet0/0/0              10.0.0.1/24          up         up
GigabitEthernet0/0/1              10.0.1.1/24          up         up
GigabitEthernet0/0/2              unassigned           down       down
NULL0                             unassigned           up         up(s)
[Huawei-GigabitEthernet0/0/1]q[Huawei]dhcp server group 1001dhcp    //dhcp服务分组(非强制分组)[Huawei-dhcp-server-group-1001dhcp]dhcp-server 10.0.1.2    //dhcp服务中心地址[Huawei-dhcp-server-group-1001dhcp]int g0/0/0    //子网网关接口[Huawei-GigabitEthernet0/0/0]dhcp relay server-select 1001dhcp    //引用dhcp服务中心分组地址

AR2配置静态路由:

[Huawei]ip route-static 10.0.0.0 24 10.0.1.1[Huawei]ip route-static 10.0.3.0 24 10.0.2.2[Huawei]dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: PublicDestinations : 12       Routes : 12Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface10.0.0.0/24  Static  60   0          RD   10.0.1.1        GigabitEthernet0/0/010.0.1.0/24  Direct  0    0           D   10.0.1.2        GigabitEthernet0/0/010.0.1.2/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/010.0.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/010.0.2.0/24  Direct  0    0           D   10.0.2.1        GigabitEthernet0/0/110.0.2.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/110.0.2.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0/0/110.0.3.0/24  Static  60   0          RD   10.0.2.2        GigabitEthernet0/0/1127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

AR3端接口和中继配置:

[Huawei]ip route-static 0.0.0.0 0.0.0.0 10.0.2.1    //添加默认路由[Huawei]int g0/0/0[Huawei-GigabitEthernet0/0/0]ip add 10.0.2.2 24[Huawei-GigabitEthernet0/0/0]int g0/0/1[Huawei-GigabitEthernet0/0/1]ip add 10.0.3.1 24[Huawei]dis ip int bri    //查询端接口网络配置
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 1Interface                         IP Address/Mask      Physical   Protocol
GigabitEthernet0/0/0              10.0.2.2/24          up         up
GigabitEthernet0/0/1              10.0.3.1/24          up         up
GigabitEthernet0/0/2              unassigned           down       down
NULL0                             unassigned           up         up(s)[Huawei]int g0/0/1[Huawei-GigabitEthernet0/0/1]dhcp select relay[Huawei-GigabitEthernet0/0/1]dhcp relay server-ip 10.0.2.1

验证:

终端PC获取分配地址,且同子网和互通,

http://www.dtcms.com/a/575044.html

相关文章:

  • 腾讯云服务器做网站wordpress 分类 php
  • 头歌MySQL——复杂查询
  • 接口自动化测试SOP标准流程
  • 如何在需求收集阶段避免遗漏关键用户?
  • 在Windows上部署RAGFlow
  • Python每日一练---第六天:罗马数字转整数
  • 东莞网站平台价格网站建设判断题
  • C/C++ char类型字符串直接赋值与分配内存赋值的区别
  • apache 建立网站优化网站搜索排名
  • 再论大模型不能通向AGI
  • 手机网站 动态 页面 好 静态页面好养猪网站建设规划书
  • 用 C 语言实现的回调函数案例,涵盖基础用法及不同消息机制(GUI 模拟、网络请求模拟、状态机、消息队列)
  • wordpress站群软件带网站的图片素材
  • 营销管理网站东莞市微客巴巴做网站
  • 龙华网站(建设信科网络)基层建设期刊在哪个网站上检索
  • PLCSIM影响我们的Ssh通信
  • 修文县生态文明建设局网站通号建设集团有限公司
  • 杭州开发区网站建设php网站作业模版
  • 网站菜单样式网站的例子
  • 嘉兴网站建议wordpress 编辑器 视频
  • 成品网页网站本地专业app开发公司在哪里
  • 清苑区建设局网站wordpress恢复主题初始值
  • 亿网行网站建设114企业网网站架构软件
  • 网站组织结构图深圳市建设交易网站
  • 做网站和seo流程南宁建设网站培训
  • 系列文章<八>(从LED显示屏的Gamma过曝问题问题到手机影像):从LED冬奥会、奥运会及春晚等大屏,到手机小屏,快来挖一挖里面都有什么
  • 【咨询】Android Studio 第三方手机模拟器对比【202511】
  • 服装类的网站建设营销型网站定做
  • a5建站长宁免费网站制作
  • 做企业网站找谁全自动行业管理系统