ospf综合实验

在这里插入图片描述
划分网段:
172.16.0.0/16
172.16.0.0/19 — A0
172.16.0.0/24 — P2P骨干
172.16.0.0/30
172.16.0.4/30
172.16.0.8/30

172.16.1.0/24 — MA骨干
172.16.1.0/29
172.16.1.8/29
172.16.1.16/29

172.16.2.0/24
172.16.3.0/24

172.16.31.0/24

172.16.32.0/19 --- A1
	172.16.32.0/24 --- P2P骨干
		172.16.32.0/30
		…
	172.16.33.0/24 --- MA骨干
		172.16.33.0/29
		…
	…
172.16.64.0/19 --- A2
	172.16.64.0/24 --- P2P骨干
	172.16.65.0/24 --- MA骨干
		172.16.65.0/29
		172.16.65.8/29
		…
	172.16.66.0/24
	…
172.16.96.0/19 --- A3
172.16.128.0/19 --- A4
172.16.160.0/19 --- RIP
	172.16.160.0/20
	172.16.176.0/20

172.16.192.0/19
172.16.224.0/19 

步骤:
AR1:
sys
sys r1
int g 0/0/0
ip address 172.16.33.1 29
int l0
ip address 172.16.34.1 24
ping 172.16.33.2
ping 172.16.33.3
ospf 1 route-id 1.1.1.1
area 1
network 172.16.0.0 0.0.255.255
display ospf lsdb

AR2:
sys
sys r2
int g 0/0/0
ip address 172.16.33.2 29
q
int l0
ip address 172.16.35.1 24
q
ping 172.16.33.3
ospf 1 route-id 2.2.2.2
area 1
network 172.16.0.0 0.0.255.255

AR3:
sys r3
int s 4/0/0
ip address 34.0.0.1 24
q
ip route-static 0.0.0.0 0 34.0.0.2
测试:ping 45.0.0.1
ping 46.0.0.1
ping 47.0.01

int t 0/0/0
ip address 172.16.1.1 29
tunnel-protocol gre p2mp
source 34.0.0.1
nhrp network-id 100
nhrp entry multicast dynamic
display nhrp peer all
ping 172.16.1.2
ping 172.16.1.3
ping 172.16.1.4
q
int g 0/0/0
ip address 172.16.33.3 29
int l0
display ip interface brief
ip address 172.16.36.1 24
q
ospf 1 route-id 3.3.3.3
area 1
display ip interface brief
network 172.16.32.0 0.0.7.255
q
a 0
network 172.16.1.1 0.0.0.0
display ospf peer brief
display ospf interface Tunnel 0/0/0
int t 0/0/0
ospf network-type p2mp
display ospf interface Tunnel 0/0/0
display ospf peer brief
ospf
area 1
abr-summary 172.16.32.0 255.255.224.0
q
stub no-summary

AR4:
sys
sys isp
int s 4/0/0
ip address 34.0.0.2 24
int s 3/0/0
ip address 46.0.0.2 24
int s 4/0/1
ip address 45.0.0.2 24
int g 0/0/0
ip address 47.0.0.2 24
q
int l0
ip address 4.4.4.4 24

AR5:
sys r5
int s 4/0/0
ip address 45.0.0.1 24
q
int l0
ip address 172.16.2.1 24
q
ip route-static 0.0.0.0 0 45.0.0.2
ping 46.0.0.1
ping 47.0.0.1
int t 0/0/0
ip address 172.16.1.2 29
tunnel-protocol gre p2mp
source serial 4/0/0
nhrp network-id 100
nhrp entry 172.16.1.1 34.0.0.1 register
ping 172.16.1.3
ping 172.16.1.4
ospf route-id 5.5.5.5
a 0
network 172.16.0.0 0.0.255.255
int t0/0/0
ospf network-type p2mp

AR6:
sys
sys r6
int s 4/0/0
ip address 46.0.0.1 24
int l0
ip address 172.16.3.1 24
q
ip route-static 0.0.0.0 46.0.0.2
ping 47.0.0.1
int t 0/0/0
ip address 172.16.1.3 29
tunnel-protocol gre p2mp
source serial 4/0/0
nhrp network-id 100
nhrp entry 172.16.1.1 34.0.0.1 register
ping 172.16.1.4
q
int g 0/0/0
ip address 172.16.65.1 29
ospf 1 route-id 6.6.6.6
network 172.16.0.0 0.0.3.255
q
a 2
network 172.16.65.1 0.0.0.0
int t0/0/0
ospf network-type p2mp
ospf
a 2
abr-summary 172.16.64.0 255.255.224.0
q
ospf
a 2
nssa
nssa no-import-route
nssa no-summary

AR7:
sys
sys r7
int g 0/0/0
ip address 47.0.0.1 24
q
int l0
ip address 172.16.4.1 24
q
ip route-static 0.0.0.0 47.0.0.2
int t 0/0/0
ip address 172.16.1.4 29
tunnel-protocol gre p2mp
source g 4/0/0
nhrp network-id 100
nhrp entry 172.16.1.1 34.0.0.1 register
int g 0/0/1
ip address 172.16.97.1 29
ospf 1 route-id 7.7.7.7
display ip interface brief
network 172.16.0.0 0.0.7.255
q
area 3
network 172.16.97.1 0.0.0.0
int t0/0/0
ospf network-type p2mp
ospf
a 3
abr-summary 172.16.96.0 255.255.224.0
nssa no-import-route
nssa no-summary

AR8:
sys
sys r8
int g 0/0/0
ip address 172.16.97.2 29
int l0
ip address 172.16.98.1 24
int g 0/0/1
ip address 172.16.97.9 29
ping 172.16.97.1
ping 172.16.97.10
ospf 1 route-id 8.8.8.8
a 3
network 172.16.0.0 0.0.255.255
nssa

AR9:
sys
sys r9
int g 0/0/0
ip address 172.16.97.10 29
q
int g 0/0/1
ip address 172.16.129.1 29
int l0
ip address 172.16.130.1 24
ospf 1 route-id 9.9.9.9
area 3
display ip interface brief
network 172.16.97.10 0.0.0.0
a 4
network 172.16.128.0 0.0.3.255
q
ospf
a 4
undo network 172.16.128.0 0.0.3.255
q
undo a 4
display this
q
ospf 2 router-id 9.9.9.9
a 4
network 172.16.128.0 0.0.3.255
q
q
ospf 1
import-route ospf 2
ospf 1
asbr-summary 172.16.128.0 255.255.224.0
a 3
nssa
q
display ip routing-table protocol ospt
ospf 2
default-route-advertise

AR10:
sys
sys r10
int g 0/0/0
ip address 172.16.129.2 29
int l0
ip address 172.16.131.1 29
q
ping 172.16.129.1
ospf 1 route-id 10.10.10.10
a 4
network 172.16.0.0 0.0.255.255

AR11:
sys
sys r11
int g 0/0/0
ip address 172.16.65.2 29
int l0
ip address 172.16.66.1 24
int g 0/0/1
ip address 172.16.65.9 29
ping 192.16.65.1
ping 192.16.65.10
ospf 1 route-id 11.11.11.11
a 2
network 172.16.0.0 0.0.255.255
a 2
nssa

AR12:
sys
sys r12
int g 0/0/0
ip address 172.16.65.10 29
int l0
ip address 172.16.160.1 20
int l1
ip address 172.16.176.1 20
q
ospf 1 route-id 12.12.12.12
a 2
display ip interface brief
network 172.16.65.10 0.0.0.0
q
rip
v 2
network 172.16.0.0
q
ospf 1
import-route rip 1
ospf
asbr-summary 172.16.160.0 255.255.224.0
a 2
nssa

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值