Book now with code EOY2025
Greenmet29 wrote: » huh.... I am able to log into enable mode via the VTY line, and I don't have an enable mode password set. This, btw, is on a 2950 switch running IOS 12.1. I think the next step is to try it on my other switch, also a 2950 running 12.1, and then on my routers to see if they behave differently.
Greenmet29 wrote: » I don't have an enable password set, but I have a line con 0, line vty 0 15 and a user name and password set for ssh/telnet (with no privilege set). My understanding is that if there is no enable password (or secret) set, that going into enable mode won't ask you for a password. But it is asking me for a password (the one set on line con0/vty0 15 works). Can someone explain this to me?
Router> Router>ena Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int l0 Router(config-if)#ip add 192.1 *Mar 1 00:01:37.823: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up68.1.1 % Incomplete command. Router(config-if)#ip add 192.168.1.1 255.255.255.0 Router(config-if)#exit Router(config)#line vty 0 4 Router(config-line)#login % Login disabled on line 162, until 'password' is set % Login disabled on line 163, until 'password' is set % Login disabled on line 164, until 'password' is set % Login disabled on line 165, until 'password' is set % Login disabled on line 166, until 'password' is set Router(config-line)#password cisco Router(config-line)#login Router(config-line)#exit Router(config)#exit Router#tel *Mar 1 00:02:05.799: %SYS-5-CONFIG_I: Configured from console by consolenet 192.168.1.1 Trying 192.168.1.1 ... Open User Access Verification Password: Router>exit [Connection to 192.168.1.1 closed by foreign host] Router#telnet 192.168.1.1 Trying 192.168.1.1 ... Open User Access Verification Password: Router>ena % No password set Router>ena % No password set Router>exit [Connection to 192.168.1.1 closed by foreign host] Router# Router#
Router# Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#service pass Router(config)#service password-encryption Router(config)#enable secret cisco Router(config)#exit Router#tel *Mar 1 00:03:09.635: %SYS-5-CONFIG_I: Configured from console by consolenet 192.168.1.1 Trying 192.168.1.1 ... Open User Access Verification Password: Router>ena Password: Router#exit [Connection to 192.168.1.1 closed by foreign host] Router# Router#
Router# Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#username admin secret cisco Router(config)#line vty 0 4 Router(config-line)#login local Router(config-line)#exi Router(config)#exit Router#telnet 19 *Mar 1 00:04:36.263: %SYS-5-CONFIG_I: Configured from console by console2.168.1.1 Trying 192.168.1.1 ... Open User Access Verification Username: admin Password: Router>ena Password: Router#exit [Connection to 192.168.1.1 closed by foreign host] Router#
Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#username admin privilege 15 Router(config)#exit *Mar 1 00:06:00.123: %SYS-5-CONFIG_I: Configured from console by conso Router#telnet 192.168.1.1 Trying 192.168.1.1 ... Open User Access Verification Username: admin Password: Router# Router# Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#exit Router#exit [Connection to 192.168.1.1 closed by foreign host] Router# *Mar 1 00:06:17.351: %SYS-5-CONFIG_I: Configured from console by admin on vty0 (192.168.1.1)
Building configuration... Current configuration : 1334 bytes ! version 12.1 no service pad service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Switch ! ! username user password 0 cisco ip subnet-zero ! ip ssh time-out 120 ip ssh authentication-retries 3 ! spanning-tree mode pvst no spanning-tree optimize bpdu transmission spanning-tree extend system-id ! ! ! ! interface FastEthernet0/1 ... ... interface GigabitEthernet0/2 ! interface Vlan1 ip address 192.168.3.100 255.255.255.0 no ip route-cache ! ip http server ! line con 0 password cisco1 login local line vty 0 4 password cisco2 login local line vty 5 15 password cisco2 login local ! ! end Switch#
User Access Verification Username: user Password: [cisco] Switch>en Password:[cisco] Password:[cisco2] Password:[cisco1] Switch#
Switch con0 is now available Press RETURN to get started. User Access Verification Username: user Password: Switch>en Switch#
Greenmet29 wrote: » Notice that there is no "enable password" or "enable Secret" in this... Telnet to 192.168.3.100... So in essence, the line password works as the enable password when using telnet/ssh. BUT when connecting via the console, enable mode doesn't require a password after getting into user mode.
IOS (tm) C2950 Software (C2950-I6K2L2Q4-M), Version 12.1(22)EA13, RELEASE SOFTWARE (fc2)
Current configuration : 1239 bytes ! version 12.1 no service pad service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Switch ! ! username admin password 0 cisco ip subnet-zero ! ip ssh time-out 120 ip ssh authentication-retries 3 ! spanning-tree mode pvst no spanning-tree optimize bpdu transmission spanning-tree extend system-id ! ! --More-- 00:06:16: %SYS-5-CONFIG_I: Configured from console ! e ! interface FastEthernet0/1 ! interface FastEthernet0/2 ! interface FastEthernet0/3 ! interface FastEthernet0/4 ! interface FastEthernet0/5 ! interface FastEthernet0/6 ! interface FastEthernet0/7 ! interface FastEthernet0/8 ! interface FastEthernet0/9 ! interface FastEthernet0/10 ! interface FastEthernet0/11 ! interface FastEthernet0/12 ! interface FastEthernet0/13 ! interface FastEthernet0/14 ! interface FastEthernet0/15 ! interface FastEthernet0/16 ! interface FastEthernet0/17 ! interface FastEthernet0/18 ! interface FastEthernet0/19 ! interface FastEthernet0/20 ! interface FastEthernet0/21 ! interface FastEthernet0/22 ! interface FastEthernet0/23 ! interface FastEthernet0/24 ! interface Vlan1 ip address 192.168.1.1 255.255.255.0 no ip route-cache ! ip http server ! line con 0 line vty 0 4 password cisco login local line vty 5 15 password cisco login local ! ! end
User Access Verification Username: admin Password: Switch>ena % No password set Switch>
Use code EOY2025 to receive $250 off your 2025 certification boot camp!