05-01-2012 04:47 AM - edited 03-04-2019 04:13 PM
Hi Guys,
I am having some issues with ip default-network command on packet tracer.
I have a toplogy of few routers running rip version 2.
I have configured ip default network command on one router pointing to to candiddate networks (2 sepearte static routes with 2 separate ip default-network
command.)The command seems to work properly as i can reach an outside network via one candidate network only at one time(the one that is first in the routing table).
However ,the RIP-2 is not propogating the ip default-network static routes to other routers.Am i doing something wrong here ?Should i be using RIP rather than RIP-2 ? i have pointed classfull networks in the ip default-network command.
If any one wants to look at the PT file i can certainly attach it.
Regards,
Arjun Das
05-01-2012 07:07 AM
Arjun Das
We need more detail about the topology and the configuration that you have done before we can identify the real problem and suggest solution. I do not have anything that can read packet tracer files. So perhaps you can just post the information? At a minimum we would want to see the specific default-network commands and the output of show ip route. Any other details you can provide might be helpful.
HTH
Rick
05-01-2012 08:47 AM
Hi Richard,
All the details are below:(the topology is attached )
CBTRouter config
================
CBTrouter#show run
Building configuration...
hostname CBTrouter
!
!
!
interface FastEthernet0/0
description ###INTERNET ROUTER CONNCETION###
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial1/0
ip address 68.110.171.98 255.255.255.224
no cdp enable
clock rate 64000
!
interface Serial1/1
ip address 100.110.171.98 255.255.255.0
clock rate 64000
!
interface Serial1/2
no ip address
!
interface Serial1/3
no ip address
!
router rip
network 68.0.0.0
network 100.0.0.0
network 192.168.1.0
!
ip classless
ip default-network 4.0.0.0
ip default-network 5.0.0.0
!
end
CBTrouter#show ip route
Gateway of last resort is 68.110.171.97 to network 4.0.0.0
R* 4.0.0.0/8 [120/1] via 68.110.171.97, 00:00:16, Serial1/0
R* 5.0.0.0/8 [120/1] via 100.110.171.97, 00:00:21, Serial1/1
68.0.0.0/27 is subnetted, 1 subnets
C 68.110.171.96 is directly connected, Serial1/0
100.0.0.0/24 is subnetted, 1 subnets
C 100.110.171.0 is directly connected, Serial1/1
C 192.168.1.0/24 is directly connected, FastEthernet0/0
R 192.168.2.0/24 [120/1] via 192.168.1.2, 00:00:24, FastEthernet0/0
R 192.168.3.0/24 [120/2] via 192.168.1.2, 00:00:24, FastEthernet0/0
R1 config
===========
R1#show run
hostname R1
!
!
interface FastEthernet0/0
ip address 192.168.1.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial1/0
ip address 192.168.2.1 255.255.255.0
clock rate 64000
!
interface Serial1/1
no ip address
!
interface Serial1/2
no ip address
!
interface Serial1/3
no ip address
!
interface Vlan1
no ip address
shutdown
!
router rip
network 192.168.1.0
network 192.168.2.0
!
ip classless
!
end
R1#show ip route
Gateway of last resort is not set
R 4.0.0.0/8 [120/2] via 192.168.1.1, 00:00:18, FastEthernet0/0
R 5.0.0.0/8 [120/2] via 192.168.1.1, 00:00:18, FastEthernet0/0
R 68.0.0.0/8 [120/1] via 192.168.1.1, 00:00:18, FastEthernet0/0
R 100.0.0.0/8 [120/1] via 192.168.1.1, 00:00:18, FastEthernet0/0
C 192.168.1.0/24 is directly connected, FastEthernet0/0
C 192.168.2.0/24 is directly connected, Serial1/0
R 192.168.3.0/24 [120/1] via 192.168.2.2, 00:00:13, Serial1/0
R2 config
==============
R2#show run
hostname R2
!
interface FastEthernet0/0
ip address 192.168.3.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial1/0
ip address 192.168.2.2 255.255.255.0
!
interface Serial1/1
no ip address
!
interface Serial1/2
no ip address
!
interface Serial1/3
no ip address
!
interface Vlan1
no ip address
shutdown
!
router rip
network 192.168.2.0
network 192.168.3.0
!
ip classless
!
!
end
R2#show ip route
Gateway of last resort is not set
R 4.0.0.0/8 [120/3] via 192.168.2.1, 00:00:23, Serial1/0
R 5.0.0.0/8 [120/3] via 192.168.2.1, 00:00:23, Serial1/0
R 68.0.0.0/8 [120/2] via 192.168.2.1, 00:00:23, Serial1/0
R 100.0.0.0/8 [120/2] via 192.168.2.1, 00:00:23, Serial1/0
R 192.168.1.0/24 [120/1] via 192.168.2.1, 00:00:23, Serial1/0
C 192.168.2.0/24 is directly connected, Serial1/0
C 192.168.3.0/24 is directly connected, FastEthernet0/0
ISPRouter config
===================
ISProuter#show run
hostname ISProuter
!
!
interface Loopback1
ip address 4.2.2.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial1/0
ip address 68.110.171.97 255.255.255.224
!
interface Serial1/1
no ip address
!
interface Serial1/2
no ip address
!
interface Serial1/3
no ip address
!
interface Vlan1
no ip address
shutdown
!
router rip
network 4.0.0.0
network 68.0.0.0
!
ip classless
!
end
ISProuter#show ip route
Gateway of last resort is not set
4.0.0.0/24 is subnetted, 1 subnets
C 4.2.2.0 is directly connected, Loopback1
R 5.0.0.0/8 [120/2] via 68.110.171.98, 00:00:20, Serial1/0
68.0.0.0/27 is subnetted, 1 subnets
C 68.110.171.96 is directly connected, Serial1/0
R 100.0.0.0/8 [120/1] via 68.110.171.98, 00:00:20, Serial1/0
R 192.168.1.0/24 [120/1] via 68.110.171.98, 00:00:20, Serial1/0
R 192.168.2.0/24 [120/2] via 68.110.171.98, 00:00:20, Serial1/0
R 192.168.3.0/24 [120/3] via 68.110.171.98, 00:00:20, Serial1/0
ISPRouter2 config
==============
ISPRouter2#show run
hostname ISPRouter2
!
!
interface Loopback1
ip address 5.2.2.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial1/0
ip address 100.110.171.97 255.255.255.0
!
interface Serial1/1
no ip address
shutdown
!
interface Serial1/2
no ip address
shutdown
!
interface Serial1/3
no ip address
shutdown
!
interface Vlan1
no ip address
shutdown
!
router rip
network 5.0.0.0
network 100.0.0.0
!
ip classless
!
!
end
ISPRouter2#show ip route
Gateway of last resort is not set
R 4.0.0.0/8 [120/2] via 100.110.171.98, 00:00:25, Serial1/0
5.0.0.0/24 is subnetted, 1 subnets
C 5.2.2.0 is directly connected, Loopback1
R 68.0.0.0/8 [120/1] via 100.110.171.98, 00:00:25, Serial1/0
100.0.0.0/24 is subnetted, 1 subnets
C 100.110.171.0 is directly connected, Serial1/0
R 192.168.1.0/24 [120/1] via 100.110.171.98, 00:00:25, Serial1/0
R 192.168.2.0/24 [120/2] via 100.110.171.98, 00:00:25, Serial1/0
R 192.168.3.0/24 [120/3] via 100.110.171.98, 00:00:25, Serial1/0
05-01-2012 08:52 AM
Hi richard,
By the way i am now running RIP-1 in this lab.No static routes configured.I am using RIP in all routers.
used ip default-network on CBTrouter to point to 2 networks as candidate for default route.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide