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

网络PPP协议802.11协议以太网协议IPV4协议在思科模拟器的实现

1)PPP协议

f0da631d88cb4d7b84b927ea9ffe82eb.png

1. 选择2620系列交换机,添加WIC-2t模块,具有两个serial串行接口;

28ebc3ee39c6475fa3d4a52e7760bcf5.png

2.Router>enable:进入特权模式

Router#configure terminal:全局配置模式

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#interface serial 0/0:进入0号串行接口

Router(config-if)#ip address 192.168.1.1 255.255.255.0:配置IP

Router(config-if)#clock rate 128000:设置0号串行接口作为DCE设备,向DTTE端提供速率为128000的时钟

Router(config-if)#encapsulation ppp:封装PPP协议;

Router(config-if)#shutdown:暂时停用端口,以便后续打开然后捕获报文

26ffa947ed5d4716b32e412fa4f4f2e5.png

3.另一个路由器配置

Enable

Router#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#interface serial 0/0

Router(config-if)#ip address 192.168.1.2 255.255.255.0

Router(config-if)#encapsulation ppp

Router(config-if)#shutdown

8dfe344f8b234fda83b877bc2808ce2a.png

输入 no shutdown启用端口;

(2)以太网协议分析:

e0497900758444eea718af2691ced77b.png

1.

Router>enable

Router#confi

Router#configure te

Router#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#inter

Router(config)#interface fa

Router(config)#interface fastEthernet 0/0

Router(config-if)#ip address 192.168.1.1 255.255.255.0

Router(config-if)#no shutdown

3ed05a00fc5040c0901c5c4acdc604ca.png

2.

Router>en

Router>enable

Router#configure

Router#configure te

Router#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#inter

Router(config)#interface fa

Router(config)#interface fastEthernet 0/0

Router(config-if)#ip address 192.168.1.2 255.255.255.0

Router(config-if)#no shutdown

b62358eec0ef49b29a1acafed61e4e10.png

2. 路由器之间使用ping命令测试连通性:

45d90ff69fe847d9a79d20f8f69016f4.png

(3)802.11协议分析:

1)在802.11无线协议标准中,定义了基本服务集BSS和拓展服务集ESS:

BSS基本服务集:由无线站及中心站组成;

(固定站)中心站称为access point接入点AP;没有AP的BSS称为自组织体系结构;具有AP的BSS称为基础结构网络;

Ess拓展服务集:由两个或多个具有多个接入点的BSS组成;BSS连接到一个DISTRIBUTION SYSTEM分配系统DS,分配系统连接网络的AP;

2)站类型分类:ess切换:可以从当前ESS移动到其他ESS;

bss切换:在一个ESS控制下的多个BSS范围内移动;

无切换:在一个BSS范围内移动或者固定不动;

3) MAC子层:

4) 定义两种子层:

5) 常用为在csma with collision avoidance带碰撞避免的载波侦听多点接入CSMA/CA的MAC子层:

6) 帧交换时序:10

7) 源站在发送帧之前,检查信道是否空闲,如果忙,使用带退避的坚持策略等待信道空闲,如果空闲则先等待DIFS分布帧间距distributed interframe space的时间,然后发送称为请求发送的请求帧RTS;目的站收到以后,等待SIFS短帧间距short interframe space,然后回送CTS允许发送的数据帧,源站收到后等待DIFS时间后发送数据,接收方收到后等待SIFS时间后后发送确认;

8) 网络分配矢量:802.11协议使用NAV网络分配矢量network allocaation vector解决碰撞问题;站点发送帧时,在帧中标识需要占用信道的时间,涉及站点需要创建一个定时器NAV,标识其他站检测信道是否空闲前必须等待时间;

在传送RTS或者CTS控制帧之前,通常称为握手期,发生了碰撞,如果没有收到CTS帧。认为发生了碰撞;

IP层协议

IPV4协议:

路由器2,3,5都安装WIC-2T模块,将其拖动到右边端口上;

05105325a2e74d06b8f3651ca4fcb6d3.png

网络结构如图所示:

16034d308c1643b5bc829edc9a94de9d.png

e082e09d0ded4a6d98d378b98e07752b.png

对路由器3:

Router>enable

Router#conf

Router#configure ter

Router#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#int

Router(config)#interface fa

Router(config)#interface fastEthernet 0/0

Router(config-if)#ip address 192.168.4.1 255.255.255.0

Router(config-if)#no shutdown

