我有多个路由器连接到帧中继交换机。我正在使用来自路由器的串行链路连接到中继交换机。我还在所有串行链路上使用未编号的环回地址。当我查看路由表时,到其他环回的所有路由的成本都是 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 中使用 cisco 7200 的 IM。
再次感谢