I am taking console of a router in GNS and its directly login into enable mode. How to restrict a router to login into user mode instead of enable mode?

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

Hi, 

This is because of the privilege level 15 commands , which is by default enable on routers in gns3.

line con 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
 stopbits 1
 

If you want to restrict a router to login into user mode instead of enable mode, you have to run the following commands:-

router(config)#line con 0

router(config-line)#no privilege level 15

router(config-line)# exit

router(config)# do wr

 

Hope it helps.

 

Thanks

 

Whoops, looks like something went wrong.

1/1 ErrorException in Filesystem.php line 111: file_put_contents(/var/www/html/storage/framework/sessions/jp1Pv1p7IjsVVrFbepRYfMGUBBzX0UvGpM7dQI4f): 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/jp1Pv1p7IjsVVrFbepRYfMGUBBzX0UvGpM7dQI4f): 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/jp1Pv1p7IjsVVrFbepRYfMGUBBzX0UvGpM7dQI4f', 'contents' => 'a:4:{s:6:"_token";s:40:"JoLpAOZ5s92OHJzA7lrt2pDWgLDMbYfsp9X8TKiH";s:11:"viewed_urls";a:1:{i:0;s:150:"i-am-taking-console-of-a-router-in-gns-and-its-directly-login-into-enable-mode-how-to-restrict-a-router-to-login-into-user-mode-instead-of-enable-mode";}s:9:"_previous";a:1:{s:3:"url";s:178:"http://www.networkbulls.com/i-am-taking-console-of-a-router-in-gns-and-its-directly-login-into-enable-mode-how-to-restrict-a-router-to-login-into-user-mode-instead-of-enable-mode";}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/jp1Pv1p7IjsVVrFbepRYfMGUBBzX0UvGpM7dQI4f', 'a:4:{s:6:"_token";s:40:"JoLpAOZ5s92OHJzA7lrt2pDWgLDMbYfsp9X8TKiH";s:11:"viewed_urls";a:1:{i:0;s:150:"i-am-taking-console-of-a-router-in-gns-and-its-directly-login-into-enable-mode-how-to-restrict-a-router-to-login-into-user-mode-instead-of-enable-mode";}s:9:"_previous";a:1:{s:3:"url";s:178:"http://www.networkbulls.com/i-am-taking-console-of-a-router-in-gns-and-its-directly-login-into-enable-mode-how-to-restrict-a-router-to-login-into-user-mode-instead-of-enable-mode";}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/jp1Pv1p7IjsVVrFbepRYfMGUBBzX0UvGpM7dQI4f', 'a:4:{s:6:"_token";s:40:"JoLpAOZ5s92OHJzA7lrt2pDWgLDMbYfsp9X8TKiH";s:11:"viewed_urls";a:1:{i:0;s:150:"i-am-taking-console-of-a-router-in-gns-and-its-directly-login-into-enable-mode-how-to-restrict-a-router-to-login-into-user-mode-instead-of-enable-mode";}s:9:"_previous";a:1:{s:3:"url";s:178:"http://www.networkbulls.com/i-am-taking-console-of-a-router-in-gns-and-its-directly-login-into-enable-mode-how-to-restrict-a-router-to-login-into-user-mode-instead-of-enable-mode";}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('jp1Pv1p7IjsVVrFbepRYfMGUBBzX0UvGpM7dQI4f', 'a:4:{s:6:"_token";s:40:"JoLpAOZ5s92OHJzA7lrt2pDWgLDMbYfsp9X8TKiH";s:11:"viewed_urls";a:1:{i:0;s:150:"i-am-taking-console-of-a-router-in-gns-and-its-directly-login-into-enable-mode-how-to-restrict-a-router-to-login-into-user-mode-instead-of-enable-mode";}s:9:"_previous";a:1:{s:3:"url";s:178:"http://www.networkbulls.com/i-am-taking-console-of-a-router-in-gns-and-its-directly-login-into-enable-mode-how-to-restrict-a-router-to-login-into-user-mode-instead-of-enable-mode";}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 59
  10. at require_once('/var/www/html/public/index.php') in index.php line 20