[c-nsp] OSPF Route Distribution

Yuri Selivanov uri at tomsknet.ru
Thu Jul 27 22:33:45 EDT 2006


	Hi.

> On 7/27/06 11:43 AM, "John Smith" <jsmith19365 at yahoo.com> wrote:
> 
> > Greetings, 
> >    
> >   I have a question on OSPF. I have the following setup.
> >    
> >   ======================================
> > RouterA
> > !
> > interface Loopback0
> > ip address 192.168.1.1 255.255.255.255
> > !
> > interface FastEthernet0/0
> > ip address 10.10.10.2 255.255.255.0
> > ip ospf cost 100
> > speed 100
> > full-duplex
> > !
> > router ospf 100
> > network 10.10.10.2 0.0.0.0 area 2
> > network 192.168.1.1 0.0.0.0 area 2
> > !
> > ======================================
> > RouterB
> > !
> > interface Loopback0
> > ip address 192.168.1.2 255.255.255.255
> > !
> > interface FastEthernet0/0
> > ip address 10.10.10.3 255.255.255.0
> > ip ospf cost 100
> > speed 100
> > full-duplex
> > !
> > router ospf 100
> > network 10.10.10.3 0.0.0.0 area 2
> > network 192.168.1.2 0.0.0.0 area 2
> > !
> > ======================================
> >    
> >   Question - Do I have to add the following network statement to OSPF config
> > to distribute 10.10.10.0/24?

	Nope, you don't -- your network statements under ospf proc *EXACTLY*
cover fe0/0's addresses on both routers. So it will cause:

  - An ospf adj between RtA and RtB will be established.
  - 10.10.10.0/24 will be injected into ospf as intra-area route via
    Type1/Type2 LSAs. 

> >   network 10.10.10.0 0.255.255.255 area 2
                 ^^ ^^     ^^^ ^^^
	Hmm... you're dealing with /24, aren't you? :)

> >   Or can I just get away with the above config?

	Yes you can, your config is OK w/o any redistribution or extra network
statements -- just leave it as it is.

[snip]
 
> loopback0
> ip ospf network point-to-point

	It doesn't make any sense in John's case -- these are /32 loopbacks..

> Mike
> 
> 
> _______________________________________________
> cisco-nsp mailing list  cisco-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-nsp
> archive at http://puck.nether.net/pipermail/cisco-nsp/

-- 
Best Regards,
Yuri Selivanov [URI2-RIPE]


More information about the cisco-nsp mailing list