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

相关推荐
zzzzzz3105 天前
9K Star 炸裂开源!这个 C 语言写的代码知识图谱,把 Linux 内核索引压缩到了 3 分钟
linux·服务器·sql
大树889 天前
金刚石散热越强,管路越先见顶
大数据·运维·服务器·人工智能·ai
小宇宙Zz9 天前
Maven依赖冲突
java·服务器·maven
网络研究院9 天前
2026年网络安全
网络·安全·法律·法规·趋势·发展
酣大智9 天前
ARP代理--工作原理
运维·网络·arp·arp代理
treesforest9 天前
AI安全系统如何识别异常访问?IP风险识别正在成为关键能力
网络·人工智能·tcp/ip·安全·web安全
shushangyun_9 天前
2026年快消品B2B系统推荐:支持终端门店订货、促销政策自动化的工具?
java·运维·网络·数据库·人工智能·spring·自动化
古城小栈9 天前
Unix 与 Linux 异同小叙
linux·服务器·unix
2601_961845159 天前
粉笔行测题库|系统班|刷题
网络·百度·微信·微信公众平台·facebook·新浪微博
程序猿阿伟9 天前
《Chrome离线扩展安装的底层逻辑与场景落地指南》
服务器·网络·chrome