HCIP综合实验

本文详细描述了五个路由器(R1至R5)的配置过程,包括IP地址设置、缺省路由配置、PPP认证、隧道协议选择、NAT设置以及RIP路由协议的部署,涉及HDLC封装和AAA认证管理。
摘要由CSDN通过智能技术生成

各个路由器配置

R1

配置IP

[R1-GigabitEthernet0/0/0]ip add 192.168.1.2 24

[R1-Serial4/0/0]ip add 15.1.1.1 24

配置缺省

[R1]ip route-static 0.0.0.0 0 15.1.1.2

接受认证

[R1-Serial4/0/1]ppp pap local-user tao password cipher tao

配置隧道地址

[R1-Tunnel0/0/0]ip add 10.1.2.1 24

选择协议

[R1-Tunnel0/0/0]tunnel-protocol gre p2mp 

封装接口

[R1-Tunnel0/0/0]source Serial 4/0/0

加入100域

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

实现RIP全网可达

[r1]int t 0/0/0
[r1-Tunnel0/0/0]nhrp entry multicast dynamic 
[r1-Tunnel0/0/0]q
[r1]rip
[r1-rip-1]v 2
[r1-rip-1]undo summary 
[r1-rip-1]network 192.168.1.0
[r1-rip-1]network 10.0.0.0
[r1-rip-1]q
[r1]int t 0/0/0
[r1-Tunnel0/0/0]undo rip split-horizon 

配置NAT

[r1]acl 2000

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

[r1]int s 4/0/0

[r1-Serial4/0/0]nat outbound 200

R2

配置IP

[R2-GigabitEthernet0/0/0]ip add 192.168.2.2 24

[R2-Serial4/0/0]ip add 25.1.1.2 24

配置缺省

[R2]ip route-static 0.0.0.0 0 25.1.1.1

接受认证

[R2-Serial4/0/0]ppp chap user xun

[R2-Serial4/0/0]ppp chap password cipher xun

配置隧道地址

[R2-Tunnel0/0/0]ip add 10.1.2.2 24

选择协议

[R2-Tunnel0/0/0]tunnel-protocol gre p2mp 

封装接口

[R2-Tunnel0/0/0]source Serial 4/0/0

加入100域

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

实现RIP全网可达

[r2]rip

[r2-rip-1]v 2

[r2-rip-1]undo summary

[r2-rip-1]network 192.168.2.0

[r2-rip-1]network 10.0.0.0

配置NAT

[r2]acl 2000
[r2-acl-basic-2000]rule permit source 192.168.2.0 0.0.0.255
[r2]int s 4/0/0
[r2-Serial4/0/0]nat outbound 2000

R3

配置IP

[R3-GigabitEthernet0/0/0]ip add 192.168.3.2 24

[R3-Serial4/0/0]ip add 35.1.1.2 24

配置缺省

[R3]ip route-static 0.0.0.0 0 35.1.1.1

进行HDLC封装

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

配置隧道地址

[R3-Tunnel0/0/0]ip add 10.1.2.3 24

选择协议

[R3-Tunnel0/0/0]tunnel-protocol gre p2mp 

封装接口

[R3-Tunnel0/0/0]source Serial 4/0/0

加入100域

[R3-Tunnel0/0/0]nhrp network-id 100

实现RIP全网可达

[r3]rip

[r3-rip-1]v 2

[r3-rip-1]undo summary

[r3-rip-1]network 192.168.3.0

[r3-rip-1]network 10.0.0.0

配置NAT

[r3]acl 2000
[r3-acl-basic-2000]rule permit source 192.168.3.0 0.0.0.255
[r3]int s 4/0/0
[r3-Serial4/0/0]nat outbound 2000

R4

配置IP

[R4-GigabitEthernet0/0/1]ip add 192.168.4.2 24

[R4-GigabitEthernet0/0/0]ip add 45.1.1.2 24

配置缺省

[R4]ip route-static 0.0.0.0 0 45.1.1.1

配置隧道地址

[r4]int t 0/0/1
[r4-Tunnel0/0/1]ip add 10.1.1.4 24
[r4-Tunnel0/0/1]tunnel-protocol gre 
[r4-Tunnel0/0/1]source 45.1.1.4
[r4-Tunnel0/0/1]destination 15.1.1.1

实现RIP全网可达

[r4]rip

[r4-rip-1]v 2

[r4-rip-1]undo summary

[r4-rip-1]network 192.168.4.0

[r4-rip-1]network 10.0.0.0

配置NAT

[r4]acl 2000
[r4-acl-basic-2000]rule permit source 192.168.2.0 0.0.0.255
[r4]int g 0/0/0
[r4-GigabitEthernet0/0/0]nat outbound 2000

R5

配置IP

[R5-LoopBack0]ip add 5.5.5.5 24

[R5-Serial4/0/1]ip add 15.1.1.2 24

[R5-Serial3/0/1]ip add 25.1.1.1 24

[R5-Serial4/0/0]ip add 35.1.1.1 24

[R5-GigabitEthernet0/0/0]ip add 45.1.1.1 24

进入aaa模式,添加用户,密码

[R5-aaa]local-user tao password cipher tao(与R1)

[R5-aaa]local-user xun password cipher xun(与R2)

选择认证方式

[R5-Serial4/0/1]ppp authentication-mode pap

[R5-Serial3/0/1]ppp authentication-mode CHAP

进行HDLC封装

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值