12-11-2021 10:45 AM
I have a problem i configured ospf but this switch does not get the networks friom other switches in the configuration it only gives it's own. please how can i solve this?
L3 switch:
# sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is 172.45.2.4 to network 0.0.0.0
172.16.0.0/24 is subnetted, 1 subnets
C 172.16.45.0 is directly connected, Vlan100
172.17.0.0/24 is subnetted, 1 subnets
C 172.17.45.0 is directly connected, Vlan200
172.18.0.0/24 is subnetted, 1 subnets
C 172.18.45.0 is directly connected, Vlan300
172.19.0.0/24 is subnetted, 1 subnets
C 172.19.45.0 is directly connected, Vlan400
172.20.0.0/24 is subnetted, 1 subnets
C 172.20.45.0 is directly connected, Vlan500
172.45.0.0/29 is subnetted, 1 subnets
C 172.45.2.0 is directly connected, Port-channel3
S* 0.0.0.0/0 [1/0] via 172.45.2.4
configuration:
router ospf 100
router-id 5.5.5.5
log-adjacency-changes
network 172.45.2.0 0.0.0.7 area 0
network 172.16.45.0 0.0.0.255 area 0
network 172.20.45.0 0.0.0.255 area 0
network 172.18.45.0 0.0.0.255 area 0
!
12-11-2021 10:51 AM
We do not have enough information to be able to understand your issue or to provide useful advice. Please provide output of these commands:
show ip ospf interface
show ip ospf neighbor
show cdp neighbor
12-11-2021 10:56 AM
#sh cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device ID Local Intrfce Holdtme Capability Platform Port ID
SW-1AE Gig 1/0/2 85 S 2960 Gig 0/2
SW0-AE Gig 1/0/7 85 S 2960 Fas 0/3
MIL-AE Gig 1/0/3 145 3650 Gig 1/0/3
MIL-AE Gig 1/0/4 145 3650 Gig 1/0/4
SW2-AE Por 4 144 S 2960 Fas 0/2
SW-1AE Gig 1/0/1 85 S 2960 Gig 0/1
SW-1AE Gig 1/0/1 85 S 2960 Por 1
SW0-AE Gig 1/0/8 85 S 2960 Fas 0/4
SW0-AE Gig 1/0/8 85 S 2960 Por 3
SW0-AE Por 3 145 S 2960 Fas 0/4
SW0-AE Por 3 145 S 2960 Por 3
SW-1AE Por 1 145 S 2960 Gig 0/2
SW0-AE Por 3 145 S 2960 Fas 0/3
SW2-AE Por 4 144 S 2960 Fas 0/1
SW2-AE Por 4 144 S 2960 Por 4
SW-1AE Por 1 145 S 2960 Gig 0/1
SW-1AE Por 1 145 S 2960 Por 1
sh ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
1.1.1.1 0 FULL/DROTHER 00:00:34 172.45.2.2 Port-channel3
3.3.3.3 0 FULL/DROTHER 00:00:34 172.45.2.3 Port-channel3
4.4.4.4 254 FULL/DR 00:00:34 172.45.2.5 Port-channel3
2.2.2.2 0 FULL/DROTHER 00:00:34 172.45.2.4 Port-channel3
sh ip ospf interface
Vlan100 is up, line protocol is up
Internet address is 172.16.45.2/24, Area 0
Process ID 100, Router ID 5.5.5.5, Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 5.5.5.5, Interface address 172.16.45.2
No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:03
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 0, Adjacent neighbor count is 0
Suppress hello for 0 neighbor(s)
Vlan300 is up, line protocol is up
Internet address is 172.18.45.2/24, Area 0
Process ID 100, Router ID 5.5.5.5, Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 5.5.5.5, Interface address 172.18.45.2
No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:03
Index 2/2, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 0, Adjacent neighbor count is 0
Suppress hello for 0 neighbor(s)
Vlan500 is up, line protocol is up
Internet address is 172.20.45.2/24, Area 0
Process ID 100, Router ID 5.5.5.5, Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 5.5.5.5, Interface address 172.20.45.2
No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:03
Index 3/3, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 0, Adjacent neighbor count is 0
Suppress hello for 0 neighbor(s)
Vlan400 is up, line protocol is up
Internet address is 172.19.45.2/24, Area 0
Process ID 100, Router ID 5.5.5.5, Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 5.5.5.5, Interface address 172.19.45.2
No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Index 4/4, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 0, Adjacent neighbor count is 0
Suppress hello for 0 neighbor(s)
Vlan200 is up, line protocol is up
Internet address is 172.17.45.2/24, Area 0
Process ID 100, Router ID 5.5.5.5, Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 5.5.5.5, Interface address 172.17.45.2
No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Index 5/5, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 0, Adjacent neighbor count is 0
Suppress hello for 0 neighbor(s)
Port-channel3 is up, line protocol is up
Internet address is 172.45.2.1/29, Area 0
Process ID 100, Router ID 5.5.5.5, Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State BDR, Priority 255
Designated Router (ID) 4.4.4.4, Interface address 172.45.2.5
Backup Designated Router (ID) 5.5.5.5, Interface address 172.45.2.1
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:04
Index 6/6, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 4, Adjacent neighbor count is 4
Adjacent with neighbor 1.1.1.1
Adjacent with neighbor 3.3.3.3
Adjacent with neighbor 4.4.4.4 (Designated Router)
Adjacent with neighbor 2.2.2.2
Suppress hello for 0 neighbor(s)
Message digest authentication enabled
Youngest key id is 1
12-11-2021 11:16 PM
Thanks for the additional information. The results are quite puzzling. The output of show ip ospf neighbor shows that there are 4 neighbors. But the output of show ip ospf interface indicates these
No backup designated router on this network
Neighbor Count is 0, Adjacent neighbor count is 0
These outputs seem to be mutually contradictory. Is this implemented on real hardware or implemented in some emulator? Is so which emulator?
12-12-2021 10:46 AM
Rick
Unless I am reading it incorrectly this router is the BDR and it has does have 4 neighbors on the port channel interface 172.45.2.1 (the last interface in the output).
Perhaps the neighbors are not advertising any routes ?
Jon
12-12-2021 11:21 AM
Jon
You are correct. I read carefully the first several interfaces (vlan interfaces) and was not as careful as I got toward the bottom on the output and missed the fact that port channel does have OSPF neighbors.
So the question is why are those neighbors not advertising any networks? We need the original poster to provide more detail about the topology and the environment of those neighbors.
12-11-2021 11:32 PM
Hello,
I agree with Richard, the output does not make much sense. Can you post the full running configuration of this switch and one neigbor ?
12-12-2021 07:07 AM
Hello,
Can you share a few more outputs as
Show run | se r o
Show ip ospf inter br
show ip protocol
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide