Can a router have two default routes set?

author

Afaik default route should be always only one. Is ot possible? What would happen? Apparently it is doable in Packet Tracer from Cisco, as connectivity works when I tried this.   Thanks!

  • Total 1 Answer
  • 3378
Can You answer this question?
author

Hi, 

Yes.  A router can have multiple default routers , but it is not recommended to configure more than one default route on  a router. If you do so, the router will get confused during packet forwarding. So the best practice is to configure a single default route on a router.

As per your question about packet tracer , it is because of per destination forwarding mechanism of CEF. You can read about CEF forwarding.

Hope it helps.

if you have any further query , comment it.

Whoops, looks like something went wrong.

1/1 ErrorException in Filesystem.php line 111: file_put_contents(/var/www/html/storage/framework/sessions/gMhpr4NN3o47U24y4yNPStpOCjbYZwUEL0XisVK7): failed to open stream: No space left on device

  1. in Filesystem.php line 111
  2. at HandleExceptions->handleError(2, 'file_put_contents(/var/www/html/storage/framework/sessions/gMhpr4NN3o47U24y4yNPStpOCjbYZwUEL0XisVK7): failed to open stream: No space left on device', '/var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php', 111, array('path' => '/var/www/html/storage/framework/sessions/gMhpr4NN3o47U24y4yNPStpOCjbYZwUEL0XisVK7', 'contents' => 'a:4:{s:6:"_token";s:40:"bksZwAhC7Axot72NUX1CJYrDVC9BwFAHw5P4UpUl";s:11:"viewed_urls";a:1:{i:0;s:40:"can-a-router-have-two-default-routes-set";}s:9:"_previous";a:1:{s:3:"url";s:68:"http://www.networkbulls.com/can-a-router-have-two-default-routes-set";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', 'lock' => true))
  3. at file_put_contents('/var/www/html/storage/framework/sessions/gMhpr4NN3o47U24y4yNPStpOCjbYZwUEL0XisVK7', 'a:4:{s:6:"_token";s:40:"bksZwAhC7Axot72NUX1CJYrDVC9BwFAHw5P4UpUl";s:11:"viewed_urls";a:1:{i:0;s:40:"can-a-router-have-two-default-routes-set";}s:9:"_previous";a:1:{s:3:"url";s:68:"http://www.networkbulls.com/can-a-router-have-two-default-routes-set";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', 2) in Filesystem.php line 111
  4. at Filesystem->put('/var/www/html/storage/framework/sessions/gMhpr4NN3o47U24y4yNPStpOCjbYZwUEL0XisVK7', 'a:4:{s:6:"_token";s:40:"bksZwAhC7Axot72NUX1CJYrDVC9BwFAHw5P4UpUl";s:11:"viewed_urls";a:1:{i:0;s:40:"can-a-router-have-two-default-routes-set";}s:9:"_previous";a:1:{s:3:"url";s:68:"http://www.networkbulls.com/can-a-router-have-two-default-routes-set";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', true) in FileSessionHandler.php line 83
  5. at FileSessionHandler->write('gMhpr4NN3o47U24y4yNPStpOCjbYZwUEL0XisVK7', 'a:4:{s:6:"_token";s:40:"bksZwAhC7Axot72NUX1CJYrDVC9BwFAHw5P4UpUl";s:11:"viewed_urls";a:1:{i:0;s:40:"can-a-router-have-two-default-routes-set";}s:9:"_previous";a:1:{s:3:"url";s:68:"http://www.networkbulls.com/can-a-router-have-two-default-routes-set";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}') in Store.php line 128
  6. at Store->save() in StartSession.php line 88
  7. at StartSession->terminate(object(Request), object(Response)) in Kernel.php line 216
  8. at Kernel->terminateMiddleware(object(Request), object(Response)) in Kernel.php line 187
  9. at Kernel->terminate(object(Request), object(Response)) in index.php line 58
  10. at require_once('/var/www/html/public/index.php') in index.php line 20