网络类型相关实验

网络类型相关实验

在这里插入图片描述
拓扑搭建和IP地址规划如下
在这里插入图片描述
R1与R5间使用ppp的pap认证,R5为主认证方;

[r5]aaa                 主认证方
[r5-aaa]local-user huawei password cipher huawei
[r5-aaa]local-user huawei se	
[r5-aaa]local-user huawei service-type ppp
[r5-aaa]q	
[r5]int Serial 3/0/0	
[r5-Serial3/0/0]link-protocol ppp
[r5-Serial3/0/0]ppp a	
[r5-Serial3/0/0]ppp authentication-mode pap
[r5-Serial3/0/0]ip add 15.1.1.2 24
[r1]int s3/0/0	 	     被认证方
[r1-Serial3/0/0]link-protocol ppp 
[r1-Serial3/0/0]ppp pap l		
[r1-Serial3/0/0]ppp pap local-user huawei password cipher huawei

R2与R5间使用ppp的chap认证,R5为主认证方;

[r5]aaa	                 主认证方
[r5-aaa]local-user huawei password cipher huawei
[r5-aaa]local-user huawei s	
[r5-aaa]local-user huawei service-type ppp
[r5-aaa]int s4/0/0	
[r5-Serial4/0/0]link-protocol ppp
[r5-Serial4/0/0]ppp au	
[r5-Serial4/0/0]ppp authentication-mode chap
[r2]int s4/0/0           被认证方
[r2-Serial4/0/0]link-protocol ppp
[r2-Serial4/0/0]ppp chap us	
[r2-Serial4/0/0]ppp chap user huawei
[r2-Serial4/0/0]ppp chap password ci      	
[r2-Serial4/0/0]ppp chap password cipher huawei


R3与R5间使用HDLC封装

[r5]int s2/0/0
[r5-Serial2/0/0]lin	
[r5-Serial2/0/0]link-protocol hdlc
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
Jul  7 2021 21:28:40-08:00 r5 %%01IFNET/4/CHANGE_ENCAP(l)[0]:The user performed 
the configuration that will change the encapsulation protocol of the link and th
en selected Y. 

3.R1/2/3构建一个MGRE环境,R1为中心站点;

                     中心站点
[r1]int Tunnel 0/0/0
[r1-Tunnel0/0/0]ip add 10.1.1.1 24
[r1-Tunnel0/0/0]tu	
[r1-Tunnel0/0/0]tunnel-protocol gre	
[r1-Tunnel0/0/0]tunnel-protocol gre p2	
[r1-Tunnel0/0/0]tunnel-protocol gre p2mp 
[r1-Tunnel0/0/0]sou	
[r1-Tunnel0/0/0]source 15.1.1.1 
Jul  7 2021 21:56:16-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
                     r1分支    
[r1-Tunnel0/0/0]nhrp	
[r1-Tunnel0/0/0]nhrp ent	
[r1-Tunnel0/0/0]nhrp entry mu	
[r1-Tunnel0/0/0]nhrp entry multicast d	
[r1-Tunnel0/0/0]nhrp entry multicast dynamic 
[r1-Tunnel0/0/0]nh	
[r1-Tunnel0/0/0]nhrp net	
[r1-Tunnel0/0/0]nhrp network-id 100
                     r2分支
[r2]int Tunnel 0/0/0
[r2-Tunnel0/0/0]ip add 10.1.1.2 24
[r2-Tunnel0/0/0]tu	
[r2-Tunnel0/0/0]tunnel-protocol gre	
[r2-Tunnel0/0/0]tunnel-protocol gre p2	
[r2-Tunnel0/0/0]tunnel-protocol gre p2mp 
[r2-Tunnel0/0/0]sou	
[r2-Tunnel0/0/0]source s3/0/0
[r2-Tunnel0/0/0]nh	
[r2-Tunnel0/0/0]nhrp ne	
[r2-Tunnel0/0/0]nhrp network-id 100	
[r2-Tunnel0/0/0]nh	
[r2-Tunnel0/0/0]nhrp en	
[r2-Tunnel0/0/0]nhrp entry 10.1.1.1 15.1.1.1
                    r3分支
[r3]int Tunnel 0/0/0
[r3-Tunnel0/0/0]ip add 10.1.1.3 24	
[r3-Tunnel0/0/0]tu	
[r3-Tunnel0/0/0]tunnel-protocol gre	
[r3-Tunnel0/0/0]tunnel-protocol gre p2	
[r3-Tunnel0/0/0]tunnel-protocol gre p2mp  
[r3-Tunnel0/0/0]sou	
[r3-Tunnel0/0/0]source s3/0/0
[r3-Tunnel0/0/0]nh	
[r3-Tunnel0/0/0]nhrp ne	
[r3-Tunnel0/0/0]nhrp network-id 100
[r3-Tunnel0/0/0]nhr	
[r3-Tunnel0/0/0]nhrp en	
[r3-Tunnel0/0/0]nhrp entry 10.1.1.1 15.1.1.1

R1/4间为点到点GRE

[r1]int tu	
[r1]int Tunnel 0/0/0
[r1-Tunnel0/0/0]tu	
[r1-Tunnel0/0/0]tunnel-protocol gr	
[r1-Tunnel0/0/0]tunnel-protocol gre 
Jul  7 2021 22:06:24-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the DOWN state. 
[r1-Tunnel0/0/0]sou	
[r1-Tunnel0/0/0]source 15.1.1.1
[r1-Tunnel0/0/0]de	
[r1-Tunnel0/0/0]description 45.1.1.1 
[r4]int tu	
[r4]int Tunnel 0/0/0
[r4-Tunnel0/0/0]t	
[r4-Tunnel0/0/0]tu	
[r4-Tunnel0/0/0]tunnel-protocol gre
[r4-Tunnel0/0/0]sous	
[r4-Tunnel0/0/0]sou	
[r4-Tunnel0/0/0]source 45.1.1.1
[r4-Tunnel0/0/0]de	
[r4-Tunnel0/0/0]description 15.1.1.1

整个私有网络基于RIP全网可达
做端口映射使可以访问r5环回

[r1]ip rou	
[r1]ip route-static 0.0.0.0 0 15.1.1.2
[r1]int s3/0/0
[r1-Serial3/0/
[r1-Serial3/0/0]nat static g	
[r1-Serial3/0/0]nat static global 15.1.1.2 ins	
[r1-Serial3/0/0]nat static global 15.1.1.2 inside 192.168.1.2

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值