Nasamos

CISCO IOS switch config

Oct 1st, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. #set up passwords
  2. enable
  3. conf terminal
  4. #put a password, password for the EXEC
  5. enable secret PASSWORD
  6. line console 0
  7. #password login CISCO switch (cli cisco)
  8. password PASSWORD
  9. login
  10. line vty 0 15
  11. #password for telnet
  12. password PASSWORD
  13. login
  14. #encrypt passwords
  15. service password-encryption
  16. #banner for legal reasons, do not include any way of inviting / welcome as that will cause legal issues
  17. banner motd "unauthorized access, violators will be prosecuted!"
  18. exit
  19. #save the new config
  20. copy running-config startup-config
  21. #set up an ip address
  22. conf terminal
  23. interface vlan 1
  24. ip address 192.168.0.1 255.255.255.0
  25. no shutdown
  26. ctrl + z
  27. #check if set up correctly
  28. show ip interface brief
Add Comment
Please, Sign In to add comment