Minimum config Cisco

De Linuxmemo.

(Différences entre les versions)
(Page créée avec « Catégorie:Cisco no ip domain-lookup hostname S1 service password-encryption enable secret Passw0rd banner motd # Unauthorized access is strictly prohibited. # interfac... »)
 
(2 versions intermédiaires masquées)
Ligne 1 : Ligne 1 :
[[Catégorie:Cisco]]
[[Catégorie:Cisco]]
-
no ip domain-lookup
+
no ip domain-lookup
-
hostname S1
+
hostname S1
-
service password-encryption
+
service password-encryption
-
enable secret Passw0rd
+
enable secret Passw0rd
-
banner motd # Unauthorized access is strictly prohibited. #
+
banner motd # Unauthorized access is strictly prohibited. #
-
interface vlan 99
+
interface vlan 99
-
ip address 192.168.1.2 255.255.255.0
+
ip address 192.168.1.2 255.255.255.0
-
exit
+
exit
-
interface range gigabitEthernet 1/0/1 - 24
+
interface range gigabitEthernet 1/0/1 - 24
-
switchport mode access
+
switchport mode access
-
switchport access vlan 99
+
switchport access vlan 99
-
exit
+
exit
-
do show vlan brief
+
do show vlan brief
-
ip default-gateway 192.168.1.1
+
ip default-gateway 192.168.1.1
 +
line con 0
 +
logging synchronous
 +
password Passw0rd
 +
login
 +
exit
-
line con 0
+
line vty 0 15
-
logging synchronous
+
password Passw0rd
-
password Passw0rd
+
login
-
login
+
exit
-
exit
+
-
line vty 0 15
+
show ip ssh
-
password Passw0rd
+
ip domain-name mondom.fr
-
login
+
crypto key generate rsa modulus 2048
-
exit
+
username admin secret AdminSSHPassw0rd
-
 
+
line vty 0 15
-
ip domain-name mondom.fr
+
transport input ssh
-
username user1 secret MotDePasse
+
login local
-
crypto key generate rsa modulus 2048
+
exit
-
line vty 0 15
+
ip ssh version 2
-
login local
+
-
transport onput ssh
+
-
exit
+
-
ip ssh version 2
+

Version actuelle en date du 24 octobre 2023 à 11:01


no ip domain-lookup
hostname S1
service password-encryption
enable secret Passw0rd
banner motd # Unauthorized access is strictly prohibited. #
interface vlan 99
ip address 192.168.1.2 255.255.255.0
exit
interface range gigabitEthernet 1/0/1 - 24
switchport mode access
switchport access vlan 99
exit
do show vlan brief
ip default-gateway 192.168.1.1
line con 0
logging synchronous
password Passw0rd
login
exit
line vty 0 15
password Passw0rd
login
exit
show ip ssh
ip domain-name mondom.fr
crypto key generate rsa modulus 2048
username admin secret AdminSSHPassw0rd
line vty 0 15
transport input ssh
login local
exit
ip ssh version 2
Outils personnels