news 2026/11/5 13:15:28

BUAA-2026-计网实验-应用层

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
BUAA-2026-计网实验-应用层

应用层实验

1. 通用准备

1.1 交换机关闭万兆口

system-view interface Ten-GigabitEthernet1/0/25 shutdown interface Ten-GigabitEthernet1/0/26 shutdown interface Ten-GigabitEthernet1/0/27 shutdown interface Ten-GigabitEthernet1/0/28 shutdown

1.2 路由器删除默认接口

system-view undo interface Vlan-interface1

2. DNS 实验

2.1 接口与交换机端口

<Quidway>system-view [Quidway]sysname R1 [R1]interface Ethernet0/0 [R1-Ethernet0/0]ip address 10.0.0.1 24 [R1]interface Ethernet0/1 [R1-Ethernet0/1]ip address 192.168.5.X 24
system-view interface Ethernet1/0/24 undo shutdown interface Ethernet1/0/1 undo shutdown interface Ethernet1/0/2 undo shutdown interface Ethernet1/0/13 undo shutdown interface Ethernet1/0/14 undo shutdown

如需显式配置二层口:

interface Ethernet1/0/24 port link-type access port default vlan 1 interface Ethernet1/0/1 port link-type access port default vlan 1 interface Ethernet1/0/2 port link-type access port default vlan 1 interface Ethernet1/0/13 port link-type access port default vlan 1 interface Ethernet1/0/14 port link-type access port default vlan 1

2.2 NAT

<R1>system-view [R1]acl number 2001 [R1-acl-2001]rule permit source 10.0.0.0 0.0.0.255 [R1-acl-2001]rule deny source any [R1]nat address-group 1 192.168.5.X 192.168.5.Y [R1]interface Ethernet0/1 [R1-Ethernet0/1]nat outbound 2001 [R1]ip route-static 0.0.0.0 0.0.0.0 192.168.5.1

如果老师只分配给您一个外网 IP,那么 X 和 Y填同一个数字即可(如 192.168.5.105 192.168.5.105)。如果分配了一个范围,则 Y 是结束地址。

2.3 连通性测试

ping 192.168.5.1

2.4 PC 设置

  • PCA:10.0.0.11/24,网关10.0.0.1,DNS10.0.0.11
  • PCB:10.0.0.12/24,网关10.0.0.1,DNS10.0.0.11
  • PCC:10.0.0.13/24,网关10.0.0.1,DNS10.0.0.13
  • PCD:按现场要求,DNS 指向10.0.0.13

2.5 PC 操作

  1. PCA、PCC 运行Simple DNS Plus
  2. 执行ipconfig /flushdns
  3. 清空Simple DNS Plus缓存
  4. 打开Wireshark
  5. 在客户机访问www.buaa.edu.cn
  6. Wireshark过滤:
dns

3. HTTP 实验

3.1 设备配置

  • 沿用 DNS 实验的交换机、R1、NAT 配置

3.2 PC 设置

  • 所有 PC 的 DNS 改为:202.112.128.51
  • 停止Simple DNS Plus

3.3 PC 操作

  1. 打开Wireshark
  2. 访问:
http://www.buaa.edu.cn/ http://www.buaa.edu.cn/office.php
  1. 停止抓包,保存http-学号

4. 电子邮件实验

4.1 设备配置

  • 沿用 DNS/HTTP 实验的交换机、R1、NAT 配置

4.2 PC 设置

  • PCA:10.0.0.11/24,网关10.0.0.1,DNS202.112.128.51
  • PCB:10.0.0.12/24,网关10.0.0.1,DNS202.112.128.51
  • PCC:10.0.0.13/24,网关10.0.0.1,DNS202.112.128.51
  • PCD:10.0.0.14/24,网关10.0.0.1,DNS202.112.128.51

4.3 软件角色

  • PCB、PCD:运行Winmail
  • PCA、PCC:运行Foxmail
  • PCA 的 SMTP 服务器:10.0.0.12
  • PCC 的 SMTP 服务器:10.0.0.14

