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... ») |
|||
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 | + | line vty 0 15 |
- | + | password Passw0rd | |
- | password Passw0rd | + | login |
- | login | + | exit |
- | exit | + | |
- | + | ip domain-name mondom.fr | |
- | + | username user1 secret Passw0rd | |
- | + | crypto key generate rsa modulus 2048 | |
- | + | line vty 0 15 | |
- | + | login local | |
- | ip domain-name mondom.fr | + | transport onput ssh |
- | username user1 secret | + | exit |
- | crypto key generate rsa modulus 2048 | + | ip ssh version 2 |
- | line vty 0 15 | + | |
- | login local | + | |
- | transport onput ssh | + | |
- | exit | + | |
- | ip ssh version 2 | + |
Version du 24 octobre 2023 à 07:16
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
ip domain-name mondom.fr username user1 secret Passw0rd crypto key generate rsa modulus 2048 line vty 0 15 login local transport onput ssh exit ip ssh version 2