ensp实验

在这里插入图片描述
拓扑图为:
在这里插入图片描述
1.在R1上
[1]int t 0/0/0
[1-Tunnel0/0/0]ip address 123.1.1.1 255.255.255.0
[1-Tunnel0/0/0]tunnel-protocol gre p2mp
[1-Tunnel0/0/0]source 17.1.1.1
[1-Tunnel0/0/0]nhrp entry multicast dynamic
[1-Tunnel0/0/0]nhrp network-id 100
[1-Tunnel0/0/0]nhrp entry 123.1.1.2 27.1.1.1 register
[1-Tunnel0/0/0]nhrp entry 123.1.1.3 37.1.1.1 register

2.在R2上
[2]int t 0/0/0
[2-Tunnel0/0/0]ip address 123.1.1.2 255.255.255.0
[2-Tunnel0/0/0]tunnel-protocol gre p2mp
[2-Tunnel0/0/0]source 27.1.1.1
[2-Tunnel0/0/0]nhrp entry multicast dynamic
[2-Tunnel0/0/0]nhrp network-id 100
[2-Tunnel0/0/0]nhrp entry 123.1.1.1 17.1.1.1 register
[2-Tunnel0/0/0]nhrp entry 123.1.1.3 37.1.1.1 register

3.在R3上
[3]int t 0/0/0
[3-Tunnel0/0/0]ip address 123.1.1.2 255.255.255.0
[3-Tunnel0/0/0]tunnel-protocol gre p2mp
[3-Tunnel0/0/0]source 37.1.1.1
[3-Tunnel0/0/0]nhrp entry multicast dynamic
[3-Tunnel0/0/0]nhrp network-id 100
[3-Tunnel0/0/0]nhrp entry 123.1.1.1 17.1.1.1 register
[3-Tunnel0/0/0]nhrp entry 123.1.1.2 37.1.1.1 register
2.AR1,AR2,AR3 使用ospf,并让AR2,AR3放弃DR选举
R1
[1] ospf
[1-ospf-1]area 0.0.0.0
[1-ospf-1]network 1.1.1.1 0.0.0.0
[1-ospf-1]network 123.1.1.0 0.0.0.255
R2
[2] ospf
[2-ospf-1]area 0.0.0.0
[2-ospf-1]network 2.2.2.2 0.0.0.0
[2-ospf-1]network 123.1.1.0 0.0.0.255
[2-ospf-1]int t 0/0/0
[2-Tunnel0/0/0]ospf network-type broadcast
[2-Tunnel0/0/0] ospf dr-priority 0
R3
[3] ospf
[3-ospf-1]area 0.0.0.0
[3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[3-ospf-1-area-0.0.0.1]network 123.1.1.0 0.0.0.255
[3-ospf-1-area-0.0.0.1]int t 0/0/0
[3-Tunnel0/0/0]ospf network-type broadcast
[3-Tunnel0/0/0] ospf dr-priority 0
3.配置AR3到AR6的ospf; 5:在AR5上使用 多进程双向重发布
R3
[3] ospf
[3-ospf-1]area 0.0.0.1
[3-ospf-1-area-0.0.0.1]network 34.1.1.0 0.0.0.255
R4
[4]ospf
[4-ospf-1]area 1
[4-ospf-1-area-0.0.0.1] network 4.4.4.4 0.0.0.0
[4-ospf-1-area-0.0.0.1]network 34.1.1.0 0.0.0.255
[4-ospf-1-area-0.0.0.1]network 45.1.1.0 0.0.0.255
R5
[5]ospf
[5-ospf-1]area 1
[5-ospf-1-area-0.0.0.1]network 45.1.1.0 0.0.0.255
[5-ospf-1]import-route ospf 2
[5-ospf-1]OSPF 2
[5-ospf-2]area 2
[5-ospf-2-area-0.0.0.2]network 56.1.1.0 0.0.0.255
[5-ospf-2-area-0.0.0.2]network 5.5.5.5 0.0.0.0
[5-ospf-2-area-0.0.0.2]q
[5-ospf-2]mport-route ospf 1
R6
[6]ospf
[6-ospf-1]area 2
[6-ospf-1-area-0.0.0.2]network 6.6.6.6 0.0.0.0
[6-ospf-1-area-0.0.0.2]network 56.1.1.0 0.0.0.255
4.在R3上添加nat使telnet的R3的g0/0/0接口转接到R6的g0/0/0接口
R3
[3]int g 0/0/0
[3-GigabitEthernet0/0/0]nat server protocol tcp global current-interface telnet inside 56.1.1.2 telnet
[3-GigabitEthernet0/0/0]nat outbound 2000
R6
[6] aaa
[6-aaa]local-user hua password cipher wei
[6-aaa]local-user hua service-type telnet
[6]user-interface vty 0 4
[6]authentication-mode aaa

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值