Partie 1 : Configurer les périphériques
🖧 Configuration des Périphériques
⚙️ Configurer le Routeur
📝 Configurer le routeur
1
R1> enable R1# configure terminal R1(config)# hostname R11
2
R11(config)# service password-encryption3
R11(config)# no ip domain-lookup
4
R11(config)# banner motd # Accès non autorisé interdit #5
R11(config)# enable secret Enable@55
6
R11(config)# username SSHAdmin1 secret Admin@55R11(config)# line vty 0 4 R11(config-line)# transport input ssh R11(config-line)# login local R11(config-line)# exitR11(config)# crypto key generate rsa modulus 1024
7
R11(config)# interface GigabitEthernet 0/0 R11(config-if)# ip address 172.16.10.1 255.255.255.0 R11(config-if)# no shutdownR11(config)# interface GigabitEthernet 0/1 R11(config-if)# ip address 172.16.20.1 255.255.255.0 R11(config-if)# no shutdown
8
R11# copy running-config startup-config1
S1> enable S1# configure terminal S1(config)# hostname S1S2> enable S2# configure terminal S2(config)# hostname S2
2
S1(config)# service password-encryption3
S1(config)# no ip domain-lookup4
S1(config)# banner motd # Accès non autorisé interdit #5
S1(config)# enable secret Enable@556
S1(config)# ip domain-name CCNA-lab1.comS1(config)# username SSHAdmin1 secret Admin@55S1(config)# line vty 0 4 S1(config-line)# transport input ssh S1(config-line)# login local S1(config-line)# exitS1(config)# crypto key generate rsa modulus 1024
7
S1(config)# interface vlan 1 S1(config-if)# ip address 172.16.10.254 255.255.255.0 S1(config-if)# no shutdownS2(config)# interface vlan 1 S2(config-if)# ip address 172.16.20.254 255.255.255.0 S2(config-if)# no shutdown
8
S1(config)# ip default-gateway 172.16.10.1S2(config)# ip default-gateway 172.16.20.1
9
S1# copy running-config startup-config1
2
1
PC> ping 172.20.20.10 # Vers PC B PC> ping 172.16.10.1 # Vers le routeur PC> ping 172.16.10.254 # Vers Switch 1 PC> ping 172.16.20.254 # Vers Switch 2PC> ping 172.16.10.10 # Vers PC A PC> ping 172.16.20.1 # Vers le routeur PC> ping 172.16.10.254 # Vers Switch 1 PC> ping 172.16.20.254 # Vers Switch 2
2
R11# show ip interface briefS1# show interfaces statusipconfig
Last updated