Router(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

Router(config-if)#exit

Router(config)#inter

Router(config)#interface se 0/0

Router(config-if)#ip address 192.168.1.1 255.255.255.0

Router(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial0/0, changed state to down

Router(config-if)#exit

Router(config)#interface se0/1

Router(config-if)#ip address 192.168.3.2 255.255.255.0

Router(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial0/1, changed state to down

Router(config-if)#exit

Router(config)#router rip

Router(config-router)#version 2

Router(config-router)#network 192.168.1.0

Router(config-router)#network 192.168.3.0

Router(config-router)#network 192.168.4.0

Router(config-router)#exit

Router(config)#exit

Router#

%SYS-5-CONFIG_I: Configured from console by console

write

Building configuration...

[OK]

Router#write

Building configuration...

[OK]

Router#

4c23b0bff29e44e5bf30c0a0e0a6ca8c.png

配置路由器2:

Router>enable

Router#con

Router#conf

Router#configure ter

Router#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#interface se0/0

Router(config-if)#ip address 192.168.2.1 255.255.255.0

Router(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial0/0, changed state to down

Router(config-if)#exit

Router(config)#intterface se0/1

^

% Invalid input detected at '^' marker.

Router(config)#interface se0/1

Router(config-if)#ip address 192.168.1.2 255.255.255.0

Router(config-if)#no shutdown

Router(config-if)#

%LINK-5-CHANGED: Interface Serial0/1, changed state to up

Router(config-if)#exit

Router(config)#

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to up

Router(config)#router rip

Router(config-router)#version 2

Router(config-router)#network 192.168.1.0

Router(config-router)#network 192.168.2.0

Router(config-router)#exit

0f898669912b495ea29f81546c519a82.png

配置路由器5:

Router>enable

Router#confi

Router#configure ter

Router#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#interface se0/1

Router(config-if)#ip address 192.168.3.1

% Incomplete command.

Router(config-if)#ip address 192.168.3.1 255.255.255.0

Router(config-if)#no shutdown

Router(config-if)#

%LINK-5-CHANGED: Interface Serial0/1, changed state to up

Router(config-if)#exit

Router(config)#i

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to up

Router(config)#interface se0/0

Router(config-if)#ip address 192.168.2.2 255.255.255.0

Router(config-if)#no shutdown

Router(config-if)#

%LINK-5-CHANGED: Interface Serial0/0, changed state to up

Router(config-if)#exit

Router(config)#

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

i

% Ambiguous command: "i"

Router(config)#interface fa0/0

Router(config-if)#ip address 192.168.5.1 255.255.255.0

Router(config-if)#no shutdown

Router(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

Router(config-if)#exit

Router(config)#router rip

Router(config-router)#version 2

Router(config-router)#network 192.168.2.0

Router(config-router)#network 192.168.3.0

Router(config-router)#network 192.168.5.0

7cbe347c1df944e790eb7b2720f21f37.png

配置路由器4

Router>enable

Router#conf

Router#configure ter

Router#configure terminal

Router(config)#interface fastEthernet 0/0

Router(config-if)#ip address 192.168.4.2 255.255.255.0

Router(config-if)#no shutdown

Router(config-if)#exit

Router(config)#ip default-gateway 192.168.4.1

配置路由器6

Router>enable

Router#con

Router#conf

Router#configure ter

Router#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#inter

Router(config)#interface fa

Router(config)#interface fastEthernet 0/0

Router(config-if)#ip address 192.168.5.2 255.255.255.0

Router(config-if)#no shutdown

Router(config)#ip default-gateway 192.168.4.1

 

 


http://www.kler.cn/news/318491.html

相关文章:

  • 深度学习(5):逻辑斯蒂回归Logistic
  • 深度学习(2):梯度下降
  • Windows系统使用PHPStudy搭建Cloudreve私有云盘公网环境远程访问
  • OTTO奥托机器人开发总结
  • 2024java高频面试-数据库相关
  • 将python代码文件转成Cython 编译问题集
  • python中实用工具与自动化脚本
  • typename、非类型模板参数、模板参数的特化、模板类成员函数声明和定义分离、继承等的介绍
  • 滚雪球学SpringCloud[6.3讲]: 分布式日志管理与分析
  • 常见统计量与其抽样分布
  • python异步处理
  • [SDX35+WCN6856]SDX35 + WCN6856 WiFi 起来之后,使用终端连接会导致系统重启
  • dotnet4.0编译问题
  • 【系统架构设计师】专题:系统质量属性和架构评估
  • 康养为松,智能为鹤:华为全屋智能画出的松鹤长春图
  • 2024.9.24 数据分析
  • 努比亚z17努比亚NX563j原厂固件卡刷包下载_刷机ROM固件包下载-原厂ROM固件-安卓刷机固件网
  • 智慧城市主要运营模式分析
  • [附源码]宠物领养管理系统+SpringBoot
  • css实现居中的方法
  • C++ prime plus-4-编程练习
  • vue echarts tooltip使用动态模板
  • Web3技术在元宇宙中的应用:从区块链到智能合约
  • 搜维尔科技:手指舞测试Manus VR数据手套手指追踪功能
  • HtmlCss 基础总结(基础好了才是最能打的)五
  • 代码随想录算法训练营第二十八天| 122.买卖股票的最佳时机 II、55. 跳跃游戏、45.跳跃游戏 II、1005.K次取反后最大化的数组和
  • 线程知识点补充
  • uniapp map设置高度为100%后,会拉伸父容器的高度
  • 练习题 - Django 4.x Models Meta 元数据选项
  • C++类和对象(中)【下篇】