The configurations will be applied to only those ports mentioned in the command
eg. if you have 16 vty lines and you configure
line vty 0 4
then the password wont be applied to the lines 5 to 15
u mean i will have to go :
line vty 0 1
line vty 0 2
line vty 0 16
2nd question please, i have applied : live vty 0 15
when i run the show run command, i can see the telnet password, how can i encrypt it , so that the person setting next to me does it read it in plain english ?
Yes it will, but you are probably already using an enable secret, which is already encrypted as standard, and much more securely.
Password encryption is pretty weak - there are loads of tools on the Internet to crack them in no time at all. If there is any possibility that someone gets hold of your config listings, you are better off defining a "secret" for each user rather than a "password". (Or even using an authentication server, but that will start getting more complicated and expensive.)
Encrypted passwords are tagged with a '7' in the config listing, and are weak. Secrets are tagged with a '5' and are quite a lot stronger.
this is now my configuration :
line con 0
line vty 0 4
line vty 5 15
as u can see there are 2 lines line vty .
my boss configured the switches, when i asked him what did u insert as a commands, he told me as follows :
line vty o 15
enable secret mypass
what is the first password for and what is the second password for ?
vty 0 15 means vty lines 0 to 15 inclusive. Any commants you enter after that will be applied to all 16 of those lines.
However, when you show an IOS configuration, it shows vty lines 0 to 4 seperately from lines 5 to 15, even if the configurations on the two ranges are identical. Not sure why, but it has always done that.
For example, if you do line vty 5 7 and you enter some (different) commands, you will get three blocks in config: line vty 0 4, then line vty 5 7, then line vty 8 15. That is, it groups them together if it can, except that lines vty 0 to 4 are kept seperate from the rest.
It is only cosmetic.