From e7a1f2bcaaad5de15c098a1b9db641c111ba4a3c Mon Sep 17 00:00:00 2001 From: jdubois Date: Tue, 23 Jan 2024 11:45:40 +0100 Subject: [PATCH] Relecture + remplacement IP par des IPs documentation RFC5737 --- SwitchCisco.md | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/SwitchCisco.md b/SwitchCisco.md index 74b6e9ec..8086e36b 100644 --- a/SwitchCisco.md +++ b/SwitchCisco.md @@ -626,7 +626,7 @@ Si souhaité, on peut sauvegarder le binaire actuel vers le serveur TFTP : ~~~ Switch# copy flash:c2960-lanbasek9-mz.122-55.SE1.bin tftp: -Address or name of remote host []? 192.168.0.20 +Address or name of remote host []? 192.0.2.20 Destination filename [c2960-lanbasek9-mz.122-55.SE1.bin]? !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 9771282 bytes copied in 22.498 secs (434318 bytes/sec) @@ -635,10 +635,10 @@ Destination filename [c2960-lanbasek9-mz.122-55.SE1.bin]? Ensuite, on récupère la version téléchargée du binaire sur le switch : ~~~ -Switch# copy tftp://192.168.0.20/c2960-lanbasek9-mz.122-55.SE12.bin flash: +Switch# copy tftp://192.0.2.20/c2960-lanbasek9-mz.122-55.SE12.bin flash: Destination filename [c2960-lanbasek9-mz.122-55.SE12.bin]? -Accessing tftp://192.168.0.20/c2960-lanbasek9-mz.122-55.SE12.bin... -Loading c2960-lanbasek9-mz.122-55.SE12.bin from 192.168.0.20 (via Vlan1): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +Accessing tftp://192.0.2.20/c2960-lanbasek9-mz.122-55.SE12.bin... +Loading c2960-lanbasek9-mz.122-55.SE12.bin from 192.0.2.20 (via Vlan1): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK - 9827106 bytes] 9827106 bytes copied in 125.502 secs (78302 bytes/sec) @@ -715,7 +715,7 @@ Delete flash:c2960-lanbasek9-mz.122-55.SE1.bin? [confirm] ~~~ Switch# configure terminal Switch(config)# interface Vlan 1 -Switch(config-if)# ip address 192.168.0.10 255.255.255.0 +Switch(config-if)# ip address 192.0.2.10 255.255.255.0 ~~~ #### Créer un VLAN @@ -849,7 +849,7 @@ Configuration IP de base : ~~~ Switch# conf t (config)# interface Vlan1 -(config-if)# ip address 192.168.0.1 255.255.255.0 +(config-if)# ip address 192.0.2.1 255.255.255.0 (config-if)# no shutdown ~~~ @@ -1535,21 +1535,21 @@ Il peut permettre par exemple de rapidement exécuter des pings à de multiples ~~~ Switch# tclsh Switch(tcl)# foreach address { -+> 192.168.0.3 -+> 192.168.0.4 -+> 192.168.0.5 ++> 192.0.2.3 ++> 192.0.2.4 ++> 192.0.2.5 +> } { ping $address repeat 3 } Type escape sequence to abort. -Sending 3, 100-byte ICMP Echos to 192.168.0.3, timeout is 2 seconds: +Sending 3, 100-byte ICMP Echos to 192.0.2.3, timeout is 2 seconds: !!! Success rate is 100 percent (3/3), round-trip min/avg/max = 5/10/21 ms Type escape sequence to abort. -Sending 3, 100-byte ICMP Echos to 192.168.0.4, timeout is 2 seconds: +Sending 3, 100-byte ICMP Echos to 192.0.2.4, timeout is 2 seconds: !!! Success rate is 100 percent (3/3), round-trip min/avg/max = 1/7/15 ms Type escape sequence to abort. -Sending 3, 100-byte ICMP Echos to 192.168.0.5, timeout is 2 seconds: +Sending 3, 100-byte ICMP Echos to 192.0.2.5, timeout is 2 seconds: !!! Success rate is 100 percent (3/3), round-trip min/avg/max = 1/2/5 ms ~~~ @@ -1593,12 +1593,12 @@ Le serveur DHCP pourra être dans un VLAN dédié. Pour activer le DHCP Relay, sur chaque interface VLAN, rajouter la directive `ip address helper `. -Voici un exemple de création d'un VLAN avec l'adresse 192.168.200.1/24, faisant office de DHCP relay pour le serveur 10.0.1.2 : +Voici un exemple de création d'un VLAN avec l'adresse 192.0.2.50/24, faisant office de DHCP relay pour le serveur 198.51.100.2 : ~~~ Switch(config)# interface vlan 200 -Switch(config-if)# ip address 192.168.200.1 255.255.255.0 -Switch(config-if)# ip helper-address 10.0.1.2 +Switch(config-if)# ip address 192.0.2.50 255.255.255.0 +Switch(config-if)# ip helper-address 198.51.100.2 Switch(config-if)# end ~~~ @@ -1671,7 +1671,7 @@ Switch# show interface e1/1 trunk Switch# conf t Switch(config)# feature interface-vlan Switch(config)# interface Vlan 1 -Switch(config-if)# ip address 192.168.0.10/24 +Switch(config-if)# ip address 192.0.2.10/24 Switch(config-if)# no shutdown ~~~ @@ -2115,7 +2115,7 @@ Active-image: flash://system/images/image1.bin MD5 Digest: 07968d912499cff5e8b07fdc24779854 ~~~ -On choisit la version souhaité, et on télécharge le binaire. +On choisit la version souhaitée, et on télécharge le binaire. Ensuite, on peut mettre à jour le switch de 2 manières différentes. @@ -2123,11 +2123,11 @@ Ensuite, on peut mettre à jour le switch de 2 manières différentes. On se connecte à l'interface web du switch, puis on va dans le menu Administration > File Management > Firmware Operations. -Si souhaité, on peut sauvegarder le binaire actuel en sélectionner "Backup Firmware" pour Operation Type", et "HTTP/HTTPS" pour "Copy Method", puis le téléchargement débute. +Si souhaité, on peut sauvegarder le binaire actuel en sélectionnant "Backup Firmware" pour Operation Type", et "HTTP/HTTPS" pour "Copy Method", puis le téléchargement débute. Pour la mise à jour, on sélectionne "Update Firmware" pour "Operation Type", et "HTTP/HTTPS" pour "Copy Method". -On clique sur "Browse...", on sélectionne le binaire téléchargé précédemment, et on cliqu sur "Apply". +On clique sur "Browse...", on sélectionne le binaire téléchargé précédemment, et on clique sur "Apply". À la fin, l'interface web indique que l'opération a été terminée avec succès. @@ -2175,8 +2175,8 @@ On configure le serveur sur l'utilisateur `nobody`, et on ajoute l'option `-c` p Si souhaité, on peut sauvegarder le binaire actuel vers le serveur TFTP : ~~~ -Switch# copy flash://system/images/image1.bin tftp://192.168.0.20/old-binary.bin -%COPY-I-FILECPY: Files Copy - source URL flash://system/images/image1.bin destination URL tftp://192.168.0.20/old-binary.bin +Switch# copy flash://system/images/image1.bin tftp://192.0.2.20/old-binary.bin +%COPY-I-FILECPY: Files Copy - source URL flash://system/images/image1.bin destination URL tftp://192.0.2.20/old-binary.bin %COPY-W-TRAP: The copy operation was completed successfully Copy: XXX bytes copied in 00:04:27 [hh:mm:ss] @@ -2185,8 +2185,8 @@ Copy: XXX bytes copied in 00:04:27 [hh:mm:ss] Ensuite, on récupère la version téléchargée du binaire sur le switch : ~~~ -Switch# boot system tftp://192.168.0.20/image_tesla_hybrid_2.5.9.54_release_cisco_signed.bin -%COPY-I-FILECPY: Files Copy - source URL tftp://192.168.0.20/image_tesla_hybrid_2.5.9.54_release_cisco_signed.bin destination URL flash://system/images/image_tesla_hybrid_2.5.9.54_release_cisco_signed.bin +Switch# boot system tftp://192.0.2.20/image_tesla_hybrid_2.5.9.54_release_cisco_signed.bin +%COPY-I-FILECPY: Files Copy - source URL tftp://192.0.2.20/image_tesla_hybrid_2.5.9.54_release_cisco_signed.bin destination URL flash://system/images/image_tesla_hybrid_2.5.9.54_release_cisco_signed.bin %COPY-W-TRAP: The copy operation was completed successfully Copy: XXX bytes copied in 00:04:27 [hh:mm:ss]