Configuring a Router to Support SDM
Step 1: Enable the HTTP and HTTPS servers
Enable the HTTP and HTTPS servers on your router by entering the following commands in global configuration mode:
1 2 3 4 5 6 7 | Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# ip http server Router(config)# ip http secure-server Router(config)# ip http authentication local Router(config)# ip http timeout-policy idle 600 life 86400 requests 10000 |
If the router supports HTTPS, the HTTPS server will be enabled. If not, the HTTP server will be enabled. HTTPS is supported in all images that support the Crypto/IPSec feature set, starting from Cisco IOS release 12.25(T).
Step 2: Create a user account defined with privilege level 15 (enable privileges).
Enter the following command in global configuration mode, replacing username and password with the strings that you want to use: Router(config)# username username privilege 15 secret 0 password
For example, if you chose the username shaukat and the password Sc_Password, you would enter:
1 | Router(config)# username shaukat privilege 15 secret 0 Sc_Password |
You will use this username and password to log in to SDM.
Step 3 Configure SSH and Telnet for local login and privilege level 15.
Use the following commands:
1 2 3 4 5 | Router(config)# line vty 0 4 Router(config-line)# privilege level 15 Router(config-line)# login local Router(config-line)# transport input telnet ssh Router(config-line)# exit |
If your router supports 16 vty lines, you can add the following lines to the configuration file:
1 2 3 4 5 6 | Router(config)# line vty 5 15 Router(config-line)# privilege level 15 Router(config-line)# login local Router(config-line)# transport input telnet ssh Router(config-line)# exit Router(config)# |
Step 4 (Optional) Enable local logging to support the log monitoring function.
Enter the following command in global configuration mode:
1 | Router(config)# logging buffered 51200 warning |
Step 5 Enter the end command to leave configuration mode:
1 | Router(config)# end |