diff --git a/config.toml b/config.toml index 1d7c819..d3eeedc 100644 --- a/config.toml +++ b/config.toml @@ -1,3 +1,3 @@ -baseURL = 'http://example.org/' -languageCode = 'en-us' +baseURL = 'https://tssr.manydev.info/' +languageCode = 'fr-FR' title = 'My New Hugo Site' diff --git a/content/Windows Serveur/Creation_vm.md b/content/Windows Serveur/Creation_vm.md new file mode 100644 index 0000000..3f33315 --- /dev/null +++ b/content/Windows Serveur/Creation_vm.md @@ -0,0 +1,99 @@ +--- +title: "Création Machine virtuelle" +date: 2025-01-24 +lastmod: 2025-01-24 +publishdate: 2025-01-24 +draft: false +description: "Création de la machine virtuelle" +keyword: ["Windows Server", "Vmware Workstation"] +weight: 10 +--- + +Dans ce document je vais vous expliquer comment créer une machine virtuelle pour accueillir un Windows Serveur 2022 sur l'hyperviseur VMware Workstation 17. + +## Création de la machine + +Création d'une nouvelle machine : Choisir "Create a New Virtual Machine". + + + +Nous allons choisir une installation custom pour avoir plus le choix sur le paramétrage de la machine. + + + +Choix de la compatibilité matériel avec VMWare + + + +On ne sélectionne aucun support d'installation pour le moment, on le choisira plus tard au moment de l'installation. + + + +Sélection du futur système installé sur la machine virtuelle + + + +On choisit le nom de la machine et de l'emplacement du dossier de la machine + + + +On choisit le type de démarrage BIOS ou UEFI + + + +On choisit le nombre de processeurs + + + +On choisit la quantité de mémoire + + + +Pour le moment on choisit le type de connexion au réseau de type NAT pour avoir internet sur la machine virtuelle et en même temps être isolé du réseau de la machine hôte. + + + +Ici nous prenons le contrôleur de disque proposer par VMware. + + + +Choix de l'interface du disque de la machine virtuelle, ici nous prenons NVMe. + + + +On décide de créer un nouveau disque virtuel. + + + +Nous configurons à 60Go pour avoir de la place, il ne faut pas cocher "Allocate all disk space now" car sinon la place sera directement réservé sur le disque physique. +On choisit aussi que le disque ne soit stocker que dans 1 seul fichier(possible uniquement si le système de fichier hôte supporte les grands fichiers). + + + + +Nous prenons le nom par défaut pour le disque virtuel. + + + +On arrive sur l'écran qui récapitule tout ce qui a été paramétré depuis le début. + + + +Nous pouvons aller sur "Customize Hardware..." pour affiner directement la machine virtuelle + + + +Personnellement je supprime tous les composants dont je suis certain de ne pas en avoir l'utilité. Par exemple la carte son. Nous pouvons aussi si nous le voulons ajouter directement une deuxième carte réseau. + + + +Maintenant que la machine virtuelle est créée il nous faut installer le système, pour cela nous allons dans les paramètres de la machine dans la partie CD/DVD + + + +et on choisit le DVD d'installation de Windows Server 2022 + + + +Et voilà nous pouvons maintenant passer à l'étape d'installation. + diff --git a/content/Windows Serveur/Installation.md b/content/Windows Serveur/Installation.md new file mode 100644 index 0000000..827e16d --- /dev/null +++ b/content/Windows Serveur/Installation.md @@ -0,0 +1,12 @@ +--- +title: "Installation" +date: 2025-01-24 +lastmod: 2025-01-24 +publishdate: 2025-01-24 +draft: false +description: "Comment installer Windows Serveur 2022 sur une machine virtuelle" +keyword: ["Windows Serveur"] +weight: 20 +--- + + diff --git a/content/Windows Serveur/_index.md b/content/Windows Serveur/_index.md new file mode 100644 index 0000000..13dac29 --- /dev/null +++ b/content/Windows Serveur/_index.md @@ -0,0 +1,16 @@ +--- +title: "Windows Serveur" +date: 2025-01-24 +lastmod: 2025-01-24 +publishdate: 2025-01-24 +draft: false +description: "" +keyword: ["Windows Serveur"] +weight: 10 +--- + +## [Création Machine virtuelle](/windows-serveur/creation_vm/) +Création de la machine virtuelle + +## [Installation](/windows-serveur/installation/) +Comment installer Windows Serveur 2022 sur une machine virtuelle. \ No newline at end of file diff --git a/content/cisco/Commande Générale.md b/content/cisco/Commande_Generale.md similarity index 92% rename from content/cisco/Commande Générale.md rename to content/cisco/Commande_Generale.md index 2045810..17850ef 100644 --- a/content/cisco/Commande Générale.md +++ b/content/cisco/Commande_Generale.md @@ -43,11 +43,11 @@ ou Configuration SSH ================= -## prérequi -- renomer l'équipement +## prérequis +- renommer l'équipement - mettre mot de passe "enable" -## définir un nom de domain +## définir un nom de domaine Switch(conf)# ip domain-name *nom-de-domaine* ## activer la version 2 de SSH @@ -62,7 +62,7 @@ Configuration SSH ## Ajout d'un time out Switch(conf)# ip ssh time-out {nbsec} -## ajout d'un nombre de tentative +## ajout d'un nombre de tentatives Switch(conf)# ip ssh authentication-retries {nb tentative} ## configuration du maximum de conenxion simultanné diff --git a/content/cisco/Routeur.md b/content/cisco/Routeur.md index 5506650..2052954 100644 --- a/content/cisco/Routeur.md +++ b/content/cisco/Routeur.md @@ -43,7 +43,7 @@ ne pas oublier d'allumer l'interface générale ### désactiver le résumer des routes Router(conf-router)# no auto-summary -### désactiver l'envoie des mise à jours de la table de routage vers interface non voulue +### désactiver l'envoie des mises à jour de la table de routage vers interface non voulue Router(conf-router)# passive-interface *interface* ### propagation route par défaut @@ -73,7 +73,7 @@ avec *rid* de forme adresse IP Router(conf-router)# network *réseau* *masque inverse* area *id réseau* masque inverse = masque réseau - 255.255.255.255 octet par octet -### désactiver l'envoie des mise à jours de la table de routage vers interface non voulue +### désactiver l'envoie des mises à jour de la table de routage vers interface non voulue Router(conf-router)# passive-interface *interface* ### commande pour vérifier configuration ospf Interface @@ -91,7 +91,7 @@ Configuration d'un DHCP Router> enable Router# configure terminal Router(config)# ip dhcp pool *Nom* - Router(dhcp-config)# network *reseau* *Masque* + Router(dhcp-config)# network *réseau* *Masque* Router(dhcp-config)# dns-server *ip_dns* Router(dhcp-config)# default-router *Gateway* @@ -126,7 +126,7 @@ Configuration ACL Router(config)# interface {interface} Router(config-if)# ip access-group *nom de l'acl* {in|out} -## sécurisation des ligne vty par ACL +## sécurisation des lignes vty par ACL Router> enable Router# configure terminal Router(config)# access-list *numero* permit host *ip adresse* diff --git a/content/cisco/_index.md b/content/cisco/_index.md index cdf193e..2a8261a 100644 --- a/content/cisco/_index.md +++ b/content/cisco/_index.md @@ -9,7 +9,7 @@ keyword: ["cisco"] weight: 10 --- -## [Commande Générale](/cisco/commande-générale/) +## [Commande Générale](/cisco/commande_generale/) Commande utile que l'équipement soit un switch ou un routeur ## [Switch](/cisco/Switch/) diff --git a/content/posts/premier-test.md b/content/posts/premier-test.md deleted file mode 100644 index 9d337d8..0000000 --- a/content/posts/premier-test.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Premier Test" -date: 2025-01-22T12:02:03+01:00 -draft: true ---- - -Test de post \ No newline at end of file diff --git a/hugo.toml b/hugo.toml index a99b8d1..6488c74 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,6 +1,6 @@ description = "TSSR" -languageCode = "fr-fr" +languageCode = "fr-FR" DefaultContentLanguage = "fr" title = "Aide pour les TSSR" theme = "hugo-theme-techdoc" diff --git a/public/404.html b/public/404.html deleted file mode 100644 index 19c3f72..0000000 --- a/public/404.html +++ /dev/null @@ -1,82 +0,0 @@ - - -
- - -Switch> enable
-Switch# configure terminal
-Switch(conf)# hostname Host
-
-Switch(conf)# line {console|aux|tty|vty} {0-xx} [1-x]
-Switch(conf-line)# password *mot de passe*
-Switch(conf-line)# login
-
-Switch(conf)# enable {password|secret} *mot de passe*
-
-Switch(conf)# service password-encryption
-
-Switch# copy running-config startup-config
-
-ou -Switch# write
-Switch(conf)# no ip domain-lookup
-
-Switch# Show running-config
-
-Switch# Show startup-config
-
-Switch(conf)# ip domain-name *nom-de-domaine*
-
-Switch(conf)# ip ssh version 2
-
-Switch(conf)# crypto key generate rsa general-keys modulus *1024*
-
-Switch(conf)# username *login* {secret|password} *mot-de-passe*
-
-Switch(conf)# ip ssh time-out {nbsec}
-
-Switch(conf)# ip ssh authentication-retries {nb tentative}
-
-Switch(conf)# ip ssh maxstartups {2-128}
-
-
-Commande utile que l’équipement soit un switch ou un routeur
-Commande spécifique pour les switchs
-Commande spécifique pour les routeurs
- -Switch(conf)# interface vlan1
-Switch(conf-if)# ip address A.B.C.D M1.M2.M3.M4
-Switch(conf-if)# no shutdown
-
-Switch(conf)# ip default-gateway A.B.C.D
-
-
-Sur ce site vous trouverez toute une documentation qui pourra être utile à un TSSR
- -Switch> enable
-Switch# configure terminal
-Switch(conf)# hostname Host
-
-Switch(conf)# line {console|aux|tty|vty} {0-xx} [1-x]
-Switch(conf-line)# password *mot de passe*
-Switch(conf-line)# login
-
-Switch(conf)# enable {password|secret} *mot de passe*
-
-Switch(conf)# service password-encryption
-
-Switch(conf)# interface vlan1
-Switch(conf-if)# ip address A.B.C.D M1.M2.M3.M4
-Switch(conf-if)# no shutdown
-
-Switch(conf)# ip default-gateway A.B.C.D
-
-Switch# copy running-config startup-config
-
-ou
-Switch# write
-
-Switch(conf)# no ip domain-lookup
-
-Switch# Show running-config
-
-Switch# Show startup-config
-
-Switch(conf)# ip domain-name *nom-de-domaine*
-
-Switch(conf)# ip ssh version 2
-
-Switch(conf)# crypto key generate rsa general-keys modulus *1024*
-
-Switch(conf)# username *login* {secret|password} *mot-de-passe*
-
-Switch(conf)# ip ssh time-out {nbsec}
-
-Switch(conf)# ip ssh authentication-retries {nb tentative}
-
-Switch(conf)# ip ssh maxstartups {2-128}
-
-Switch(conf)# line vty 0 15
-Switch(conf-line)# login local
-Switch(conf-line)# transport input ssh
-Switch(conf-line)# no password
-
-Switch> enable
-Switch# configure terminal
-Switch(conf)# vlan *numero Vlan*
-Switch(conf-vlan)# name *nom*
-Switch(conf-vlan)# exit
-Switch(conf)#
-
-Switch> enable
-Switch# configure terminal
-Switch(conf)# interface *interface*
-Switch(conf-if)# switchport mode access
-Switch(conf-if)# switchport access vlan *numero Vlan*
-Switch(conf-if)# exit
-Switch(conf)#
-
-Switch> enable
-Switch# configure terminal
-Switch(conf)# interface range *1ère interface* - *dernière interface*
-Switch(conf-if)# switchport mode access
-Switch(conf-if)# switchport access vlan *numero Vlan*
-Switch(conf-if)# exit
-Switch(conf)#
-
-Le mode TRUNK permet a plusieurs vlan de passer par le même port -Switch> enable -Switch# configure terminal -Switch(conf)# interface interface -Switch(conf-if)# switchport mode trunk -Switch(conf-if)# switchport trunk allowed vlan Vlan1 [,VLan2] -Switch(conf-if)# exit -Switch(conf)#
-attriber des adresse ip au vlan et les déclarer en passerelles dans les hôtes connectés
-Switch> enable
-Switch# configure terminal
-Switch(conf)# ip routing
-
-Switch> enable
-Switch# configure terminal
-Switch(conf)# interface *interface*
-Switch(conf-if)# switchport mode access
-Switch(conf-if)# switchport port-security
-Switch(conf-if)# switchport port-security maximum *nb de tentative*
-Switch(conf-if)# switchport port-security mac-address {sticky|*MAC*}
-Switch(conf-if)# switchport port-security violation {protect|restrict|shutdown}
-
-Router(conf)# ip route *réseau* *masque* { *adresse ip* | *interface sortie* [ *adresse-ip* ] }
-
-ou -Router(conf)# ipv6 unicast-routing -Router(conf)# ipv6 route réseau/masque { adresse ip | interface sortie [ adresse-ip ] }
-Router(conf)# ip route 0.0.0.0 0.0.0.0 { *adresse ip* | *interface sortie* [ *adresse-ip* ] }
-
-ou -Router(conf)# -Router(conf)# ipv6 route ::/0 { adresse ip | interface sortie [ adresse-ip ] }
-Router(config)# interface [interface].[id]
-Router(config-if)# encapsulation dot1Q [vlan]
-Router(config-if)# ip address *rid* 255.255.255.255
-Router(config-if)# no shutdown
-
-ne pas oublier d’allumer l’interface générale
-Router(conf)# router rip
-
-Router(conf-router)# version 2
-
-Router(conf-router)# network *réseau connue*
-
-Router(conf-router)# no auto-summary
-
-Router(conf-router)# passive-interface *interface*
-
-Obligation d’avoir la route par défaut Configurer sur le routeur -Router(conf-router)# default-information originate
-Router(conf)# router ospf *10* // même numéro pour tous les routeurs
-
-Router(conf-router)# router-id *rid*
-
-ou -Router(config)# interface Loopback 1 -Router(config-if)# ip address rid 255.255.255.255 -Router(config-if)# end -avec rid de forme adresse IP
-Router(conf)# router ospf *10* // même numéro pour tous les routeurs
-Router(conf-router)# router-id *rid*
-Router# clear ip ospf proccess
-
-Router(conf-router)# network *réseau* *masque inverse* area *id réseau*
-
-masque inverse = masque réseau - 255.255.255.255 octet par octet
-Router(conf-router)# passive-interface *interface*
-
-Router# show ip ospf interface *interface*
-
-Router> enable
-Router# configure terminal
-Router(config)# ip dhcp exclude-address *ip début* [*ip fin*]
-
-Router> enable
-Router# configure terminal
-Router(config)# ip dhcp pool *Nom*
-Router(dhcp-config)# network *reseau* *Masque*
-Router(dhcp-config)# dns-server *ip_dns*
-Router(dhcp-config)# default-router *Gateway*
-
-Router> enable
-Router# configure terminal
-Router(config)# interface {interface}
-Router(config-if)# ip helper-address {IP DHCP }
-
-Router> enable
-Router# configure terminal
-Router# access-list *numero* deny *ip adresse* *wilcard mask*
-Router# access-list *numero* permit any
-Router(config)# interface {interface}
-Router(config-if)# ip access-group *numero* out
-
-Router> enable
-Router# configure terminal
-Router# ip access-list standard *nom de l'acl"
-Router(config-std-nacl)# permit host *ip host*
-Router(config-std-nacl)# deny any
-
-Router> enable
-Router# configure terminal
-Router(config)# interface {interface}
-Router(config-if)# ip access-group *nom de l'acl* {in|out}
-
-Router> enable
-Router# configure terminal
-Router(config)# access-list *numero* permit host *ip adresse*
-Router(config)# line vty {0} [n]
-Router(config-line)# access-class *numero* in
-
-Router(config)# access-list *numero* permit *network* *wilcard*
-
-Router(config)# ip nat pool *Nom* *ip start* *ip end* netmask *masque*
-
-Router(config)# ip nat inside source list *numero acl* pool *nom de la pool*
-
-Router(config)# ip nat inside source *ip locale* *ip publique*
-
-Switch> enable
-Switch# configure terminal
-Switch(conf)# hostname Host
-
-Switch(conf)# line {console|aux|tty|vty} {0-xx} [1-x]
-Switch(conf-line)# password *mot de passe*
-Switch(conf-line)# login
-
-Switch(conf)# enable {password|secret} *mot de passe*
-
-Switch(conf)# service password-encryption
-
-Switch# copy running-config startup-config
-
-ou -Switch# write
-Switch(conf)# no ip domain-lookup
-
-Switch# Show running-config
-
-Switch# Show startup-config
-
-Switch(conf)# ip domain-name *nom-de-domaine*
-
-Switch(conf)# ip ssh version 2
-
-Switch(conf)# crypto key generate rsa general-keys modulus *1024*
-
-Switch(conf)# username *login* {secret|password} *mot-de-passe*
-
-Switch(conf)# ip ssh time-out {nbsec}
-
-Switch(conf)# ip ssh authentication-retries {nb tentative}
-
-Switch(conf)# ip ssh maxstartups {2-128}
-
-Switch(conf)# line vty 0 15
-Switch(conf-line)# login local
-Switch(conf-line)# transport input ssh
-Switch(conf-line)# no password
-
-
-Commande utile que l’équipement soit un switch ou un routeur
-Commande spécifique pour les switchs
-Commande spécifique pour les routeurs
- -Router(conf)# ip route *réseau* *masque* { *adresse ip* | *interface sortie* [ *adresse-ip* ] }
-
-ou -Router(conf)# ipv6 unicast-routing -Router(conf)# ipv6 route réseau/masque { adresse ip | interface sortie [ adresse-ip ] }
-Router(conf)# ip route 0.0.0.0 0.0.0.0 { *adresse ip* | *interface sortie* [ *adresse-ip* ] }
-
-ou -Router(conf)# -Router(conf)# ipv6 route ::/0 { adresse ip | interface sortie [ adresse-ip ] }
-Router(config)# interface [interface].[id]
-Router(config-if)# encapsulation dot1Q [vlan]
-Router(config-if)# ip address *rid* 255.255.255.255
-Router(config-if)# no shutdown
-
-ne pas oublier d’allumer l’interface générale
-Router(conf)# router rip
-
-Router(conf-router)# version 2
-
-Router(conf-router)# network *réseau connue*
-
-Router(conf-router)# no auto-summary
-
-Router(conf-router)# passive-interface *interface*
-
-Obligation d’avoir la route par défaut Configurer sur le routeur -Router(conf-router)# default-information originate
-Router(conf)# router ospf *10* // même numéro pour tous les routeurs
-
-Router(conf-router)# router-id *rid*
-
-ou -Router(config)# interface Loopback 1 -Router(config-if)# ip address rid 255.255.255.255 -Router(config-if)# end -avec rid de forme adresse IP
-Router(conf)# router ospf *10* // même numéro pour tous les routeurs
-Router(conf-router)# router-id *rid*
-Router# clear ip ospf proccess
-
-Router(conf-router)# network *réseau* *masque inverse* area *id réseau*
-
-masque inverse = masque réseau - 255.255.255.255 octet par octet
-Router(conf-router)# passive-interface *interface*
-
-Router# show ip ospf interface *interface*
-
-Router> enable
-Router# configure terminal
-Router(config)# ip dhcp exclude-address *ip début* [*ip fin*]
-
-Router> enable
-Router# configure terminal
-Router(config)# ip dhcp pool *Nom*
-Router(dhcp-config)# network *reseau* *Masque*
-Router(dhcp-config)# dns-server *ip_dns*
-Router(dhcp-config)# default-router *Gateway*
-
-Router> enable
-Router# configure terminal
-Router(config)# interface {interface}
-Router(config-if)# ip helper-address {IP DHCP }
-
-Router> enable
-Router# configure terminal
-Router# access-list *numero* deny *ip adresse* *wilcard mask*
-Router# access-list *numero* permit any
-Router(config)# interface {interface}
-Router(config-if)# ip access-group *numero* out
-
-Router> enable
-Router# configure terminal
-Router# ip access-list standard *nom de l'acl"
-Router(config-std-nacl)# permit host *ip host*
-Router(config-std-nacl)# deny any
-
-Router> enable
-Router# configure terminal
-Router(config)# interface {interface}
-Router(config-if)# ip access-group *nom de l'acl* {in|out}
-
-Router> enable
-Router# configure terminal
-Router(config)# access-list *numero* permit host *ip adresse*
-Router(config)# line vty {0} [n]
-Router(config-line)# access-class *numero* in
-
-Router(config)# access-list *numero* permit *network* *wilcard*
-
-Router(config)# ip nat pool *Nom* *ip start* *ip end* netmask *masque*
-
-Router(config)# ip nat inside source list *numero acl* pool *nom de la pool*
-
-Router(config)# ip nat inside source *ip locale* *ip publique*
-
-Router(config)# interface *interface coté local*
-Router(config-if)# ip nat inside
-
-Router(config)# interface *interface coté externe*
-Router(config-if)# ip nat outside
-
-
-Switch(conf)# interface vlan1
-Switch(conf-if)# ip address A.B.C.D M1.M2.M3.M4
-Switch(conf-if)# no shutdown
-
-Switch(conf)# ip default-gateway A.B.C.D
-
-Switch> enable
-Switch# configure terminal
-Switch(conf)# vlan *numero Vlan*
-Switch(conf-vlan)# name *nom*
-Switch(conf-vlan)# exit
-Switch(conf)#
-
-Switch> enable
-Switch# configure terminal
-Switch(conf)# interface *interface*
-Switch(conf-if)# switchport mode access
-Switch(conf-if)# switchport access vlan *numero Vlan*
-Switch(conf-if)# exit
-Switch(conf)#
-
-Switch> enable
-Switch# configure terminal
-Switch(conf)# interface range *1ère interface* - *dernière interface*
-Switch(conf-if)# switchport mode access
-Switch(conf-if)# switchport access vlan *numero Vlan*
-Switch(conf-if)# exit
-Switch(conf)#
-
-Le mode TRUNK permet a plusieurs vlan de passer par le même port -Switch> enable -Switch# configure terminal -Switch(conf)# interface interface -Switch(conf-if)# switchport mode trunk -Switch(conf-if)# switchport trunk allowed vlan Vlan1 [,VLan2] -Switch(conf-if)# exit -Switch(conf)#
-attriber des adresse ip au vlan et les déclarer en passerelles dans les hôtes connectés
-Switch> enable
-Switch# configure terminal
-Switch(conf)# ip routing
-
-Switch> enable
-Switch# configure terminal
-Switch(conf)# interface *interface*
-Switch(conf-if)# switchport mode access
-Switch(conf-if)# switchport port-security
-Switch(conf-if)# switchport port-security maximum *nb de tentative*
-Switch(conf-if)# switchport port-security mac-address {sticky|*MAC*}
-Switch(conf-if)# switchport port-security violation {protect|restrict|shutdown}
-
-
-Ce site a été conçu comme une ressource complète et accessible, spécialement pensée pour les professionnels et étudiants en systèmes et réseaux. Que vous soyez en quête de solutions concrètes à des problématiques techniques, d’approfondir vos compétences, ou de consolider vos connaissances, cet espace a pour mission de vous accompagner à chaque étape.
-Vous y trouverez des guides pratiques, des tutoriels, des fiches techniques, ainsi qu’une multitude de ressources pour vous aider à intervenir efficacement dans vos projets, que ce soit dans le déploiement, la maintenance ou l’optimisation d’infrastructures IT.
-Notre objectif : fournir une documentation claire, structurée et actualisée pour vous permettre de relever les défis techniques du quotidien avec confiance et expertise.
-Bonne exploration et bon apprentissage !
- -Switch> enable
-Switch# configure terminal
-Switch(conf)# hostname Host
-
-Switch(conf)# line {console|aux|tty|vty} {0-xx} [1-x]
-Switch(conf-line)# password *mot de passe*
-Switch(conf-line)# login
-
-Switch(conf)# enable {password|secret} *mot de passe*
-
-Switch(conf)# service password-encryption
-
-Switch(conf)# interface vlan1
-Switch(conf-if)# ip address A.B.C.D M1.M2.M3.M4
-Switch(conf-if)# no shutdown
-
-Switch(conf)# ip default-gateway A.B.C.D
-
-Switch# copy running-config startup-config
-
-ou
-Switch# write
-
-Switch(conf)# no ip domain-lookup
-
-Switch# Show running-config
-
-Switch# Show startup-config
-
-Switch(conf)# ip domain-name *nom-de-domaine*
-
-Switch(conf)# ip ssh version 2
-
-Switch(conf)# crypto key generate rsa general-keys modulus *1024*
-
-Switch(conf)# username *login* {secret|password} *mot-de-passe*
-
-Switch(conf)# ip ssh time-out {nbsec}
-
-Switch(conf)# ip ssh authentication-retries {nb tentative}
-
-Switch(conf)# ip ssh maxstartups {2-128}
-
-Switch(conf)# line vty 0 15
-Switch(conf-line)# login local
-Switch(conf-line)# transport input ssh
-Switch(conf-line)# no password
-
-Switch> enable
-Switch# configure terminal
-Switch(conf)# vlan *numero Vlan*
-Switch(conf-vlan)# name *nom*
-Switch(conf-vlan)# exit
-Switch(conf)#
-
-Switch> enable
-Switch# configure terminal
-Switch(conf)# interface *interface*
-Switch(conf-if)# switchport mode access
-Switch(conf-if)# switchport access vlan *numero Vlan*
-Switch(conf-if)# exit
-Switch(conf)#
-
-Switch> enable
-Switch# configure terminal
-Switch(conf)# interface range *1ère interface* - *dernière interface*
-Switch(conf-if)# switchport mode access
-Switch(conf-if)# switchport access vlan *numero Vlan*
-Switch(conf-if)# exit
-Switch(conf)#
-
-Le mode TRUNK permet a plusieurs vlan de passer par le même port -Switch> enable -Switch# configure terminal -Switch(conf)# interface interface -Switch(conf-if)# switchport mode trunk -Switch(conf-if)# switchport trunk allowed vlan Vlan1 [,VLan2] -Switch(conf-if)# exit -Switch(conf)#
-attriber des adresse ip au vlan et les déclarer en passerelles dans les hôtes connectés
-Switch> enable
-Switch# configure terminal
-Switch(conf)# ip routing
-
-Switch> enable
-Switch# configure terminal
-Switch(conf)# interface *interface*
-Switch(conf-if)# switchport mode access
-Switch(conf-if)# switchport port-security
-Switch(conf-if)# switchport port-security maximum *nb de tentative*
-Switch(conf-if)# switchport port-security mac-address {sticky|*MAC*}
-Switch(conf-if)# switchport port-security violation {protect|restrict|shutdown}
-
-Router(conf)# ip route *réseau* *masque* { *adresse ip* | *interface sortie* [ *adresse-ip* ] }
-
-ou -Router(conf)# ipv6 unicast-routing -Router(conf)# ipv6 route réseau/masque { adresse ip | interface sortie [ adresse-ip ] }
-Router(conf)# ip route 0.0.0.0 0.0.0.0 { *adresse ip* | *interface sortie* [ *adresse-ip* ] }
-
-ou -Router(conf)# -Router(conf)# ipv6 route ::/0 { adresse ip | interface sortie [ adresse-ip ] }
-Router(config)# interface [interface].[id]
-Router(config-if)# encapsulation dot1Q [vlan]
-Router(config-if)# ip address *rid* 255.255.255.255
-Router(config-if)# no shutdown
-
-ne pas oublier d’allumer l’interface générale
-Router(conf)# router rip
-
-Router(conf-router)# version 2
-
-Router(conf-router)# network *réseau connue*
-
-Router(conf-router)# no auto-summary
-
-Router(conf-router)# passive-interface *interface*
-
-Obligation d’avoir la route par défaut Configurer sur le routeur -Router(conf-router)# default-information originate
-Router(conf)# router ospf *10* // même numéro pour tous les routeurs
-
-Router(conf-router)# router-id *rid*
-
-ou -Router(config)# interface Loopback 1 -Router(config-if)# ip address rid 255.255.255.255 -Router(config-if)# end -avec rid de forme adresse IP
-Router(conf)# router ospf *10* // même numéro pour tous les routeurs
-Router(conf-router)# router-id *rid*
-Router# clear ip ospf proccess
-
-Router(conf-router)# network *réseau* *masque inverse* area *id réseau*
-
-masque inverse = masque réseau - 255.255.255.255 octet par octet
-Router(conf-router)# passive-interface *interface*
-
-Router# show ip ospf interface *interface*
-
-Router> enable
-Router# configure terminal
-Router(config)# ip dhcp exclude-address *ip début* [*ip fin*]
-
-Router> enable
-Router# configure terminal
-Router(config)# ip dhcp pool *Nom*
-Router(dhcp-config)# network *reseau* *Masque*
-Router(dhcp-config)# dns-server *ip_dns*
-Router(dhcp-config)# default-router *Gateway*
-
-Router> enable
-Router# configure terminal
-Router(config)# interface {interface}
-Router(config-if)# ip helper-address {IP DHCP }
-
-Router> enable
-Router# configure terminal
-Router# access-list *numero* deny *ip adresse* *wilcard mask*
-Router# access-list *numero* permit any
-Router(config)# interface {interface}
-Router(config-if)# ip access-group *numero* out
-
-Router> enable
-Router# configure terminal
-Router# ip access-list standard *nom de l'acl"
-Router(config-std-nacl)# permit host *ip host*
-Router(config-std-nacl)# deny any
-
-Router> enable
-Router# configure terminal
-Router(config)# interface {interface}
-Router(config-if)# ip access-group *nom de l'acl* {in|out}
-
-Router> enable
-Router# configure terminal
-Router(config)# access-list *numero* permit host *ip adresse*
-Router(config)# line vty {0} [n]
-Router(config-line)# access-class *numero* in
-
-Router(config)# access-list *numero* permit *network* *wilcard*
-
-Router(config)# ip nat pool *Nom* *ip start* *ip end* netmask *masque*
-
-Router(config)# ip nat inside source list *numero acl* pool *nom de la pool*
-
-Router(config)# ip nat inside source *ip locale* *ip publique*
-
-