Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 
Community Member

ip default-network


In the IOS version that I use on my 2621 routers, when I use the ip default-network command and flag one of the major classful networks that I have as a candidate default. It propagtes a default route to its neighbors in the same routing domain leaving its own gateway of last resort as 'not set'. Neighbors have their gateway of last resort set to be via <next-hop> when using RIP.

If instead of specifying only a major network number, I specify a subnet and major network number in two separate ip default-network commands - strange things happen.

1) The gateway of last resort of the local router changes to the major network via subnet specified in ip default-network.

2) A static route that can only be removed using no ip default-network <subnet> appears in the config.

3) It no longer propagates the default route - which I thought was the point of this command.

Can anyone explain the purpose of providing a subnet for the ip default-network command? I don't get it.


Community Member

Re: ip default-network

Take a look at this site link. Hopefully it will help you understand a bit better.


Community Member

Re: ip default-network

Thanks for the link Frank. It helped.

As far as I can understand through reading this document and my own experimentation, when you provide a subnet of a major classful network to the ip default-network command and then flag the major network as well.

router(config)#ip default-network

router(config)#ip default-network

It changes the gateway of last resort locally, but doesn't propagate it to other routers.

It looks like an alternative way of setting the local gateway of last resort to be a specific network other than It doesn't say in the document, if it's supposed to propagate itself as the default route or not? My testing indicates that it doesn't.

I've also determined that static routes only get propagated with RIP when you specify an exit interface and flag the major network using the classful network number.

router(config)#ip route fa 0/0

router(config)#ip default-network

If I use the next hop address in the static route it doesn't get propagated.


CreatePlease to create content