IP 2024.8.7

r1int g0/0/1

r1-GigabitEthernet0/0/1ip add 192.168.1.1 24

r1int s4/0/0

r1-Serial4/0/0ip add 14.1.1.1 24

r4int l0

r4-LoopBack0ip add 4.4.4.4 24

r4int s3/0/0

r4-Serial3/0/0ip add 14.1.1.2 24

r4-Serial3/0/0link-protocol hdlc

Warning: The encapsulation protocol of the link will be changed. Continue? Y/N

:y

r4int s3/0/1

r4-Serial3/0/1ip add 24.1.1.2 24

r4-Serial3/0/1ppp authentication-mode pap

r4aaa

r4-aaalocal-user a password cipher 123456

r4-aaalocal-user a service-type ppp

r4-aaalocal-user b password cipher 654321

r4-aaalocal-user b service-type ppp

r4int s3/0/0

r4-Serial3/0/0shutdown

r4-Serial3/0/0undo shutdown

r4int s4/0/0

r4-Serial4/0/0ip add 34.1.1.2 24

r4-Serial4/0/0ppp

r4-Serial4/0/0ppp authentication-mode chap

r4-Serial4/0/0shutdown

r4-Serial4/0/0undo shutdown

r1int s4/0/0

r1-Serial4/0/0link-protocol hdlc

Warning: The encapsulation protocol of the link will be changed. Continue? Y/N

:y

r2int g0/0/1

r2-GigabitEthernet0/0/1ip add 192.168.2.1 24

r2int s4/0/0

r2-Serial4/0/0ip add 24.1.1.1 24

r2-Serial4/0/0ppp pap local-user a password cipher 123456

r3int g0/0/1

r3-GigabitEthernet0/0/1ip add 192.168.3.1 24

r3int s4/0/0

r3-Serial4/0/0ip add 34.1.1.1 24

r3-Serial4/0/0ppp chap user b

r3-Serial4/0/0ppp chap password cipher 654321

要求1-4搞定了

r1ip route-static 0.0.0.0 0 14.1.1.2

r2ip route-static 0.0.0.0 0 24.1.1.2

r3ip route-static 0.0.0.0 0 34.1.1.2

r1int Tunnel 0/0/0

r1-Tunnel0/0/0ip add 192.168.4.1 24

r1-Tunnel0/0/0tunnel-protocol gre p2mp

r1-Tunnel0/0/0source 14.1.1.1

r1-Tunnel0/0/0nhrp entry multicast dynamic

r1-Tunnel0/0/0nhrp network-id 100

r2int Tunnel 0/0/0

r2-Tunnel0/0/0ip add 192.168.4.2 24

r2-Tunnel0/0/0tunnel-protocol gre p2mp

r2-Tunnel0/0/0source Serial 4/0/0

r2-Tunnel0/0/0nhrp entry 192.168.4.1 14.1.1.1 register

r3int Tunnel 0/0/0

r3-Tunnel0/0/0ip add 192.168.4.3 24

r3-Tunnel0/0/0tunnel-protocol gre p2mp

r3-Tunnel0/0/0source s4/0/0

r3-Tunnel0/0/0nhrp entry 192.168.4.1 14.1.1.1 register

r1rip 1

r1-rip-1ver 2

r1-rip-1network 192.168.1.0

r1-rip-1network 192.168.4.0

r2rip 1

r2-rip-1version 2

r2-rip-1network 192.168.4.0

r2-rip-1network 192.168.2.0

r3rip 1

r3-rip-1version 2

r3-rip-1network 192.168.4.0

r3-rip-1network 192.168.3.0

r1int Tunnel 0/0/0

r1-Tunnel0/0/0undo rip split-horizon (关闭这个口的水平分割)

r1acl 2000

r1-acl-basic-2000rule permit source 192.168.1.0 0.0.0.255

r1int s4/0/0

r1-Serial4/0/0nat outbound 2000

相关推荐
为思念酝酿的痛1 小时前
POSIX信号量
linux·运维·服务器·后端
ylscode1 小时前
PureLogs 信息窃取恶意软件惊现高危变种:借道 MsBuild.exe 进程空心化实施无痕攻击
网络·安全·安全威胁分析
IPHWT 零软网络1 小时前
MX60E-A信创级智能语音网关技术实现与架构分析
网络·网络安全·国产自研·技术实现·智能语音网关·政企通信·信创技术
隔窗听雨眠2 小时前
Nginx网关响应慢排查手记
java·服务器·nginx
IT大白鼠2 小时前
RSTP协议原理与配置详解:快速生成树技术的深度解析
网络·网络协议
人还是要有梦想的2 小时前
linux下用搜狗输入法,中英文切换
linux·运维·服务器
9分钟带帽2 小时前
linux_通过NFS挂载远程服务器的硬盘
linux·服务器
C+++Python3 小时前
BIO、NIO、AIO 区别
网络·nio
VOOHU-沃虎4 小时前
沃虎——网络变压器与RJ45集成连接器选型实战:从百兆到10G、从非PoE到4PPoE
网络
2301_773643624 小时前
华为云存储实验
网络·mysql·华为云