default gateway clarification

Answered Question
Apr 11th, 2008

Hi. Given a setup where routerA with ip add 10.0.1.1/24 on s0 which is connected to s1 of routerB which in turn has s0 with ip add of 10.0.2.1/24 connected to s1 of another router, routerC, with ip add of 10.0.2.2/24. Using tftpdnld, what should be the default gateway if routerC is acting as the tftp server?


Thanks.

Correct Answer by Jon Marshall about 8 years 10 months ago

"I am inclined to think that the default gateway would be the interface of routerB facing routerA. Is this correct?"


Yes it would be.


Jon

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Jon Marshall Fri, 04/11/2008 - 02:01

You can either


1) add specific routes to router's A & C ie.


router A


ip route 10.0.2.0 255.255.255.0 10.0.1.2


router C


ip route 10.0.1.0 255.255.255.0 10.0.2.1


or


2) instead of specific routes just add a default-route to A & C


ip route 0.0.0.0 0.0.0.0 10.0.1.2

&

ip route 0.0.0.0 0.0.0.0 10.0.2.1


Only if the routers are acting as hosts ie. not routing, would you use a default-gateway on a router.


Jon

marcusbrutus Fri, 04/11/2008 - 03:17

Hi Jon. Thanks for the reply. My question is in a scenario where I am in rommon mode of routerA without a valid IOS. So i guess i would be defining the ip add of the router, subnetmask, tftp ip add, and default gateway in rommon. Afterwards i would be executing the tftpdnld command in rommon. I just need to verify what default gateway ip to enter in routerA prior running tftpdnld. RouterA is sequentially connected to routerB and routerB is sequentially connected to routerC which is the tftp server. I am inclined to think that the default gateway would be the interface of routerB facing routerA. Is this correct?

Correct Answer
Jon Marshall Fri, 04/11/2008 - 05:04

"I am inclined to think that the default gateway would be the interface of routerB facing routerA. Is this correct?"


Yes it would be.


Jon

Actions

This Discussion