Solved

OSPF routing HOW does it happen

Posted on 2004-04-28
6
1,815 Views
Last Modified: 2010-08-05
Basically I need a full example of a routing setup using OSPF to connect a computer thru 1 computer to another (or 1 computer to a router in this case), more details are below.

I'm trying to setup routing with OSPF because I had no luck whatsoever with static routing.  I prefer OSPF because it seems more fun the NAT or the other protocols...  This is WIn2k advanced server in Routing and Remote Access MMC console.

I have computers setup like this:

192.168.2.1 is the address of the NIC which is gateway: other computers are connected here.  192.168.2.108 is IP of the NIC which is connected to the Linksys router (the 2 are on the same computer).  Linksys router is 192.168.1.1.

192.168.2.1=mygateway, 192.168.2.108=connection-to-router, 192.168.1.1=linksys-router,... <-->to WAN
clients<--->192.168.2.1<--->192.168.2.108<--->192.168.1.1<--->WAN

gateway-using-computers would like to connect to WAN thru the first (192.168.1.1) computer.  



How to setup the OSPF areas and interfaces, and static routing (if static routing is needed)???????????????  I can't figure this one out at all.  I have no idea how to use destination and area together in which area, nor do I know how to use static routing (?????interface?????-destination-mask-gateway) and don't know if these need to be used together in order to make the router (win2k adv. server) a happy router.

Like which 'area' goes with which 'destination' and 'mask' and how many areas do I need etc. would be helpful..



So an example set of settings could really help me out here.  thanks yall!
0
Comment
Question by:happispider
  • 4
  • 2
6 Comments
 
LVL 31

Accepted Solution

by:
Gareth Gudger earned 400 total points
ID: 10938357
What subnet mask are you using? 255.255.255.0 default class C? If so they you have a single IP segement theoretically on two sides of a router. Plus that 192.168.2.108 is on a different IP subnet to the Linksys? Can you even connect to the internet from this multihomed machine?

I recommend changing 192.168.2.108 to 192.168.1.108 to put it on the same IP subnet as the Linksys router. Then OSPF should updates the routes after a few minutes and everything should work.
0
 
LVL 2

Author Comment

by:happispider
ID: 10940682
oops, I meant to say 192.168.2.108 was actually 192.168.1.108..  I'm using subnet 255.255.255.0.  I can connect to the internet thru the Linksysys router... (so yes on the multihomed computer I can connect too.)

In OSPF I have areas configured like this:
0.0.0.0...  destination=192.168.2.0 mask 255.255.255.0
0.0.0.1...  destination=192.168.1.0 mask 255.255.255.0

I added the 2 interfaces (one to the Linksys router, the other is connected to a computer which has it set as its default gateway) and have OSPF enabled for both.  One is in area 0.0.0.0, the other in 0.0.0.1

How else should I configure areas or should I also use static routing??
0
 
LVL 2

Author Comment

by:happispider
ID: 10944801
...  I found out that 192.168.2.108 was the actual IP address so I was using the wrong IP...  Hip-hip hooray, OSPF seems to be working OK with area 0.0.0.0=destination:192.168.2.0 mask 255.255.255.0 and area 0.0.0.1=destination:192.168.1.0 mask 255.255.255.0!!...
..............................

   But now DNS server on the multihomed computer won't work!!  DNS resolves OK but I want 192.168.2.1 (the router which is happily routing) to do the resolution.  I'm guessing that OSPF just routes everything that comes in just is passed out to the linksys router.  My router has seems to have diarhea.
   I ran tests in the DNS MMC console properties-->monitoring.  For awhile the tests failed, then they started passing, but I don't think my DNS server is really doing any resolving because its cache is always empty.

I know the client computer has gateway, wins, and DNS set to the computer router but it's not workling, here's configuration of the computer router's domain name server...
nameservers:
   thiscomputer.domain. | 192.168.2.1
   192.168.1.1               | 192.168.1.1 (linksys router)
   resolver1.level3.net    | 209.244.0.3
   resolver2.level3.net    | 209.244.0.4
'resolver' is a nameserver I believe my ISP uses.  It seemed to workin the past, or, the linksys router's DNS server was doing it I dunno.

Could this be a problem with binding order (properties of a connection-->advanced settings)?  I switched that around a little bit but I don't know how important it is.

Anyway my guess is that the router is routing everything thru it and nothing ever gets to its DNS server, which is bad so I'll try to fix that....  thanks digisaur for all your help!
0
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
LVL 2

Author Comment

by:happispider
ID: 10944840
Wow, I make another super-simple mistake and that was to not look at View-Advanced in the MMC console to notice there is a cache so everything's great now, thanks though.
0
 
LVL 31

Expert Comment

by:Gareth Gudger
ID: 10945180
OSPF is nice. I haven't played with it for years...but I remember if being a world of difference compared to RIPv2.
0
 
LVL 2

Author Comment

by:happispider
ID: 10970410
yup
0

Featured Post

Network it in WD Red

There's an industry-leading WD Red drive for every compatible NAS system to help fulfill your data storage needs. With drives up to 8TB, WD Red offers a wide array of solutions for customers looking to build the biggest, best-performing NAS storage solution.  

Question has a verified solution.

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

Trying to figure out group policy inheritance and which settings apply where can be a chore.  Here's a very simple summary I've written which might help.  Keep in mind, this is just a high-level conceptual overview where I try to avoid getting bogge…
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

863 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now