OSPF cost value
I am configuring a NBMA point to multipoint scenario. However, the connection is fine but I want to know if it's having the correct cost path using sh ip route.
I just want to ask why it's giving me a metric of 21 not 20, I already assign a value of cost of 20 to 3.1.1.1 using neigbhor command with cost.
Here's my configuration
R1:
interface Loopback0
ip address 192.168.10.1 255.255.255.255
no ip directed-broadcast
!
interface Serial1/0
ip address 3.1.1.1 255.255.255.0
no ip directed-broadcast
encapsulation frame-relay
ip ospf network point-to-multipoint non-broadcast
no ip mroute-cache
frame-relay map ip 3.1.1.2 22
frame-relay interface-dlci 22
router ospf 1
network 3.1.1.0 0.0.0.255 area 0
network 192.168.10.0 0.0.0.255 area 0
R1's routing table
3.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
O 3.1.1.3/32 [110/58] via 3.1.1.2, 00:02:00, Serial1/0
O 3.1.1.2/32 [110/48] via 3.1.1.2, 00:02:00, Serial1/0
C 3.1.1.0/24 is directly connected, Serial1/0
192.168.30.0/32 is subnetted, 1 subnets
O 192.168.30.1 [110/59] via 3.1.1.2, 00:02:00, Serial1/0
192.168.10.0/32 is subnetted, 1 subnets
C 192.168.10.1 is directly connected, Loopback0
192.168.20.0/32 is subnetted, 1 subnets
O 192.168.20.1 [110/49] via 3.1.1.2, 00:02:00, Serial1/0
R2HUB config:
interface Loopback0
ip address 192.168.20.1 255.255.255.255
no ip directed-broadcast
!
interface Serial1/0
ip address 3.1.1.2 255.255.255.0
no ip directed-broadcast
encapsulation frame-relay
ip ospf network point-to-multipoint non-broadcast
no ip mroute-cache
frame-relay map ip 3.1.1.1 200
frame-relay map ip 3.1.1.3 300
frame-relay interface-dlci 200
frame-relay interface-dlci 300
!
router ospf 1
network 3.1.1.0 0.0.0.255 area 0
network 192.168.20.0 0.0.0.255 area 0
neighbor 3.1.1.3 cost 10
neighbor 3.1.1.1 cost 20 <<<<<<<<<<<<
R2hub routing table
Gateway of last resort is not set
3.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
O 3.1.1.3/32 [110/10] via 3.1.1.3, 00:04:27, Serial1/0
O 3.1.1.1/32 [110/20] via 3.1.1.1, 00:04:27, Serial1/0
C 3.1.1.0/24 is directly connected, Serial1/0
192.168.30.0/32 is subnetted, 1 subnets
O 192.168.30.1 [110/11] via 3.1.1.3, 00:04:27, Serial1/0
192.168.10.0/32 is subnetted, 1 subnets
O 192.168.10.1 [110/21] via 3.1.1.1, 00:04:27, Serial1/0
192.168.20.0/32 is subnetted, 1 subnets
C 192.168.20.1 is directly connected, Loopback0
And also if I am on R1 router my cost to 192.168.20.0 network shoud be R1's int s1/0 cost = 48 + R2's assigned cost to me is 20 should be = 68
Am I wrong?
I tried this in Broadcast Multi-access ethernet and It's giving me correct value.
I assign a metric in LSA type 5 of 2 and going to the end of my area it gives me the correct total path cost.
But why in NBMA I can't get the correct value.
Thanks in advance