网络类型实验

网络类型实验

实验拓扑

实验要求

①R1与ISP间使用PPP的PAP认证,R2与ISP间使用CHAP认证,且ISP均为主认证方;
②R4与R5间使用HDLC封装;
③R1/2/4构建一个MGRE环境,其中R1为中心站点;
④R1与R3为点到点GRE;
⑤整个私有网络基于RIP全网可达,且各PC可访问ISP的环回。

具体配置

(1)ISP接口IP配置:

int s3/0/0
ip ad 15.1.1.2 24
q
int s3/0/1
ip ad 25.1.1.2 24
q
int s4/0/0
ip ad 45.1.1.2 24
q
int s4/0/1
ip ad 35.1.1.2 24
q
int lo0
ip ad 5.5.5.5 24

(2)DHCP配置:

【R1】
dhcp enable
ip pool r1
network 192.168.1.0 mask 24
gateway-list 192.168.1.1
int g0/0/1
ip ad 192.168.1.1 24
dhcp select global

【R2】
dhcp enable
ip pool r2
network 192.168.2.0 mask 24
gateway-list 192.168.2.1
int g0/0/0
ip ad 192.168.2.1 24
dhcp select global

【R3】
dhcp enable
ip pool r3
network 192.168.3.0 mask 24
gateway-list 192.168.3.1
int g0/0/1
ip ad 192.168.3.1 24
dhcp select global

【R4】
dhcp enable
ip pool r4
network 192.168.4.0 mask 24
gateway-list 192.168.4.1
int g0/0/0
ip ad 192.168.4.1 24
dhcp select global

(3)PAP认证配置:

【ISP】
aaa
local-user r1 password cipher hcip666
local-user r1 service-type ppp
int s3/0/0
link-protocol ppp
ppp authentication-mode pap

【R1】
int s4/0/0
ip ad 15.1.1.1 24
link-protocol ppp
ppp pap local-user r1 password cipher hcip666

(4)CHAP认证配置:

【ISP】
aaa
local-user r2 password cipher ccip666
local-user r2 service-type ppp
int s3/0/1
ppp authentication-mode chap

【R2】
int s4/0/0
ip ad 25.1.1.1 24
ppp chap user r2
ppp chap password cipher ccip666

(5)HDLC配置:

【ISP】
int s4/0/0
link-protocol hdlc
y

【R4】
int s4/0/0
link-protocol hdlc
y

(6)MGRE配置:

【R1】
int Tunnel 0/0/0
ip ad 10.1.1.1 24
tunnel-protocol gre p2mp
source 15.1.1.1
nhrp entry multicast dynamic //本地成为NHRP中心,同时进行伪广播
nhrp network-id 100

【R2】
int Tunnel 0/0/0
ip ad 10.1.1.2 24
tunnel-protocol gre p2mp
source s4/0/0
nhrp network-id 100
nhrp entry 10.1.1.1 15.1.1.1 register //分支站点去中心站点注册

【R4】
int s4/0/0
ip ad 45.1.1.1 24
int Tunnel 0/0/0
ip ad 10.1.1.4 24
tunnel-protocol gre p2mp
source s4/0/0
nhrp network-id 100
nhrp entry 10.1.1.1 15.1.1.1 register

(7)点到点GRE配置:

【R1】
int Tunnel 0/0/1
ip ad 20.1.1.1 24
tunnel-protocol gre
source 15.1.1.1
destination 35.1.1.1

【R3】
int s4/0/0
ip ad 35.1.1.1 24
int Tunnel 0/0/1
ip ad 20.1.1.2 24
tunnel-protocol gre
source 35.1.1.1
destination 15.1.1.1

(8)路由配置:

【R1】【R2】【R3】【R4】
ip route-static 0.0.0.0 0.0.0.0 s4/0/0

【R1】
rip 1
version 2
undo summary
network 192.168.1.0
network 10.0.0.0
network 20.0.0.0
int Tunnel 0/0/0
undo rip split-horizon //关闭RIP水平分割机制

【R2】
rip 1
version 2
undo summary
network 192.168.2.0
network 10.0.0.0

【R3】
rip 1
version 2
undo summary
network 192.168.3.0
network 20.0.0.0

【R4】
rip 1
version 2
undo summary
network 192.168.4.0
network 10.0.0.0

(9)NAT配置:

【R1】【R2】【R3】【R4】
acl 2000
rule permit source 192.168.1/2/3/4.0 0.0.0.255
int s4/0/0
nat outbound 2000

结果测试

PC端ping测试:
R1/2/3/4的RIP路由表:

至此实验完成!

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值