我有多个路由器连接到帧中继开关。我使用来自路由器的串行链接连接到继电器开关。我还在所有的串行链接上使用一个没有编号的回环地址。当我查看路由表时,到其他环回的所有路由的成本都是2。找出原因有些困难。
R1 -> FRS1 -> FRS2 -> R2
interface Loopback0
ip address 1.1.1.1 255.255.255.255
ip ospf 1 area 0
!
interface Tunnel23
no ip address
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex full
!
interface Serial1/0
no ip address
encapsulation frame-relay
serial restart-delay 0
frame-relay interface-dlci 102 ppp Virtual-Template1
frame-relay interface-dlci 103 ppp Virtual-Template1
frame-relay interface-dlci 104 ppp Virtual-Template1
frame-relay interface-dlci 108 ppp Virtual-Template1
frame-relay interface-dlci 109 ppp Virtual-Template1
!
interface Virtual-Template1
ip unnumbered Loopback0
ip ospf 1 area 0
!
router ospf 1
router-id 1.1.1.1
network 1.1.1.1 0.0.0.0 area 0
network 192.168.1.0 0.0.0.255 area 0
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.1 [110/2] via 2.2.2.1, 02:28:41, Virtual-Access1
OSPF Router with ID (1.1.1.1) (Process ID 1)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
1.1.1.1 1.1.1.1 1038 0x8000001F 0x00BBF0 7
2.2.2.1 2.2.2.1 1294 0x8000001E 0x008625 7有两个以上的路由器,但我忽略了他们的清晰度。我在GNS3中使用思科7200。
再次感谢
发布于 2017-03-02 16:15:26
关于如何连接虚拟链接,您还没有给出足够的细节,但是虚拟链接最终会导致单个跳的成本相加在一起,就好像没有虚拟链接一样。
例如,考虑这个场景:
Area 0 | Area 1 | Area 2
Cost 10 Cost 10 Cost 10 Cost 10
10.0.0.0/24<-->R1<--> 10.0.1.0/24<-->R2<-->10.0.2.0/24<->R3<-->10.0.3.0/24R3在区域0中有一个到R1的虚拟链接,R3在10.0.0.0/24的虚拟链接中看到的成本是30。
思科有一份解释OSPF虚拟链接的文档:OSPF虚拟链路
https://networkengineering.stackexchange.com/questions/39414
复制相似问题