- Bronze, 100 points or more
Hi every body!
Could any body please give an example of standby 1 authentication md5 key-string 7?
Thanks a lot!
I may have unnecessarily confused you earlier. The service password encryption will encrypt passwords and encryption strings so that they are not clear text in the configuration. Service password-encryption will take "test" and encrypt it to "071B245F5A". The "071B245F5A" is the encrypted sting of "text". In order to have an encrypted password it must be followed by "7" so the router will know that it is encrypted otherwise "071B245F5A" would be your authentication key, and not test. Service password-encryption does not have to be enabled.
I hope this may have cleared up any confusion,
As you correctly pointed we append do show when in interface or global config mode to view show commands.
The include or (i) command includes only those lines in the configuration containing the regular expression specified.
eg: show run | i standby
shows only lines including "standby". Note that the text specified (standby) is case-sensitive. It provides the necessary filter to your output. In the above case, standby pertains to HSRP, so it shows configuration specific to HSRP.
The documentation below might help
You would not include the "7" if the string is not already encrypted. You would just type:
standby 1 authentication md5 key-string test
If you have service password-encryption enabled then it would automatically encrypt the string.
Then you would look at the config and it would like this:
standby 1 authentication md5 key-string 7 071B245F5A
Since I already have the string (example above) previously encrypted I can copy and paste the line in and you would need to include the "7".
Note: This is also the same with passwords too.