OSPF小实验交换机如何配置。
chrome-extension://hiidjliailpkjeigakikbfedlfijngih/images/right-arrow.png
Fast traslate
Icon translate
求助,我懵逼了两台交换机夹在中间都不知道如何配置,有大佬能给个思路方向如何配置?贡献实验图片 没有VLAN相关的东西,交换机放在那就好,不用配置的 学习 本帖最后由 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
你要參考一下關於 OSPF virtual-link的交章。
樓上大概應該是對的。
nbvnbv0022 发表于 2021-5-15 19:53
你要參考一下關於 OSPF virtual-link的交章。
樓上大概應該是對的。
嗯嗯,谢谢指引 本帖最后由 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
itwong 发表于 2021-6-20 12:31
这个是OSPF network type broadcast,也就是需要DR/BDR.
R4上f1/0, R6上f1/0跟R1上的f1/0都是同一个L2 dom ...
谢谢
页:
[1]