Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Configuring OSPF with loopback address

Posted on 2008-10-28
8
Medium Priority
?
2,830 Views
Last Modified: 2008-10-28
I'm at it again using the simulator.  I'm trying to configure three routers to talk to each other using OSPF.  Each of these routers have loopback address.  Is this the right way to configure the routers (especially the second router with two interfaces?  (all routers in area 0)  I don't know if the wildcard masks should say exact address or 0.0.255.255 since all the routers are in area 0.  Thank you!

Router1 (IP 192.168.1.1/24, Loop 10.10.10.1/24):
R1(config)#router ospf 1
R1(config-router)#network 192.168.1.1  0.0.0.0 area 0
R1(config)int loopback 0
R1(config)ip address 10.10.10.1 255.255.255.0
no shutdown

Router2 (IP 192.168.1.2 & 192.168.2.2, Loop 172.20.100.1):
R1(config)#router ospf 2
R1(config-router)#network 192.168.1.2  0.0.0.0 area 0
R1(config-router)#network 192.168.2.2  0.0.0.0 area 0
R1(config)int loopback 0
R1(config)ip address 172.20.100.1 255.255.255.0
no shutdown

Router3 (IP 192.168.2.1/24, Loop 172.16.100.1/24):
R3(config)#router ospf 3
R3(config-router)#network 192.168.2.1 0.0.0.0 area 0
R3(config)int loopback 0
R3(oncifg)ip address 172.16.100.1 255.255.255.0
no shutdown
0
Comment
Question by:elly960
  • 4
  • 3
8 Comments
 
LVL 43

Expert Comment

by:JFrederick29
ID: 22822220
That will work but if you want to be able to communicate between loopbacks, add them to OSPF as well.

R1(config-router)#network 10.10.10.1 0.0.0.0 area 0

R2(config-router)#network 172.20.100.1 0.0.0.0 area 0

R3(config-router)#network 172.16.100.1 0.0.0.0 area 0
0
 
LVL 23

Expert Comment

by:that1guy15
ID: 22822304
You are right about the wildcard mask. 0.0.255.255 and 0.0.0.0 will both work but 0.0.255.255 will be more efficient.
0
 
LVL 43

Accepted Solution

by:
JFrederick29 earned 500 total points
ID: 22822409
Better yet, if you want to run OSPF on all interfaces, simply do this:

R1(config)#router ospf 1
R1(config-router)#network 0.0.0.0 255.255.255.255 area 0

R1(config)#router ospf 2
R1(config-router)#network 0.0.0.0 255.255.255.255 area 0

R3(config)#router ospf 3
R3(config-router)#network 0.0.0.0 255.255.255.255 area 0

"0.0.0.0 255.255.255.255" matches all interfaces on the router.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:elly960
ID: 22822861
JFrederick,
Using your idea above, s this correct?

R1:
int g1/0
ip address 192.168.1.1 255.255.255.0
no shutdown
int loopback 0
ip address 10.10.10.1 255.255.255.0
no shutdown
R1(config)#router ospf 1
R1(config-router)#network 0.0.0.0 255.255.255.255 area 0

R2:
int g1/0
ip address 192.168.1.2 255.255.255.0
no shutdown
ing g2/0
ip address 192.168.2.2 255.255.255.0
no shutdown
int loopback 0
ip address 172.20.100.1 255.255.255.0
no shutdown
R2(config)#router ospf 2
R2(config-router)#network 0.0.0.0 255.255.255.255 area 0

R3:
int g1/0
ip address 192.168.2.1 255.255.255.0
no shutdown
int loopback 0
ip address 172.16.100.1 255.255.255.0
no shutdown
R3(config)#router ospf 3
R3(config-router)#network 0.0.0.0 255.255.255.255 area 0
0
 
LVL 43

Expert Comment

by:JFrederick29
ID: 22822923
Looks good.  All interfaces will run OSPF.
0
 

Author Comment

by:elly960
ID: 22823538
It worked great!  A quick question... when would I use the IP specific wildcard mask instead of 255.255.255.255?
0
 
LVL 43

Expert Comment

by:JFrederick29
ID: 22823574
Well, this should only be used in instances when you desire running OSPF on "ALL" router interfaces in the "SAME" area.  In a multi-area OSPF setup, this won't work for you since you need to specify different areas per network/interface.
0
 

Author Comment

by:elly960
ID: 22823866
Thank you so much for all your help!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It happens many times that access list (ACL) have to be applied to outgoing router interface in order to limit some traffic.This article is about how to test ACL from the router which is not very intuitive for everyone. Below scenario shows simple s…
This article is a guide to configure bridging on Cisco Routers.  This is something I never knew was possible until after making a few phone calls to Cisco.  Using bridging saved our company money by not requiring us to purchase a new switch.  Bridgi…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question