设为首页收藏本站language→→ 语言切换

鸿鹄论坛

 找回密码
 论坛注册

QQ登录

先注册再绑定QQ

查看: 1286|回复: 7
收起左侧

[求助] OSPF小实验交换机如何配置。

[复制链接]
发表于 2021-5-9 02:33:26 | 显示全部楼层 |阅读模式
1鸿鹄币
                                                                                                                           
                                                    [img][/img]                           

                               
登录/注册后可看大图
                            [img][/img]                        
                    
                                            
                        
                    
                                                                                                        Fast traslate                                                                                       
                                                   
                                                                                    Icon translate                                                                                       
                                                   
                    
               
求助,我懵逼了两台交换机夹在中间都不知道如何配置,有大佬能给个思路方向如何配置?贡献实验图片

OSPF 综合实验

OSPF 综合实验

最佳答案

查看完整内容

没有VLAN相关的东西,交换机放在那就好,不用配置的
发表于 2021-5-9 02:33:27 | 显示全部楼层
没有VLAN相关的东西,交换机放在那就好,不用配置的
沙发 2021-5-9 02:33:27 回复 收起回复
回复

使用道具 举报

发表于 2021-5-9 15:37:31 | 显示全部楼层
学习
板凳 2021-5-9 15:37:31 回复 收起回复
回复

使用道具 举报

发表于 2021-5-9 17:02:12 | 显示全部楼层
本帖最后由 leort 于 2021-5-9 17:35 编辑

稍微敲了一遍 应该都符合需求
真的做不了可以参考一下,就是接口类型有点差别

R1:
interface Loopback0
ip address 1.1.1.1 255.255.255.255
interface Ethernet1/0
ip address 172.8.146.1 255.255.255.0
ip ospf authentication
ip ospf authentication-key SPO
ip ospf priority 255
router ospf 2012
router-id 1.1.1.1
area 146 stub
network 172.8.146.1 0.0.0.0 area 146

R4:
interface Loopback0
ip address 4.4.4.4 255.255.255.0
interface Ethernet1/0
ip address 172.8.146.4 255.255.255.0
ip ospf authentication
ip ospf authentication-key SPO
ip ospf priority 0
interface Ethernet1/1
ip address 172.8.100.4 255.255.255.0
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 SPO
ip ospf network broadcast
ip ospf priority 0
router ospf 2012
router-id 4.4.4.4
area 146 stub no-summary
area 146 default-cost 200
area 146 range 172.8.0.0 255.255.0.0
network 172.8.100.4 0.0.0.0 area 0
network 172.8.146.4 0.0.0.0 area 146


R6:
interface Loopback0
ip address 6.6.6.6 255.255.255.255
interface Ethernet1/0
ip address 172.8.146.6 255.255.255.0
ip ospf authentication
ip ospf authentication-key SPO
ip ospf priority 0
interface Ethernet1/1
ip address 172.8.100.6 255.255.255.0
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 SPO
ip ospf network broadcast
ip ospf priority 0
router ospf 2012
router-id 6.6.6.6
area 146 stub no-summary
area 146 range 172.8.0.0 255.255.0.0
network 172.8.100.6 0.0.0.0 area 0
network 172.8.146.6 0.0.0.0 area 146

R5:
interface Loopback0
ip address 5.5.5.5 255.255.255.255
interface Ethernet1/0
ip address 172.8.100.5 255.255.255.0
ip nat inside
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 SPO
ip ospf network broadcast
ip ospf priority 255
interface Ethernet1/1
ip address 100.1.1.5 255.255.255.0
ip nat outside
interface Ethernet2/0
ip address 172.8.35.5 255.255.255.0
ip nat inside
ip ospf authentication
ip ospf authentication-key SPO
ip ospf network point-to-point
router ospf 2012
router-id 5.5.5.5
area 35 virtual-link 3.3.3.3
network 172.8.35.5 0.0.0.0 area 35
network 172.8.100.5 0.0.0.0 area 0
default-information originate
access-list 1 permit any
ip nat inside source list 1 interface Ethernet1/1 overload
ip route 0.0.0.0 0.0.0.0 100.1.1.8

R3:
interface Loopback0
ip address 3.3.3.3 255.255.255.255
interface Ethernet1/0
ip address 172.8.35.3 255.255.255.0
ip ospf authentication
ip ospf authentication-key SPO
ip ospf network point-to-point
interface Ethernet1/1
ip address 172.8.23.3 255.255.255.0
ip ospf authentication
ip ospf authentication-key SPO
ip ospf network point-to-point
router ospf 2012
router-id 3.3.3.3
area 35 virtual-link 5.5.5.5
network 172.8.23.3 0.0.0.0 area 23
network 172.8.35.3 0.0.0.0 area 35

R2:
interface Loopback0
ip address 2.2.2.2 255.255.255.255
interface Ethernet1/0
ip address 172.8.23.2 255.255.255.0
ip ospf authentication
ip ospf authentication-key SPO
ip ospf network point-to-point
router ospf 2012
router-id 2.2.2.2
network 172.8.23.2 0.0.0.0 area 23

Internet:
interface Loopback0
ip address 8.8.8.8 255.255.255.255
interface Ethernet1/0
ip address 100.1.1.8 255.255.255.0

地板 2021-5-9 17:02:12 回复 收起回复
回复

使用道具 举报

发表于 2021-5-15 19:53:33 | 显示全部楼层
你要參考一下關於 OSPF virtual-link的交章。
樓上大概應該是對的。
5# 2021-5-15 19:53:33 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2021-5-15 23:40:16 | 显示全部楼层
nbvnbv0022 发表于 2021-5-15 19:53
你要參考一下關於 OSPF virtual-link的交章。
樓上大概應該是對的。

嗯嗯,谢谢指引
6# 2021-5-15 23:40:16 回复 收起回复
回复

使用道具 举报

发表于 2021-6-20 12:31:30 | 显示全部楼层
本帖最后由 itwong 于 2021-6-20 12:33 编辑

这个是OSPF network type broadcast,也就是需要DR/BDR.
R4上f1/0, R6上f1/0跟R1上的f1/0都是同一个L2 domain(172.8.146.0/24)
同理, R4上f1/1, R6上f1/1跟R5上的f1/0都是同一个L2 domain(172.8.100.0/24)

而area 35跟23是serial, 所以是OSPF network point-to-point. 没有DR/BDR选举,但area 23并没有直接连到area 0,需要virtual-link

点评

谢谢  详情 回复 发表于 2021-8-1 22:48
7# 2021-6-20 12:31:30 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2021-8-1 22:48:27 | 显示全部楼层
itwong 发表于 2021-6-20 12:31
这个是OSPF network type broadcast,也就是需要DR/BDR.
R4上f1/0, R6上f1/0跟R1上的f1/0都是同一个L2 dom ...

谢谢
8# 2021-8-1 22:48:27 回复 收起回复
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2024-4-25 01:33 , Processed in 0.064902 second(s), 11 queries , Redis On.  

  Powered by Discuz!

  © 2001-2024 HH010.COM

快速回复 返回顶部 返回列表