05-04-2023 10:28 PM
Dear colleagues,
I am currently working on a network topology and facing difficulties when trying to ping from any of the computers to the IP address 172.31.250.4, which corresponds to the first router on the left. My plan is to configure NAT between the routers; however, I must first address the issues related to HSRP and OSPF.
The problem with OSPF is that the routes are not being advertised on Router 1, despite having them included in the "network" configuration. I am unsure if the issue is related to HSRP or OSPF. All commands and configurations can be found in the attached file.
Solved! Go to Solution.
05-05-2023 08:43 AM - last edited on 05-07-2023 07:04 PM by Translator
Hi @angelgoron ,
There are a few things here.
The main issue is that both
swc01 and swc02 have the same ospf router id (192.168.30.253)
This is due to the fact that this address is configured on both routers (see recommendations below). You should go and manually specify the router id as follow:
swc01:
router ospf 1
router-id 172.31.250.2
swc02:
router ospf 1
router-id 172.31.250.3
you should do a
clear ip ospf process
after making that change.
This will cause the 3 prefixes
(192.168.10.0/24, 192.168.20.0/24 and 192.168.30.0/24)
to be learnt on RT01 and you will be able to ping from the PCs to 172.31.250.4
Another thing you should fix is that both swc01 and swc02 use the same primary address on vlan10, vlan20 and vlan30.
You should use
192.168.10.252, 192.168.20.252 and 192.168.30.252 on swc01
I would also recommend you configure
"passive-interface vlan10", "passive-interface vlan20", "passive-interface vlan30"
on both swc01 and swc02, as you do not usually establish ospf neighborship through user facing interface.
Regards,
05-04-2023 10:38 PM - last edited on 05-07-2023 06:52 PM by Translator
Hello @angelgoron,
Do you verify that the routing table on each router has the correct entries and that the routes are being learned from OSPF? Use the
show ip route
command to check the routing table and look for the entries for the network you are trying to reach.
05-04-2023 10:59 PM - last edited on 05-07-2023 06:53 PM by Translator
This is my primary concern. The IP addresses have been set up in both core switch. These are the three VLANs that I have established. When I execute the
show ip routes
command on my core switch, I can see that they are directly connected. Consequently, when OSPF is activated between the two core switches and the router, adjacency is established (as shown in the
show ip ospf neighbor
command), and the networks are set up (including the VLANs on the router). However, the routes are not being established by OSPF.
05-05-2023 08:43 AM - last edited on 05-07-2023 07:04 PM by Translator
Hi @angelgoron ,
There are a few things here.
The main issue is that both
swc01 and swc02 have the same ospf router id (192.168.30.253)
This is due to the fact that this address is configured on both routers (see recommendations below). You should go and manually specify the router id as follow:
swc01:
router ospf 1
router-id 172.31.250.2
swc02:
router ospf 1
router-id 172.31.250.3
you should do a
clear ip ospf process
after making that change.
This will cause the 3 prefixes
(192.168.10.0/24, 192.168.20.0/24 and 192.168.30.0/24)
to be learnt on RT01 and you will be able to ping from the PCs to 172.31.250.4
Another thing you should fix is that both swc01 and swc02 use the same primary address on vlan10, vlan20 and vlan30.
You should use
192.168.10.252, 192.168.20.252 and 192.168.30.252 on swc01
I would also recommend you configure
"passive-interface vlan10", "passive-interface vlan20", "passive-interface vlan30"
on both swc01 and swc02, as you do not usually establish ospf neighborship through user facing interface.
Regards,
05-05-2023 12:56 PM
Dear Harold Ritter,
I hope this message finds you well. I would like to express my deepest gratitude for the help and support you have provided. Your expertise, knowledge, and guidance have been invaluable in overcoming the challenges I faced.
05-05-2023 02:03 PM
You are very welcome @angelgoron and thanks for the feedback
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