当前位置:网站首页>OSPF和MGRE实验
OSPF和MGRE实验
2022-07-26 14:38:00 【sysddyq】
实验拓扑图

基础配置
基础配置
[r1]int lo0
[r1-LoopBack0]ip a 1.1.1.1 24
[r1-LoopBack0]q
[r1]int g 0/0/1
[r1-GigabitEthernet0/0/1]ip a 10.0.0.1 24
[r1-GigabitEthernet0/0/1]q
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]ip a 60.0.0.1 24
[r1-GigabitEthernet0/0/0]q
[r1]ip route-static 0.0.0.0 0 10.0.0.2
[r1]ip route-static 0.0.0.0 0 60.0.0.2
[r2]int lo0
[r2-LoopBack0]ip a 2.2.2.2 24
[r2-LoopBack0]q
[r2]int g 0/0/0
[r2-GigabitEthernet0/0/0]ip a 20.0.0.1 24
[r2-GigabitEthernet0/0/0]q
[r2]ip route-static 0.0.0.0 0 20.0.0.2
[r3]int lo0
[r3-LoopBack0]ip a 3.3.3.3 24
[r3-LoopBack0]q
[r3]int g 0/0/0
[r3-GigabitEthernet0/0/0]ip a 30.0.0.1 24
[r3-GigabitEthernet0/0/0]q
[r3]ip route-static 0.0.0.0 0 30.0.0.2
[r4]int lo0
[r4-LoopBack0]ip a 4.4.4.4 24
[r4-LoopBack0]q
[r4]int g 0/0/0
[r4-GigabitEthernet0/0/0]ip a 40.0.0.1 24
[r4-GigabitEthernet0/0/0]q
[r4]ip route-static 0.0.0.0 0 40.0.0.2
[r5]int lo0
[r5-LoopBack0]ip a 5.5.5.5 24
[r5-LoopBack0]q
[r5]int g 0/0/0
[r5-GigabitEthernet0/0/0]ip a 50.0.0.1 24
[r5-GigabitEthernet0/0/0]q
[r5]ip route-static 0.0.0.0 0 50.0.0.2
[r6]int lo0
[r6-LoopBack0]ip a 6.6.6.6 24
[r6-LoopBack0]q
[r6]int g 0/0/0
[r6-GigabitEthernet0/0/0]ip a 60.0.0.2 24
[r6-GigabitEthernet0/0/0]q
[r6]int g 0/0/1
[r6-GigabitEthernet0/0/1]ip a 10.0.0.2 24
[r6-GigabitEthernet0/0/1]q
[r6]int g 4/0/2
[r6-GigabitEthernet4/0/2]
[r6-GigabitEthernet4/0/2]ip a 20.0.0.2 24
[r6-GigabitEthernet4/0/2]q
[r6]int g 4/0/1
[r6-GigabitEthernet4/0/1]ip a 30.0.0.2 24
[r6-GigabitEthernet4/0/1]q
[r6]int g 4/0/0
[r6-GigabitEthernet4/0/0]ip a 40.0.0.2 24
[r6-GigabitEthernet4/0/0]q
[r6]int g 0/0/2
[r6-GigabitEthernet0/0/2]ip a 50.0.0.2 24
[r6-GigabitEthernet0/0/2]q
配置全连MGRE
[r4]int tunnel 0/0/0
[r4-Tunnel0/0/0]ip a 192.168.1.4 24
[r4-Tunnel0/0/0]tunnel-protocol gre p2mp
[r4-Tunnel0/0/0]source 40.0.0.1
[r1-Tunnel0/0/1]nhrp entry multicast dynamic
[r1-Tunnel0/0/1]nhrp entry 192.168.1.1 10.0.0.1 register
[r1-Tunnel0/0/1]nhrp entry 192.168.1.5 50.0.0.1 register
[r1-Tunnel0/0/1]q
[r5]int tunnel 0/0/0
[r5-Tunnel0/0/0]ip a 192.168.1.5 24
[r5-Tunnel0/0/0]tunnel-protocol gre p2mp
[r5-Tunnel0/0/0]source 50.0.0.1
[r1-Tunnel0/0/1]nhrp entry multicast dynamic
[r1-Tunnel0/0/1]nhrp entry 192.168.1.1 10.0.0.1 register
[r1-Tunnel0/0/1]nhrp entry 192.168.1.4 40.0.0.1 register
[r1]int tunnel 0/0/1
[r1-Tunnel0/0/1]ip a 192.168.1.1 24
[r1-Tunnel0/0/1]tunnel-protocol gre p2mp
[r1-Tunnel0/0/1]source 10.0.0.1
[r1-Tunnel0/0/1]nhrp entry multicast dynamic
[r1-Tunnel0/0/1]nhrp entry 192.168.1.4 40.0.0.1 register
[r1-Tunnel0/0/1]nhrp entry 192.168.1.5 50.0.0.1 register
[r1-Tunnel0/0/1]q
配置星型MGRE
[r1]interface Tunnel 0/0/0
[r1-Tunnel0/0/0]ip address 192.168.2.1 24
[r1-Tunnel0/0/0]tunnel-protocol gre p2mp
[r1-Tunnel0/0/0]source 60.0.0.1
[r1-Tunnel0/0/0]nhrp entry multicast dynamic
[r1-Tunnel0/0/0]nhrp network-id 100
[r2]interface Tunnel 0/0/0
[r2-Tunnel0/0/0]ip address 192.168.2.2 24
[r2-Tunnel0/0/0]tunnel-protocol gre p2mp
[r2-Tunnel0/0/0]source GigabitEthernet 0/0/0
[r2-Tunnel0/0/0]nhrp entry 192.168.2.1 60.0.0.1 register
[r3]interface Tunnel 0/0/0
[r3-Tunnel0/0/0]ip address 192.168.2.3 24
[r3-Tunnel0/0/0]tunnel-protocol gre p2mp
[r3-Tunnel0/0/0]source GigabitEthernet 0/0/0
[r3-Tunnel0/0/0]nhrp entry 192.168.2.1 60.0.0.1 register OSPF配置
[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0
[R1-ospf-1-area-0.0.0.0]network 10.0.0.1 0.0.0.0
[R1-ospf-1-area-0.0.0.0]network 60.0.0.1 0.0.0.0
[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[R2-ospf-1-area-0.0.0.0]network 20.0.0.1 0.0.0.0
[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[R3-ospf-1-area-0.0.0.0]network 30.0.0.1 0.0.0.0
[R4]ospf 1 router-id 4.4.4.4
[R4-ospf-1]area 0
[R4-ospf-1-area-0.0.0.0]network 4.4.4.4 0.0.0.0
[R4-ospf-1-area-0.0.0.0]network 40.0.0.1 0.0.0.0
[R5]ospf 1 router-id 5.5.5.5
[R5-ospf-1]area 0
[R5-ospf-1-area-0.0.0.0]network 5.5.5.5 0.0.0.0
[R5-ospf-1-area-0.0.0.0]network 50.0.0.1 0.0.0.0
[R1]interface Tunnel 0/0/0
[R1-Tunnel0/0/0]ospf network-type broadcast
[R2]interface Tunnel 0/0/0
[R2-Tunnel0/0/0]ospf dr-priority 0
[R3]interface Tunnel 0/0/0
[R3-Tunnel0/0/0]ospf dr-priority 0测试

边栏推荐
猜你喜欢

AMB | towards sustainable agriculture: rhizosphere microbial engineering

中值滤波器

C# Winfrom 常用功能整合

maya将模型导入到unity

31. Opinion based relational pivoting forcross domain aspect term extraction reading notes

基于CAS的SSO单点登录环境搭建

Low power multi-channel wfas1431 wireless data acquisition and transmission instrument operation process description

Summary and analysis of image level weakly supervised image semantic segmentation

Realize the full link grayscale based on Apache APIs IX through MSE
![[draw with toolbar]](/img/d4/9cb06599f9a8fe5f8149cb7870c103.png)
[draw with toolbar]
随机推荐
Matlab solution of [analysis of variance]
VBA upload pictures
AMB | towards sustainable agriculture: rhizosphere microbial engineering
PyTorch中 nn.Conv2d与nn.ConvTranspose2d函数的用法
Unity learning notes – infinite map
【方差分析】之matlab求解
当AI邂逅生命健康,华为云为他们搭建三座桥
9、学习MySQL DELETE 语句
JS wave animation effect menu style
[2022 national game simulation] Bai Loujian - Sam, rollback Mo team, second offline
填问卷,领奖品 | 诚邀您填写 Google Play Academy 活动调研问卷
[dry goods] data structure and algorithm principle behind MySQL index
Mysql-04 storage engine and data type
RPN: region proposal networks
AMB | 迈向可持续农业:根际微生物工程
Classic line style login interface
What is the transport layer protocol tcp/udp???
【1.2.投资的收益和风险】
C# Winfrom 常用功能整合
Maya imports the model into unity