<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: confused with &#8216;ip default-network&#8217; command</title>
	<atom:link href="http://www.networkingblog.in/confused-with-ip-default-network-command-10670/feed" rel="self" type="application/rss+xml" />
	<link>http://www.networkingblog.in/confused-with-ip-default-network-command-10670</link>
	<description>Cisco Netpro Blog</description>
	<lastBuildDate>Wed, 23 Jun 2010 06:07:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: karan</title>
		<link>http://www.networkingblog.in/confused-with-ip-default-network-command-10670/comment-page-1#comment-12034</link>
		<dc:creator>karan</dc:creator>
		<pubDate>Wed, 23 Jun 2010 06:07:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.networkingblog.in/?p=10670#comment-12034</guid>
		<description>&gt;&gt; What actually happens is, this doesn&#039;t happen when I have given &#039;no auto-summary&#039; command given in R1 and R2. But if I again say, &#039;auto-summary&#039; in R1 and R2, then in R3 I see the gateway of last resort set to R2.

 

the ip default-network command requires to use a major network (Class A, B,C) and works by setting a flag in the internal route data structure that tells that this IP network can be used to send packets without a route for their destination.

For this reason you need to use the network command under router eigrp in R1 (you have ip default-network on R1).

 

From this derives an interaction with auto-summary  settings:

because your loopback emulating the default network has actually a subnet of the major network 1.0.0.0/8 when auto-summary is disabled major network 1.0.0.0/8 is not advertised to EIGRP neighbors, and you don&#039;t see the gateway of last resort set on R2 and R3.

By enabling auto-summary the net 1.0.0.0/8 is advertised to R2 and the ip default network command becomes effective.

