11-23-2019 06:41 PM
We are going to use Cisco layer 3 switches instead of WAN routers for connecting two locations via MPLS. To prepare for the installation, I set up a test environment to test the configuration of routed interfaces. I was able to get two endpoint laptops to communicate by using static routes. After replacing the static routes with OSPF, however, the two laptops can no longer PING each other.
Here is the config of the two switches:
| Switch 1 (Cisco 3750) Configuration ! ip routing ! interface GigabitEthernet1/0/2 no switchport ip address 10.10.200.106 255.255.255.252 ! interface Vlan1 ip address 172.20.1.1 255.255.254.0 ! router ospf 1 network 10.10.200.104 0.0.0.3 area 102 network 172.20.0.0 0.0.1.255 area 1 |
Switch 2 (Cisco 3650) Configuration |
Trouble-shooting on Switch 1
#sh ip route
#sh ip ospf int br
#sh ip ospf nei
#sh ip route (no routes returned) |
Trouble-shooting on Switch 2
#sh ip route
#sh ip ospf int br
#sh ip ospf nei
#sh ip route ospf |
This is just a very simple setup and I was able to get the two laptops to connect to each other by using static routes. Did I miss anything in OSPF settings?
Solved! Go to Solution.
11-23-2019 10:46 PM
Hi,
In OSPF, you will need the backbone area (area 0) in order exchange route between other areas (area 1, area 2, ...). In your case, you will need to replace area 102 with area 0.
If you have any questions, please let us know.
HTH,
Meheretab
11-23-2019 10:46 PM
Hi,
In OSPF, you will need the backbone area (area 0) in order exchange route between other areas (area 1, area 2, ...). In your case, you will need to replace area 102 with area 0.
If you have any questions, please let us know.
HTH,
Meheretab
11-26-2019 12:53 PM
Thanks for the catch. I missed area ZERO in the design. I did exactly as suggested and problem solved.
11-24-2019 12:28 AM
Hello,
on a side note, if you don't want to use area 0, you can also just use one area:
Switch 1
router ospf 1
network 10.10.200.104 0.0.0.3 area 102
network 172.20.0.0 0.0.1.255 area 102
Switch 2
router ospf 2
network 10.10.200.104 0.0.0.3 area 102
network 172.20.2.0 0.0.0.255 area 102
Switch 1
router ospf 1
network 10.10.200.104 0.0.0.3 area 1
network 172.20.0.0 0.0.1.255 area 1
Switch 2
router ospf 2
network 10.10.200.104 0.0.0.3 area 1
network 172.20.2.0 0.0.0.255 area 1
11-26-2019 12:55 PM
Yes, that too. Having a single network area 0 will also work in the test environment. Thank you.
11-24-2019 12:07 PM
Hi,
Not sure why do you need so many areas, however it is your choice.
Try to simplify the design by configuring all your switches as backbone routers first (all subnets/interfaces belong to area 0), if you need multi-area design (for summarizing and segmentation), put interconnect interfaces to backbone and vlan interfaces to another area.
Hope it helps 🙂
11-26-2019 01:10 PM
The use of Area 0 fixed the issue. That was my negligence (or ignorance) for missing it.
Now I am going to use OSPF for connecting two sites (main & branch) on MPLS. Attached is a network diagram for the setup.
Site 1
Internal LAN - CPE Router - CPE Router - CE Router - PE Router - MPLS Cloud
OSPF Area 1: Between internal LAN and CPE
OSPF Area 101: Between CPE & CE
Site 2
Internal LAN - CPE Router - CPE Router - CE Router - PE Router - MPLS Cloud
OSPF Area 2: Between internal LAN and CPE
OSPF Area 102: Between CPE & CE
I have just learned from the carrier that there will not be using Area 0 at their end. That means I will have to change the area numbers in order to get OSPF to work properly. Can I simply change area 2 of site 2 to area 0? Or, are there any better way of using the area numbers? Any suggestions?
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