Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
Switch(config)#hostname 9200-RG
9200-RG(config)#ip domain-name mondomaine.local
9200-RG(config)#end
9200-RG#wr
Building configuration...
[OK]
9200-RG#
Pour supprimer le nom du commutateur et le nom de domaine, il faut saisir les commandes suivantes.
9200-RG(config)#no hostname
Switch(config)#no ip domain-name
Switch(config)#
9200-RG(config)#vlan 2
9200-RG(config-vlan)#exit
9200-RG(config)#interface vlan2
9200-RG(config-if)#ip address 192.168.100.25 255.255.255.0
9200-RG(config-if)#ex
9200-RG(config)#ip default-gateway 192.168.100.1
9200-RG#sh run int vlan2
Building configuration...
Current configuration : 64 bytes
!
interface Vlan2
ip address 192.168.100.25 255.255.255.0
end
9200-RG#
9200-RG(config)#interface vlan2
9200-RG(config-if)#no ip address
9200-RG(config-if)#ex
9200-RG(config)#no ip default-gateway
Switch(config)#service password-encryption
9200-RG#sh line
Tty Typ Tx/Rx A Modem Roty AccO AccI Uses Noise Overruns Int
* 0 CTY - - - - - 0 0 0/0 -
1 VTY - - - - - 0 0 0/0 -
2 VTY - - - - - 0 0 0/0 -
3 VTY - - - - - 0 0 0/0 -
4 VTY - - - - - 0 0 0/0 -
5 VTY - - - - - 0 0 0/0 -
6 VTY - - - - - 0 0 0/0 -
7 VTY - - - - - 0 0 0/0 -
8 VTY - - - - - 0 0 0/0 -
9 VTY - - - - - 0 0 0/0 -
10 VTY - - - - - 0 0 0/0 -
9200-RG(config)#enable secret M02p@55
9200-RG(config)#line con 0
9200-RG(config-line)#password P@55w0rd
9200-RG(config-line)#login
9200-RG(config-line)#exit
9200-RG(config)#line vty 0 15
9200-RG(config-line)#password P@55w0rd
9200-RG(config-line)#login
9200-RG(config-line)#end
9200-RG#
User Access Verification
Password:
9200-RG>en
Password:
9200-RG#
switch#clock set 15:19:00 4 april 2021
switch#
switch#show clock
15:19:05.609 CEST Mon Apr 4 2021
switch(config)#clock timezone cet 1
switch(config)#clock summer-time cest recurring last Sun Mar 3:00 last Sun Oct 3:00
switch#