if you had used ip default network 192.168.3.0 and you had configured ip address 192.168.3.1 255.255.255.0 (mask = major network class this is a Class C) you should be able to see ip default network in action even with auto-summary disabled (no auto-summary).
2)  (this router) from the point  of view of EIGRP process the default network is outside the EIGRP domain and this just means that: at least one route is placed in EIGRP routing domain in local node and it is the default network.</description>
		<content:encoded><![CDATA[<p><!--INFOLINKS_ON-->>> What actually happens is, this doesn&#8217;t happen when I have given &#8216;no auto-summary&#8217; command given in R1 and R2. But if I again say, &#8216;auto-summary&#8217; in R1 and R2, then in R3 I see the gateway of last resort set to R2.</p>
<p>the ip default-network command requires to use a major network (Class A, B,C) and works by setting a flag in the internal route data structure that tells that this IP network can be used to send packets without a route for their destination.</p>
<p>For this reason you need to use the network command under router eigrp in R1 (you have ip default-network on R1).</p>
<p>From this derives an interaction with auto-summary  settings:</p>
<p>because your loopback emulating the default network has actually a subnet of the major network 1.0.0.0/8 when auto-summary is disabled major network 1.0.0.0/8 is not advertised to EIGRP neighbors, and you don&#8217;t see the gateway of last resort set on R2 and R3.</p>
<p>By enabling auto-summary the net 1.0.0.0/8 is advertised to R2 and the ip default network command becomes effective.</p>
<p>if you had used ip default network 192.168.3.0 and you had configured ip address 192.168.3.1 255.255.255.0 (mask = major network class this is a Class C) you should be able to see ip default network in action even with auto-summary disabled (no auto-summary).<br />
2)  (this router) from the point  of view of EIGRP process the default network is outside the EIGRP domain and this just means that: at least one route is placed in EIGRP routing domain in local node and it is the default network.<!--INFOLINKS_OFF--></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kumar</title>
		<link>http://www.networkingblog.in/confused-with-ip-default-network-command-10670/comment-page-1#comment-12033</link>
		<dc:creator>Kumar</dc:creator>
		<pubDate>Wed, 23 Jun 2010 06:06:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.networkingblog.in/?p=10670#comment-12033</guid>
		<description>I am not sure where the confusion is coming from.  But if you look at all three routers you see the default summary route for network 1.0.0.0/8 under the &quot;sh ip route&quot; command.  Also, you see the gateway of last resort has now been set.

 

R1#sh run
Building configuration...

router eigrp 100
network 1.0.0.0
network 10.0.0.0
auto-summary
no eigrp log-neighbor-changes
!
ip classless
ip default-network 1.0.0.0
ip http server
!

R1#sh ip route

Gateway of last resort is 0.0.0.0 to network 1.0.0.0

*   1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
D*      1.0.0.0/8 is a summary, 01:09:23, Null0

+++++
R2#sh run
Building configuration...

R2#sh ip route

Gateway of last resort is 10.10.10.1 to network 1.0.0.0

D*   1.0.0.0/8 [90/40640000] via 10.10.10.1, 01:11:53, Serial1

+++++
R3#sh run
Building configuration...

R3#sh ip route

Gateway of last resort is 20.20.20.1 to network 1.0.0.0

D*   1.0.0.0/8 [90/41152000] via 20.20.20.1, 01:13:47, Serial2

+++++

Here are few words from a Cisco &quot;pdf&quot; regarding the &quot;ip default-network&quot; command.  Maybe this will help as well.

 

ip default-network
Unlike the ip default-gateway command, you can use ip default-network when ip routing is enabled on the Cisco router.  When you configure ip default-network the router considers routes to that network for installation as the gateway of last resort on the router.  For every network configured with ip default-network, if a router has a route to that network, that route is flagged as a candidate default route.</description>
		<content:encoded><![CDATA[<p><!--INFOLINKS_ON-->I am not sure where the confusion is coming from.  But if you look at all three routers you see the default summary route for network 1.0.0.0/8 under the &#8220;sh ip route&#8221; command.  Also, you see the gateway of last resort has now been set.</p>
<p>R1#sh run<br />
Building configuration&#8230;</p>
<p>router eigrp 100<br />
network 1.0.0.0<br />
network 10.0.0.0<br />
auto-summary<br />
no eigrp log-neighbor-changes<br />
!<br />
ip classless<br />
ip default-network 1.0.0.0<br />
ip http server<br />
!</p>
<p>R1#sh ip route</p>
<p>Gateway of last resort is 0.0.0.0 to network 1.0.0.0</p>
<p>*   1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks<br />
D*      1.0.0.0/8 is a summary, 01:09:23, Null0</p>
<p>+++++<br />
R2#sh run<br />
Building configuration&#8230;</p>
<p>R2#sh ip route</p>
<p>Gateway of last resort is 10.10.10.1 to network 1.0.0.0</p>
<p>D*   1.0.0.0/8 [90/40640000] via 10.10.10.1, 01:11:53, Serial1</p>
<p>+++++<br />
R3#sh run<br />
Building configuration&#8230;</p>
<p>R3#sh ip route</p>
<p>Gateway of last resort is 20.20.20.1 to network 1.0.0.0</p>
<p>D*   1.0.0.0/8 [90/41152000] via 20.20.20.1, 01:13:47, Serial2</p>
<p>+++++</p>
<p>Here are few words from a Cisco &#8220;pdf&#8221; regarding the &#8220;ip default-network&#8221; command.  Maybe this will help as well.</p>
<p>ip default-network<br />
Unlike the ip default-gateway command, you can use ip default-network when ip routing is enabled on the Cisco router.  When you configure ip default-network the router considers routes to that network for installation as the gateway of last resort on the router.  For every network configured with ip default-network, if a router has a route to that network, that route is flagged as a candidate default route.<!--INFOLINKS_OFF--></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karan</title>
		<link>http://www.networkingblog.in/confused-with-ip-default-network-command-10670/comment-page-1#comment-12032</link>
		<dc:creator>karan</dc:creator>
		<pubDate>Wed, 23 Jun 2010 06:06:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.networkingblog.in/?p=10670#comment-12032</guid>
		<description>R3#sh run

Building configuration...

 

Current configuration : 1125 bytes

!

version 12.1

no service single-slot-reload-enable

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname R3

!

!

!

!

!

!

ip subnet-zero

no ip domain-lookup

!

!

!

!

interface Loopback0

ip address 3.3.3.3 255.255.255.0

!

interface Serial2

bandwidth 64

ip address 20.20.20.2 255.255.255.0

clockrate 64000

!

router eigrp 100

network 3.0.0.0

network 20.0.0.0

no auto-summary

no eigrp log-neighbor-changes

!

ip classless

ip http server

!

end

 

 

R3#sh ip route

 

Gateway of last resort is 20.20.20.1 to network 1.0.0.0

 

D*   1.0.0.0/8 [90/41152000] via 20.20.20.1, 01:13:47, Serial2

D    2.0.0.0/8 [90/40640000] via 20.20.20.1, 01:13:47, Serial2

     3.0.0.0/24 is subnetted, 1 subnets

C       3.3.3.0 is directly connected, Loopback0

     20.0.0.0/24 is subnetted, 1 subnets

C       20.20.20.0 is directly connected, Serial2

D    10.0.0.0/8 [90/41024000] via 20.20.20.1, 01:13:47, Serial2

 

 

R3#sh ip protocols

Routing Protocol is &quot;eigrp 100&quot;

  Outgoing update filter list for all interfaces is not set

  Incoming update filter list for all interfaces is not set

  Default networks flagged in outgoing updates

  Default networks accepted from incoming updates

  EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0

  EIGRP maximum hopcount 100

  EIGRP maximum metric variance 1

  Redistributing: eigrp 100

  Automatic network summarization is not in effect

  Maximum path: 4

  Routing for Networks:

    3.0.0.0

    20.0.0.0

  Routing Information Sources:

    Gateway         Distance      Last Update

    20.20.20.1            90      01:14:33

  Distance: internal 90 external 170</description>
		<content:encoded><![CDATA[<p><!--INFOLINKS_ON-->R3#sh run</p>
<p>Building configuration&#8230;</p>
<p>Current configuration : 1125 bytes</p>
<p>!</p>
<p>version 12.1</p>
<p>no service single-slot-reload-enable</p>
<p>service timestamps debug uptime</p>
<p>service timestamps log uptime</p>
<p>no service password-encryption</p>
<p>!</p>
<p>hostname R3</p>
<p>!</p>
<p>!</p>
<p>!</p>
<p>!</p>
<p>!</p>
<p>!</p>
<p>ip subnet-zero</p>
<p>no ip domain-lookup</p>
<p>!</p>
<p>!</p>
<p>!</p>
<p>!</p>
<p>interface Loopback0</p>
<p>ip address 3.3.3.3 255.255.255.0</p>
<p>!</p>
<p>interface Serial2</p>
<p>bandwidth 64</p>
<p>ip address 20.20.20.2 255.255.255.0</p>
<p>clockrate 64000</p>
<p>!</p>
<p>router eigrp 100</p>
<p>network 3.0.0.0</p>
<p>network 20.0.0.0</p>
<p>no auto-summary</p>
<p>no eigrp log-neighbor-changes</p>
<p>!</p>
<p>ip classless</p>
<p>ip http server</p>
<p>!</p>
<p>end</p>
<p>R3#sh ip route</p>
<p>Gateway of last resort is 20.20.20.1 to network 1.0.0.0</p>
<p>D*   1.0.0.0/8 [90/41152000] via 20.20.20.1, 01:13:47, Serial2</p>
<p>D    2.0.0.0/8 [90/40640000] via 20.20.20.1, 01:13:47, Serial2</p>
<p>     3.0.0.0/24 is subnetted, 1 subnets</p>
<p>C       3.3.3.0 is directly connected, Loopback0</p>
<p>     20.0.0.0/24 is subnetted, 1 subnets</p>
<p>C       20.20.20.0 is directly connected, Serial2</p>
<p>D    10.0.0.0/8 [90/41024000] via 20.20.20.1, 01:13:47, Serial2</p>
<p>R3#sh ip protocols</p>
<p>Routing Protocol is &#8220;eigrp 100&#8243;</p>
<p>  Outgoing update filter list for all interfaces is not set</p>
<p>  Incoming update filter list for all interfaces is not set</p>
<p>  Default networks flagged in outgoing updates</p>
<p>  Default networks accepted from incoming updates</p>
<p>  EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0</p>
<p>  EIGRP maximum hopcount 100</p>
<p>  EIGRP maximum metric variance 1</p>
<p>  Redistributing: eigrp 100</p>
<p>  Automatic network summarization is not in effect</p>
<p>  Maximum path: 4</p>
<p>  Routing for Networks:</p>
<p>    3.0.0.0</p>
<p>    20.0.0.0</p>
<p>  Routing Information Sources:</p>
<p>    Gateway         Distance      Last Update</p>
<p>    20.20.20.1            90      01:14:33</p>
<p>  Distance: internal 90 external 170<!--INFOLINKS_OFF--></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kumar</title>
		<link>http://www.networkingblog.in/confused-with-ip-default-network-command-10670/comment-page-1#comment-12031</link>
		<dc:creator>Kumar</dc:creator>
		<pubDate>Wed, 23 Jun 2010 06:06:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.networkingblog.in/?p=10670#comment-12031</guid>
		<description>R2#sh run

Building configuration...

 

Current configuration : 1146 bytes

!

version 12.1

no service single-slot-reload-enable

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname R2

!

!

!

!

!

!

ip subnet-zero

no ip domain-lookup

!

!

!

!

interface Loopback0

ip address 2.2.2.2 255.255.255.0

!

!

interface Serial1

bandwidth 64

ip address 10.10.10.2 255.255.255.0

clockrate 64000

!

interface Serial2

bandwidth 64

ip address 20.20.20.1 255.255.255.0

!

router eigrp 100

network 2.0.0.0

network 10.0.0.0

network 20.0.0.0

auto-summary

no eigrp log-neighbor-changes

!

ip classless

ip http server

!

end

 

 

 

 

 

 

R2#sh ip route

 

Gateway of last resort is 10.10.10.1 to network 1.0.0.0

 

D*   1.0.0.0/8 [90/40640000] via 10.10.10.1, 01:11:53, Serial1

     2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

D       2.0.0.0/8 is a summary, 01:11:58, Null0

C       2.2.2.0/24 is directly connected, Loopback0

     3.0.0.0/24 is subnetted, 1 subnets

D       3.3.3.0 [90/40640000] via 20.20.20.2, 01:11:50, Serial2

     20.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

D       20.0.0.0/8 is a summary, 01:11:58, Null0

C       20.20.20.0/24 is directly connected, Serial2

     10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

D       10.0.0.0/8 is a summary, 01:11:59, Null0

C       10.10.10.0/24 is directly connected, Serial1

 

 

 

 

 

 

R2#sh ip protocols

Routing Protocol is &quot;eigrp 100&quot;

  Outgoing update filter list for all interfaces is not set

  Incoming update filter list for all interfaces is not set

  Default networks flagged in outgoing updates

  Default networks accepted from incoming updates

  EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0

  EIGRP maximum hopcount 100

  EIGRP maximum metric variance 1

  Redistributing: eigrp 100

  Automatic network summarization is in effect

  Automatic address summarization:

    20.0.0.0/8 for Loopback0, Serial1

      Summarizing with metric 40512000

    10.0.0.0/8 for Loopback0, Serial2

      Summarizing with metric 40512000

    2.0.0.0/8 for Serial1, Serial2

      Summarizing with metric 128256

  Maximum path: 4

  Routing for Networks:

    2.0.0.0

    10.0.0.0

    20.0.0.0

  Routing Information Sources:

    Gateway         Distance      Last Update

    (this router)         90      01:12:35

    10.10.10.1            90      01:12:26

    20.20.20.2            90      01:12:25

  Distance: internal 90 external 170</description>
		<content:encoded><![CDATA[<p><!--INFOLINKS_ON-->R2#sh run</p>
<p>Building configuration&#8230;</p>
<p>Current configuration : 1146 bytes</p>
<p>!</p>
<p>version 12.1</p>
<p>no service single-slot-reload-enable</p>
<p>service timestamps debug uptime</p>
<p>service timestamps log uptime</p>
<p>no service password-encryption</p>
<p>!</p>
<p>hostname R2</p>
<p>!</p>
<p>!</p>
<p>!</p>
<p>!</p>
<p>!</p>
<p>!</p>
<p>ip subnet-zero</p>
<p>no ip domain-lookup</p>
<p>!</p>
<p>!</p>
<p>!</p>
<p>!</p>
<p>interface Loopback0</p>
<p>ip address 2.2.2.2 255.255.255.0</p>
<p>!</p>
<p>!</p>
<p>interface Serial1</p>
<p>bandwidth 64</p>
<p>ip address 10.10.10.2 255.255.255.0</p>
<p>clockrate 64000</p>
<p>!</p>
<p>interface Serial2</p>
<p>bandwidth 64</p>
<p>ip address 20.20.20.1 255.255.255.0</p>
<p>!</p>
<p>router eigrp 100</p>
<p>network 2.0.0.0</p>
<p>network 10.0.0.0</p>
<p>network 20.0.0.0</p>
<p>auto-summary</p>
<p>no eigrp log-neighbor-changes</p>
<p>!</p>
<p>ip classless</p>
<p>ip http server</p>
<p>!</p>
<p>end</p>
<p>R2#sh ip route</p>
<p>Gateway of last resort is 10.10.10.1 to network 1.0.0.0</p>
<p>D*   1.0.0.0/8 [90/40640000] via 10.10.10.1, 01:11:53, Serial1</p>
<p>     2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks</p>
<p>D       2.0.0.0/8 is a summary, 01:11:58, Null0</p>
<p>C       2.2.2.0/24 is directly connected, Loopback0</p>
<p>     3.0.0.0/24 is subnetted, 1 subnets</p>
<p>D       3.3.3.0 [90/40640000] via 20.20.20.2, 01:11:50, Serial2</p>
<p>     20.0.0.0/8 is variably subnetted, 2 subnets, 2 masks</p>
<p>D       20.0.0.0/8 is a summary, 01:11:58, Null0</p>
<p>C       20.20.20.0/24 is directly connected, Serial2</p>
<p>     10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks</p>
<p>D       10.0.0.0/8 is a summary, 01:11:59, Null0</p>
<p>C       10.10.10.0/24 is directly connected, Serial1</p>
<p>R2#sh ip protocols</p>
<p>Routing Protocol is &#8220;eigrp 100&#8243;</p>
<p>  Outgoing update filter list for all interfaces is not set</p>
<p>  Incoming update filter list for all interfaces is not set</p>
<p>  Default networks flagged in outgoing updates</p>
<p>  Default networks accepted from incoming updates</p>
<p>  EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0</p>
<p>  EIGRP maximum hopcount 100</p>
<p>  EIGRP maximum metric variance 1</p>
<p>  Redistributing: eigrp 100</p>
<p>  Automatic network summarization is in effect</p>
<p>  Automatic address summarization:</p>
<p>    20.0.0.0/8 for Loopback0, Serial1</p>
<p>      Summarizing with metric 40512000</p>
<p>    10.0.0.0/8 for Loopback0, Serial2</p>
<p>      Summarizing with metric 40512000</p>
<p>    2.0.0.0/8 for Serial1, Serial2</p>
<p>      Summarizing with metric 128256</p>
<p>  Maximum path: 4</p>
<p>  Routing for Networks:</p>
<p>    2.0.0.0</p>
<p>    10.0.0.0</p>
<p>    20.0.0.0</p>
<p>  Routing Information Sources:</p>
<p>    Gateway         Distance      Last Update</p>
<p>    (this router)         90      01:12:35</p>
<p>    10.10.10.1            90      01:12:26</p>
<p>    20.20.20.2            90      01:12:25</p>
<p>  Distance: internal 90 external 170<!--INFOLINKS_OFF--></p>
]]></content:encoded>
	</item>
</channel>
</rss>

