暑假第一次作业

ops/2024/10/18 14:18:26/

第一步:给R1,R2,R3,R4配IP

[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 24

[R1-Serial4/0/0]ip address 15.0.0.1 24

[R2-GigabitEthernet0/0/0]ip address 192.168.2.1 24

[R2-Serial4/0/0]ip address 25.0.0.1 24

[R3-GigabitEthernet0/0/0]ip address 192.168.3.1 24

[R3-Serial4/0/0]ip address 35.0.0.1 24

[R4-GigabitEthernet0/0/0]ip address 192.168.4.1 24

第二步:认证配置

给R1和R5间使用PPP的PAP认证;

ISP设密码

[ISP-aaa]local-user huawei password cipher 123456

定义服务对象:

[ISP-aaa]local-user huawei service-type ppp

[ISP-Serial3/0/0]ppp authentication-mode pap、

重新协商链路:

[R1-Serial4/0/0]shutdown 

[R1-Serial4/0/0]undo shutdown 

协议层面(protocol)是down就密码和账号就建立成功了

s 40/0/0认证成功

补全认证

[R1-Serial4/0/0]ppp pap local-user huawei password cipher 12345

[R1-Serial4/0/0]shutdown

[R1-Serial4/0/0]undo shutdown

s 4/0/0 都up,认证成功。

 R2与R5之间使用PPP的chap认证,R5为主认证方:

[R2-Serial4/0/0]ppp chap user huawei          创建账号

[R2-Serial4/0/0]ppp chap password cipher 123456   设密码

[R1-Serial4/0/0]shutdown

[R1-Serial4/0/0]undo shutdown     认证

都up,认证成功

R3与R5之间使用HDLC封装

[ISP-Serial4/0/0]link-protocol hdlc

 

第三步:构建MGRE环境 

配置静态路由

[R1]ip route-static 0.0.0.0 0 15.0.0.2

[R2]ip route-static 0.0.0.0 0 25.0.0.2

[R3]ip route-static 0.0.0.0 0 35.0.0.2

[R4]ip route-static 0.0.0.0 0 45.0.0.2 

建立隧道

[R1]int t0/0/0
[R1-Tunnel0/0/0]ip address 192.168.5.1 24
[R1-Tunnel0/0/0]tunnel-protocol gre p2mp 

[R1-Tunnel0/0/0]shutdown 

[R1-Tunnel0/0/0]source 15.0.0.1
[R1-Tunnel0/0/0]nhrp network-id 100

[R2]int t0/0/0
[R2-Tunnel0/0/0]ip address 192.168.5.2 24
[R2-Tunnel0/0/0]tunnel-protocol gre p2mp 

[R2-Tunnel0/0/0]shutdown 

[R2-Tunnel0/0/0]source s4/0/0
[R2-Tunnel0/0/0]nhrp network-id 100

[R2-Tunnel0/0/0]nhrp entry 192.168.5.1 15.0.0.1 register 

[R3]int t0/0/0
[R3-Tunnel0/0/0]ip address 192.168.5.3 24
[R3-Tunnel0/0/0]tunnel-protocol gre p2mp 
[R3-Tunnel0/0/0]shutdown 
[R3-Tunnel0/0/0]source s4/0/0
[R3-Tunnel0/0/0]nhrp network-id 100 
[R3-Tunnel0/0/0]nhrp entry 192.168.5.1 15.0.0.1 register 


[R1-Tunnel0/0/0]int t0/0/1
[R1-Tunnel0/0/1]ip address 192.168.6.1 24 
[R1-Tunnel0/0/1]tunnel-protocol gre 
[R1-Tunnel0/0/1]shutdown 
[R1-Tunnel0/0/1]source 15.0.0.1
[R1-Tunnel0/0/1]description 45.0.0.1



[R4]int t0/0/0
[R4-Tunnel0/0/0]ip address 192.168.6.2 24
[R4-Tunnel0/0/0]tunnel-protocol gre 
[R4-Tunnel0/0/0]shutdown 
[R4-Tunnel0/0/0]source 45.0.0.1    
[R4-Tunnel0/0/0]description 15.0.0.1

 第四步:rip全网可达

[R1]rip
[R1-rip-1]version 2
[R1-rip-1]ne 192.168.1.0
[R1-rip-1]ne 192.168.5.0
[R1-rip-1]ne 192.168.6.0
 

[R2]rip
[R2-rip-1]version 2
[R2-rip-1]network 192.168.5.0
[R2-rip-1]network 192.168.2.0

[R3]rip 
[R3-rip-1]verify-source
[R3-rip-1]version 2
[R3-rip-1]network 192.168.3.0
[R3-rip-1]network 192.168.5.0

[R4]rip      
[R4-rip-1]version 2
[R4-rip-1]network 192.168.4.0

[R1-Tunnel0/0/0]nhrp entry multicast dynamic 
[R1-Tunnel0/0/0]undo rip split-horizon 

第五步:可访问R5环回 

[R1]acl 2000
[R1-acl-basic-2000]rule 5 permit source 192.168.1.0 0.0.0.255

[R1]int s4/0/0
[R1-Serial4/0/0]nat out    
[R1-Serial4/0/0]nat outbound 2000


http://www.ppmy.cn/ops/56648.html

相关文章

做支付行业这些支付方式你需要知道!

网络支付:是指依托公共网络或专用网络在收付款人之间转移货币资金的行为,包括货币汇兑、互联网支付、移动电话支付、固定电话支付数字电视支付等。(非金融机构支付服务管理办法) 网络支付机构:是指从事《非金融机构支付服务管理办法》规定的…

gltf模型加载 与3d背景贴图

Poly Haveny 用于3d模型跟贴图下载资源 Sketchfab 里面有免费的模型 模型放到public里面 const loader new GLTFLoader()// 加载GLTF模型loader.load(/scene.gltf,(gltf) > {// 将加载的模型添加到场景中scene.add(gltf.scene)// 现在你可以开始渲染循环了let angle …

微服务-初级篇

微服务-初级篇 认识微服务1.1 单体架构1.2 分布式架构1.3 微服务 SpringCloud2.1 了解2.2 服务拆分原则2.3 服务拆分效果 Nacos注册中心3.1 认识和安装Nacos3.1.1 Nacos下载3.1.2 Nacos安装 3.2 服务注册到Nacos Feign远程调用4.1 Feign引入4.2 Feign配置 认识微服务 1.1 单体…

文本到图像的革新:自动化Prompt优化的UF-FGTG框架

在文本到图像合成领域,已经能够由文本描述直接生成图像。然而,尽管这一技术带来了无限的可能性,它仍然面临着一个关键挑战:如何设计出能够引导模型生成高质量图像的提示(prompts)。尤其是对于初学者而言&am…

C#基于事件的异步模式实现实例

1、异步操作类 using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.Remoting.Messaging; using System.Text; using System.Threading; using System.Threading.Tasks; using static System.Windows.For…

基于ssm的图书管理系统的设计与实现

摘 要 在当今信息技术日新月异的时代背景下,图书管理领域正经历着深刻的变革,传统的管理模式已难以适应现代社会的快节奏和高要求,逐渐向数字化、智能化的方向演进。本论文聚焦于这一转变趋势,致力于设计并成功实现一个基于 SSM&…

C语言从头学31——与字符串变量相关的几个函数

strlen、strcpy、strcat、strcmp、sprintf这些函数都是与字符串相关的,除了sprintf是定义在stdio.h中外,其余几个都定义在string.h中,比较新的编译器版本stdio.h中已经含有string.h的内容,所以编程时不需要再包含string.h这个头文…

Java项目中,常用的SQL语句

常用的命令: 1.数据的增删改查 1.插入数据(进行注册) 语法 1: --第一种: INSERT INTO 表名(列名 1,列名 2, …) ; insert into tablename(member1,member3) valuse(,); --第二种: INSERT INTO 表名 VALUES(值 1,值 …