4.4 PC 操作

  1. 启动Winmail
  2. 配置Foxmail
  3. 打开Wireshark
  4. 发送邮件,保存SMTP-学号
  5. 接收邮件,过滤POP3

4.5 记忆项

  • SMTP端口:25
  • POP3端口:110

5. FTP 实验

5.1 交换机端口

system-view interface Ethernet1/0/1 undo shutdown interface Ethernet1/0/2 undo shutdown

如需显式配置二层口:

interface Ethernet1/0/1 port link-type access port default vlan 1 interface Ethernet1/0/2 port link-type access port default vlan 1

5.2 PC 设置

  • PCA:192.168.1.22/24
  • PCB:192.168.1.21/24

5.3 软件角色

  • PCA:运行3CDaemon,配置 FTP Server
  • PCB:IE 访问 FTP Server

5.4 PC 操作

  1. 在 PCA 上配置用户名、密码、上传/下载权限
  2. PCA、PCB 打开Wireshark
  3. PCB 访问:
ftp://192.168.1.22
  1. 输入用户名和密码登录
  2. 停止抓包,保存ftp-学号

5.5 记忆项

  • FTP 控制连接端口:21
  • 重点找:USER、PASS

6. DHCP 实验

6.1 交换机端口

system-view interface Ethernet1/0/24 undo shutdown interface Ethernet1/0/1 undo shutdown interface Ethernet1/0/2 undo shutdown interface Ethernet1/0/13 undo shutdown interface Ethernet1/0/14 undo shutdown

如需显式配置二层口:

interface Ethernet1/0/24 port link-type access port default vlan 1 interface Ethernet1/0/1 port link-type access port default vlan 1 interface Ethernet1/0/2 port link-type access port default vlan 1 interface Ethernet1/0/13 port link-type access port default vlan 1 interface Ethernet1/0/14 port link-type access port default vlan 1

6.2 PC 操作

  1. 各主机设为“自动获得 IP 地址”
  2. 打开Wireshark
  3. 执行“修复”本地连接
  4. 停止抓包,保存dhcp-学号

6.3 记忆项

  • 重点 4 条报文:
    • DHCP Discover
    • DHCP Offer
    • DHCP Request
    • DHCP ACK
版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/11/3 17:24:46

让Agent执行业务前,先把动作约定写清楚

FDE岗位实务指南 第11篇“这份资料已经处理了。”在项目群里&#xff0c;这句话通常会让人放心&#xff1b;在一个由Agent参与的业务流程里&#xff0c;它几乎没有可执行含义。它可能表示资料被读过、候选信息被抽取、人工已经确认、核验结果被保存&#xff0c;也可能表示订单…

作者头像 李华
网站建设 2026/10/27 18:36:16

STM32寄存器第二章:时钟使能原理与实战避坑指南

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

作者头像 李华
网站建设 2026/10/27 11:51:28

生成式AI与ChatGPT协同实践:本地小模型+云端大模型端到端落地

1. 项目概述&#xff1a;这不是“AI入门课”&#xff0c;而是一套可落地的生成式AI实践框架 “轻松学生成式 AI 与 ChatGPT 二合一&#xff08;一&#xff09;”这个标题里&#xff0c;“轻松”不是降低技术门槛的修饰词&#xff0c;而是指 学习路径被重新压缩、验证、封装后…

作者头像 李华
网站建设 2026/10/19 22:10:11

PPT Master 完整指南:如何把一份 PDF 报告变成原生可编辑的 PPTX

PPT Master 完整指南&#xff1a;如何把一份 PDF 报告变成原生可编辑的 PPTX 【免费下载链接】ppt-master AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, aud…

作者头像 李华
网站建设 2026/10/20 21:40:19

DEIM 双模态(双 Backbone)架构:RGB + IR 双流融合检测

在红外-可见光双模态目标检测领域&#xff0c;当前主流落地算法大多基于YOLO系列卷积模型改造而来&#xff0c;虽能通过双分支拼接方式适配双模态输入&#xff0c;但相较于DEIMTransformer架构&#xff0c;YOLO存在难以逾越的结构性缺陷&#xff0c;极其不适配双模态特征的融合…

作者头像 李华