RE: IP default-network command in OSPF - useless?

From: Brant I. Stevens (branto@branto.com)
Date: Wed Oct 19 2005 - 11:54:48 GMT-3


The functionality you are looking for in OSPF is achieved with the
default-information originate command.

router ospf 1
 router-id 10.195.0.7
 log-adj-changes detail
 redistribute static subnets route-map static2ospf
 default-information originate metric 1000 metric-type 1
!

-Brant.

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Richard Dumoulin
Sent: Wednesday, October 19, 2005 10:49 AM
To: 'cciein2006@yahoo.com'; 'ccielab@groupstudy.com'
Subject: RE : IP default-network command in OSPF - useless?

But looks like the behavior is exactly the one described here
http://www.cisco.com/univercd/cc/td/doc/product/software/ios123/123tcr/123ti
p2r/ip2_i1gt.htm#wp1107222

-----Message d'origine-----
De : Richard Dumoulin
Envoyi : mercredi 19 octobre 2005 16:47
@ : 'cciein2006@yahoo.com'; ccielab@groupstudy.com Objet : RE : IP
default-network command in OSPF - useless?

This command comes from IGRP and is going to be removed from the IOS code
soon.
I have played with it in the past but I don't remember exactly his
behaviour. Anyway, I have been working for some years now in networking and
I still wonder how useful this command is :)

-- Richard

-----Message d'origine-----
De : nobody@groupstudy.com [mailto:nobody@groupstudy.com] De la part de
cciein2006@yahoo.com Envoyi : mercredi 19 octobre 2005 16:29 @ :
ccielab@groupstudy.com Objet : IP default-network command in OSPF - useless?

Hello group,

Does the IP default-network command work for OSPF? When I configure it on my
router the router creates a static summary route for the network specified
in the default-network command but does not inject a 0.0.0.0 in my routing
table (See example below). What good is that?

Also when I use the IP default-network command in conjunction with the
default information originate command it will not advertise a default route
without the "always" keyword.

My point is that if you have to use the "always" keyword, you don't even
need the default-network command because a default route will be advertised
regardless of whether a default route is in your routing table.

Any thoughts?

dental_ho#conf t
Enter configuration commands, one per line. End with CNTL/Z.
dental_ho(config)#
dental_ho(config)#ip default-network 128.10.1.0 dental_ho(config)#
1d02h: %SYS-5-CONFIG_I: Configured from console by console dental_ho#show ip
route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static
route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set <--- NO DEFAULT SET!!!

     172.16.0.0/16 is variably subnetted, 4 subnets, 3 masks
O IA 172.16.10.0/28 [110/74] via 172.16.1.1, 1d00h, Serial2/1.1
                       [110/74] via 172.16.1.6, 1d00h, Serial2/1.1
C 172.16.2.4/30 is directly connected, Serial2/1.2
C 172.16.1.0/24 is directly connected, Serial2/1.1
O 172.16.3.0/24 [110/65] via 172.16.2.6, 1d00h, Serial2/1.2
     128.10.0.0/16 is variably subnetted, 2 subnets, 2 masks
S 128.10.0.0/16 [1/0] via 128.10.1.0 <---WHAT GOOD IS THIS?!?
C 128.10.1.0/24 is directly connected, Ethernet0/0
dental_ho#



This archive was generated by hypermail 2.1.4 : Sun Nov 06 2005 - 22:00:51 GMT-3