How to set Username and Password Restriction for Router Switch Console access in Packet Tracer.
Connecting Router and Switch to PC with Console Port instructions given in this link.
Create a topology like given below ,
To Enter into Global Configuration mode,Give this commands,
Router>enable
Router#config terminal
Now,we have to enter this command in global Configuration mode in Switch or Router
Router(config)#username cisco password cisco1
Router(config)#line con 0
Router(config-line)#login local
Router(config-line)#exit
Router(config)#exit
Router#
Above command is for Router and command for switch is same as router configuration.
Switch>enable
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
Switch(config)#username cisco password cisco1
Switch(config)#line con 0
Switch(config-line)#login local
Switch(config-line)#exit
Switch(config)#exit
Switch#
- Login local command in third line,instructs router and switch to authenticate console access with locally saved username and password that we saved in Router Switch startup configuration.
Above There is no difference between Router and Switch Console Configuration.
Now, Click on PC>Desktop>Terminal,
- Above method gives you clear view for people who thinks, how to configure console username and password in Cisco Router and Switch.
Post a Comment
Click to see the code!
To insert emoticon you must added at least one space before the code.