Configuration de Telnet, SSH et WEB Configuration de Telnet Terminal network Voici comment configurer Telnet sur un switch switch(config)#int vlan 1 switch(config-if)#ip address 192.168.1.1 255.255.255.0 switch(config-if)#exit switch(config)#line vty 0 15 switch(config-line)#transport input telnet switch(config-line)#login local switch(config-line)#password cisco switch(config-line)#login switch(config-line)exit switch(config)# Configuration de SSH Secure Shell Voici comment configurer SSH sur un switch switch(config)#int vlan 1 switch(config-if)#ip address 192.168.1.1 255.255.255.0 switch(config-if)#exit switch(config)#hostname dc1-sw0 dc1-sw0(config)#ip domain-name network.net dc1-sw0(config)#crypto key generate rsa The name for the keys will be: dc1-sw0.network.net Choose the size of the key modulus in the range of 360 to 2048 for your General Purpose Keys. Choosing a key modulus greater than 512 may take a few minutes. How many bits in the modulus [512]: 1024 % Generating 1024 bit RSA keys, keys will be non-exportable...[OK] dc1-sw0(config)# dc1-sw0(config)#ip ssh version 2 dc1-sw0(config)#ip ssh authentication-retries 3 dc1-sw0(config)#ip ssh time-out 120 dc1-sw0(config)#line vty 0 15 dc1-sw0(config-line)#transport input ssh dc1-sw0(config-line)#login local dc1-sw0(config-line)#password cisco dc1-sw0(config-line)#login dc1-sw0(config-line)#exit Pour configurer SSH, il faut renommer le switch et lui donner un nom de domaine. lignes 4 et 5 Puis générer une clef RSA entre 1024 et 2048 bits Configuration de l'accès WEB World Wide Web Voici comment configurer web sur un switch switch(config)#ip http server switch(config)#ip http authentication local switch(config)#ip http timeout-policy idle 600 ou en HTTPS : switch(config)#ip http secure server switch(config)#no ip http server switch(config)#ip http authentication local switch(config)#ip http timeout-policy idle 600