OSPF实验报告

OSPF实验报告

在这里插入图片描述

将所有的私有网段,实现全通:
[ar1]int tunnel 0/0/0
ip ad 10.1.1.1 24
tunnel-protocol gre p2mp
source 17.1.1.1
nhrp entry multicast dynamic
nhrp network-id 100
nhrp entry 10.1.1.2 27.1.1.1 register
nhrp entry 10.1.1.3 37.1.1.1 register

[ar2]int tunnel 0/0/0
ip ad 10.1.1.2 24
tunnel-protocol gre p2mp
source 27.1.1.1
nhrp entry multicast dynamic
nhrp network-id 100
nhrp entry 10.1.1.1 17.1.1.1 register
nhrp entry 10.1.1.3 37.1.1.1 register

[ar3]int tunnel 0/0/0
ip ad 10.1.1.3 24
tunnel-protocol gre p2mp
source 27.1.1.1
nhrp entry multicast dynamic
nhrp network-id 100
nhrp entry 10.1.1.1 17.1.1.1 register
nhrp entry 10.1.1.2 27.1.1.1 register

[ar1]ospf 1 router-id 1.1.1.1
area 0
network 192.168.1.1 0.0.0.0
network 10.1.1.1 0.0.0.0

[ar2]ospf 1 router-id 2.2.2.2
area 0
network 192.168.2.1 0.0.0.0
network 10.1.1.2 0.0.0.0

[ar3]ospf 1 router-id 3.3.3.3
area 0
network 10.1.1.3 0.0.0.0
q
area 1
network 192.168.3.1 0.0.0.0
network 192.168.0.1 0.0.0.0

[ar4]ospf 1 router-id 4.4.4.4
area 1
network 192.168.0.0 0.0.0.255

[ar5]ospf 1 router-id 5.5.5.5
area 1
network 192.168.0.6 0.0.0.0
network 192.168.5.1 0.0.0.0
q
area 2
network 192.168.0.9 0.0.0.0

[ar6]ospf 1 router-id 6.6.6.6
area 2
network 192.168.0.0 0.0.255.255

[ar1]int tunnel 0/0/0
ospf network-type broadcast

[ar2]int tunnel 0/0/0
ospf network-type broadcast

[ar3]int tunnel 0/0/0
ospf network-type broadcast

[ar5]ospf 1
area 2
undo network 192.168.0.9 0.0.0.0
ospf 2
area 2
network 192.168.0.9 0.0.0.0
ospf 1
import-route ospf 2
q
ospf 2
import-route ospf 1

AR4-6能正常访问AR7环回
[ar3]ospf 1
default-route-advertise

[ar5]ospf 2
default-route-advertise

[ar3]acl 2000
ruler permit source 192.168.0.0 0.0.255.255
int g0/0/0
nat outbound 2000

AR1telnetAR3共有ip,实际登录到AR6
[ar6]aaa
local-user lxl privilege level 15 password cipher 123456
local-user lxl service-type telnet
q
user-interface vty 0 4
authentication-mode aaa

[ar3]int g0/0/0
nat server protocol tcp global current-interface 23 inside 192.168.6.1 23

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值