html5 wap网站模板,温州网站开发公司,网站设计技术有哪些?,学校网站怎么做的好处概述#xff1a;PPP模式#xff0c;即公私合作模式#xff08;Public-Private Partnership#xff09;#xff0c;是一种公共部门与私营部门合作的模式。
一、实验拓扑 实验一#xff1a;PPP基本功能
实验步骤#xff1a;
#xff08;1#xff09;配置AR1的接口IP地…概述PPP模式即公私合作模式Public-Private Partnership是一种公共部门与私营部门合作的模式。
一、实验拓扑 实验一PPP基本功能
实验步骤
1配置AR1的接口IP地址并配置PPP协议命令如下
Huaweisystem-view [Huawei]undo info-center enable [Huawei]sysname AR1 [AR1]interface s4/0/0 [AR1-Serial4/0/0]link-protocol ppp //将链路层协议封装为PPP [AR1-Serial4/0/0]ip address 10.0.12.1 24 [AR1-Serial4/0/0]quit 2配置全局地址池命令如下
[AR1]ip pool 1 //创建地址池编号为1 [AR1-ip-pool-1]network 10.0.12.0 mask 24 //设置地址和子网掩码 [AR1-ip-pool-1]gateway-list 10.0.12.1 //网关为10.0.12.1 [AR1-ip-pool-1]quit
3配置为客户端指定的地址池命令如下 [AR1-Serial4/0/0]remote address pool 1
4在AR2配置接口Serial4/0/0的链路层协议和IP地址的可协商属性命令如下
Huaweisystem-view [Huawei]sysname AR2 [AR2]interface s4/0/0 [AR2-Serial4/0/0]link-protocol ppp [AR2-Serial4/0/0]ip address ppp-negotiate //通过PPP协商的方式获取IP地址
5查看接口是否获取IP地址命令如下
[AR2-Serial4/0/0]display ip interface brief *down: administratively down ^down: standby (l): loopback (s): spoofing The number of interface that is UP in Physical is 2 The number of interface that is DOWN in Physical is 4 The number of interface that is UP in Protocol is 2 The number of interface that is DOWN in Protocol is 4
Interface IP Address/Mask Physical Protocol GigabitEthernet0/0/0 unassigned down down GigabitEthernet0/0/1 unassigned down down GigabitEthernet0/0/2 unassigned down down NULL0 unassigned up up(s) Serial4/0/0 10.0.12.254/32 up up Serial4/0/1 unassigned down down 实验二PAP认证
实验二拓扑 实验步骤
1配置AR1的接口IP地址命令如下
Huaweisystem-view [Huawei]undo info-center enable [Huawei]sysname AR1 [AR1]interface s4/0/0 [AR1-Serial4/0/0]link-protocol ppp [AR1-Serial4/0/0]ip address 10.0.12.1 24 [AR1-Serial4/0/0]quit 2配置认证用户密码命令如下
[AR1]aaa [AR1-aaa]local-user huawei password cipher huawei //配置认证时使用的用户密码 [AR1-aaa]local-user huawei service-type ppp //将用户名为huawei的服务类型改为PPP
3在接口配置认证模式为PAP认证命令如下 [AR1]interface s4/0/0 [AR1-Serial4/0/0]ppp authentication-mode pap
4配置AR2的接口IP地址命令如下
Huaweisystem-view [Huawei]undo info-center enable [Huawei]sysname AR2 [AR2]interface s4/0/0 [AR2-Serial4/0/0]link-protocol ppp [AR2-Serial4/0/0]ip address 10.0.12.2 24 [AR2-Serial4/0/0]quit 5在AR2的接口配置认证用户名及密码命令如下
[AR2]interface s4/0/0 [AR2-Serial4/0/0]ppp pap local-user huawei password cipher huawei
6在AR2设备上查看接口状态命令如下
AR2display interface Serial4/0/0 Serial4/0/0 current state : UP Line protocol current state : DOWN Description:HUAWEI, AR Series, Serial4/0/0 Interface Route Port,The Maximum Transmit Unit is 1500, Hold timer is 10(sec) Internet protocol processing : disabled Link layer protocol is PPP LCP stopped Last physical up time : 2024-09-18 19:38:19 UTC-08:00 Last physical down time : 2024-09-18 19:38:09 UTC-08:00 Current system time: 2024-09-18 19:41:44-08:00 Physical layer is synchronous, Virtualbaudrate is 64000 bps Interface is DTE, Cable type is V11, Clock mode is TC Last 300 seconds input rate 3 bytes/sec 24 bits/sec 0 packets/sec Last 300 seconds output rate 1 bytes/sec 8 bits/sec 0 packets/sec
Input: 28 packets, 1022 bytes Broadcast: 0, Multicast: 0 Errors: 0, Runts: 0 Giants: 0, CRC: 0 Alignments: 0, Overruns: 0 Dribbles: 0, Aborts: 0 No Buffers: 0, Frame Error: 0
Output: 28 packets, 392 bytes Total Error: 0, Overruns: 0 Collisions: 0, Deferred: 0 Input bandwidth utilization : 0% Output bandwidth utilization : 0%
通过以上输出结果可以发现LCP和IPCP的状态为opened并且物理状态和协议状态都为UP。 实验三CHAP的认证
实验拓扑 实验步骤1配置AR1的接口IP地址命令如下
Huaweisystem-view [Huawei]undo info-center enable [Huawei]sysname s4/0/0 [s4/0/0]sysname AR1 [AR1]interface s4/0/0 [AR1-Serial4/0/0]link-protocol ppp [AR1-Serial4/0/0]ip address 10.0.12.1 24 [AR1-Serial4/0/0]quit 2配置AR2的接口IP地址命令如下
Huaweisystem-view [Huawei]undo info-center enable [Huawei]sysname AR2 [AR2]interface s4/0/0 [AR2-Serial4/0/0]ip address 10.0.12.2 24 [AR2-Serial4/0/0]link-protocol ppp [AR2-Serial4/0/0]quit 3在认证方AR1上配置用户名和密码用户被认证方用户的登录命令如下
[AR1]aaa [AR1-aaa]local-user huawei password cipher huawei [AR1-aaa]local-user huawei service-type ppp [AR1-aaa]quit 4在认证方接口配置PPP的认证模式为CHAP认证命令如下
[AR1]interface s4/0/0 [AR1-Serial4/0/0]ppp authentication-mode chap 5在被认证方接口配置CHAP认证的用户名和密码命令如下
[AR2]interface s4/0/0 [AR2-Serial4/0/0]ppp chap user huawei [AR2-Serial4/0/0]ppp chap password cipher huawei 6在AR2设备上查看接口状态命令如下
[AR2]display interface s4/0/0 Serial4/0/0 current state : UP Line protocol current state : UP Last line protocol up time : 2024-09-21 16:05:09 UTC-08:00 Description:HUAWEI, AR Series, Serial4/0/0 Interface Route Port,The Maximum Transmit Unit is 1500, Hold timer is 10(sec) Internet Address is 10.0.12.2/24 Link layer protocol is PPP LCP opened, IPCP opened Last physical up time : 2024-09-21 16:05:06 UTC-08:00 Last physical down time : 2024-09-21 16:05:02 UTC-08:00 Current system time: 2024-09-21 16:23:32-08:00 Physical layer is synchronous, Virtualbaudrate is 64000 bps Interface is DTE, Cable type is V11, Clock mode is TC Last 300 seconds input rate 6 bytes/sec 48 bits/sec 0 packets/sec Last 300 seconds output rate 2 bytes/sec 16 bits/sec 0 packets/sec
Input: 224 packets, 7184 bytes Broadcast: 0, Multicast: 0 Errors: 0, Runts: 0 Giants: 0, CRC: 0 Alignments: 0, Overruns: 0 Dribbles: 0, Aborts: 0 No Buffers: 0, Frame Error: 0
Output: 225 packets, 2722 bytes Total Error: 0, Overruns: 0 Collisions: 0, Deferred: 0 Input bandwidth utilization : 0% Output bandwidth utilization : 0% ---- More ----
总结:
PPP的配置实验通过模拟实际操作加深了对PPP协议工作原理、子网划分和静态路由配置的理解并验证了其在网络通信中的应用效果。以下是具体介绍
实验目的 掌握基本配置使学生掌握PPP帧的结构理解PPP帧格式中每个字段的含义并了解PPP协议中数据实际传送状况。理解工作机制通过实验学生能够理解PPP协议在点对点连接中的工作过程包括链路建立、身份验证和数据传输。实验步骤 创建实验拓扑使用华为eNSP软件或其他模拟器创建包含两台路由器的网络拓扑并配置同异步WAN接口卡。配置路由器接口为每台路由器的串口配置PPP协议设置IP地址并启用PAP或CHAP认证。验证网络连通性通过ping命令测试两台路由器之间的网络连通性确保PPP连接正常工作。实验结果 成功建立连接实验结果表明通过正确配置PPP协议和认证方式可以在两台路由器之间成功建立点对点连接。抓包分析使用Wireshark等抓包工具可以观察到PPP连接过程中的数据包交换情况进一步理解PPP协议的工作机制。实验总结 深化理解通过实验学生不仅掌握了PPP协议的基本配置方法还深入了解了其在不同场景下的应用如同步/异步专线、拨号链路等。实践能力提升实验过程中的操作练习提高了学生的动手能力和解决实际问题的能力为未来从事网络相关工作打下了坚实基础。