Plan de Configuration
Plan de Configuration
Plan de Configuration
Entreprise Exia :
Pc fixe adressage statique + sécurité + dns +web
Pc portable adressage fixe + web + dns
Borne wifi plus haute secu (WPA2 AES)+ accès web :
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname RT_eXia
RT_eXia (config)#line console 0
RT_eXia (config-line)#password exia
RT_eXia (config-line)#login
RT_eXia (config-line)#exit
RT_eXia (config)#enable secret exia
RT_eXia (config)#exit
RT_eXia #
%SYS-5-CONFIG_I: Configured from console by console
RT_eXia #conf t
Enter configuration commands, one per line. End with CNTL/Z.
RT_eXia (config)#service password-encryption
RT_eXia (config)#exit
RT_eXia#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
RT_eXia#
Serveur dns et ftp local adressage fixe + adresse google.com avec IP 108.177.127.139
Switch configuration : OK
Mot de passe : exia
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname swExia
swExia(config)#line console 0
swExia(config-line)#password exia
swExia(config-line)#login
swExia(config-line)#exit
swExia(config)#enable secret exia
swExia(config)#exit
swExia#
%SYS-5-CONFIG_I: Configured from console by console
swExia#conf t
Enter configuration commands, one per line. End with CNTL/Z.
swExia(config)#service password-encryption
swExia(config)#end
swExia#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
swExia#
swExia#conf t
Enter configuration commands, one per line. End with CNTL/Z.
swExia(config)#interface range fa0/1-24
swExia(config-if-range)#switchport mode access
swExia(config-if-range)#switchport port-security
swExia(config-if-range)#switchport port-security maximum 1
swExia(config-if-range)#switchport port-security mac-address sticky
swExia(config-if-range)#switchport port-security violation protect
swExia(config-if-range)#end
swExia#
swExia#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
swExia#show port-security interface fa0/1
Port Security : Enabled
Port Status : Secure-up
Violation Mode : Protect
Aging Time : 0 mins
Aging Type : Absolute
SecureStatic Address Aging : Disabled
Maximum MAC Addresses : 1
Total MAC Addresses :0
Configured MAC Addresses : 0
Sticky MAC Addresses :0
Last Source Address:Vlan : 0000.0000.0000:0
Security Violation Count : 0
swExia#
Configuration NAT/PAT :
Routeur EXIA_RT :
Interface inside : fa0/1
Interface outside : gi0/0
RT_eXia(config)#interface FastEthernet0/0
RT_eXia(config-if)#ip nat inside
RT_eXia(config-if)#exit
RT_eXia(config)#interface GigabitEthernet0/0/0
RT_eXia(config-if)#ip nat outside
RT_eXia(config-if)#exit
RT_eXia(config)#exit
RT_eXia#
RT_eXia#conf t
Enter configuration commands, one per line. End with CNTL/Z.
RT_eXia(config)#access-list 1 permit 192.168.1.192 0.0.0.63
RT_eXia(config)#ip nat inside source list 1 interface GigabitEthernet0/0/0 overload
RT_eXia(config)#ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/0/0
RT_eXia(config)#exit
RT_eXia#
Config route par défaut sur le routeur DSLAM :
Router(config)#ip route 0.0.0.0 0.0.0.0 Fa1/0
Router(config)#exit
Tunnel IPv6 :
RT_eXia#conf t
Enter configuration commands, one per line. End with CNTL/Z.
RT_eXia(config)#ipv6 unicast-routing
RT_eXia(config)#interface fa0/0
RT_eXia(config-if)#ipv6 enable
RT_eXia(config-if)#ipv6 address 2001:DB8:2000::/64 eui-64
RT_eXia(config-if)#ipv6 address autoconfig
RT_eXia(config-if)#exit
RT_eXia(config)#
RT_eXia(config)#exit
RT_eXia#
Routeur Exia
RT_eXia#conf t
Enter configuration commands, one per line. End with CNTL/Z.
RT_eXia(config)#interface tunnel 0
RT_eXia(config-if)#
%LINK-5-CHANGED: Interface Tunnel0, changed state to up
Router(config-if)#
%LINK-5-CHANGED: Interface Tunnel0, changed state to up
Routeur Exia :
RT_eXia(config)#ipv6 unicast-routing
RT_eXia(config)#ipv6 route ::/0 2001:DB8:3000::2
Routeur Exia_Meraki:
Test :
Bibliothèque :
Adressage statique :
biblio_RT(config)#interface FastEthernet0/0
biblio_RT(config-if)#
%SYS-5-CONFIG_I: Configured from console by console
no ip address
biblio_RT(config-if)#ip address 192.168.0.126 255.255.255.128
Configuration DHCP :
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname swBiblio
swBiblio(config)#line console 0
swBiblio(config-line)#password biblio
swBiblio(config-line)#login
swBiblio(config-line)#exit
swBiblio(config)#enable secret biblio
swBiblio(config)#service password-encryption
swBiblio(config)#exit
swBiblio#
swBiblio#conf t
Enter configuration commands, one per line. End with CNTL/Z.
swBiblio(config)#interface range fa0/1-24
swBiblio(config-if-range)#switchport mode access
swBiblio(config-if-range)#switchport port-security
swBiblio(config-if-range)#switchport port-security maximum 1
swBiblio(config-if-range)#switchport port-security mac-address sticky
swBiblio(config-if-range)#switchport port-security violation protect
swBiblio(config-if-range)#end
swBiblio#show port
swBiblio#show port-security interface fa0/1
Port Security : Enabled
Port Status : Secure-up
Violation Mode : Protect
Aging Time : 0 mins
Aging Type : Absolute
SecureStatic Address Aging : Disabled
Maximum MAC Addresses : 1
Total MAC Addresses :0
Configured MAC Addresses : 0
Sticky MAC Addresses :0
Last Source Address:Vlan : 0000.0000.0000:0
Security Violation Count : 0
swBiblio#
SSH:
swBiblio#conf t
Enter configuration commands, one per line. End with CNTL/Z.
swBiblio(config)#ip domain-name bibswitch.fr
swBiblio(config)#crypto key generate rsa general-keys modulus 1024
The name for the keys will be: swBiblio.bibswitch.fr
swBiblio(config-if)#
%LINK-5-CHANGED: Interface Vlan1, changed state to up
Borne wifi ssid + open ap
Pc portables ip dynamique + web
IP dynamique :
biblio_RT>en
Password:
biblio_RT#conf t
Enter configuration commands, one per line. End with CNTL/Z.
biblio_RT(config)#interface gi0/0/0
biblio_RT(config-if)#ip nat outside
biblio_RT(config-if)#exit
biblio_RT(config)#interface fa0/0
biblio_RT(config-if)#ip nat inside
biblio_RT(config-if)#exit
biblio_RT(config)#end
biblio_RT(config)#access-list 1 permit 192.168.0.0 0.0.0.127
biblio_RT(config)#ip nat inside source list 1 interface Gi0/0/0 overload
biblio_RT(config)#ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/0/0
biblio_RT(config)#exit
biblio_RT#
Engie :
Conf vtp :
Routeur : mode server
2 switches : mode client
o vlan 10 service technique 100
o vlan 11 service commercial 60
o vlan 12 wifi invités 20
Routeur:
engieRT(vlan)#vtp ?
client Set the device to client mode.
domain Set the name of the VTP administrative domain.
password Set the password for the VTP administrative domain.
server Set the device to server mode.
transparent Set the device to transparent mode.
v2-mode Set the administrative domain to V2 mode.
engieRT(vlan)#vtp v2-mode
V2 mode enabled.
engieRT(vlan)#vtp server
Device mode already VTP SERVER.
engieRT(vlan)#vtp domain ENGIE
Domain name already set to ENGIE.
engieRT(vlan)#vtp password engie
Password already set to engie
engieRT(vlan)#
Création des vlan sur le server :
engieRT(vlan)#vlan 10 name Tech
VLAN 10 modified:
Name: Tech
engieRT(vlan)#vlan 11 name Commer
VLAN 11 added:
Name: Commer
engieRT(vlan)#vlan 12 name guest
VLAN 12 added:
Name: guest
engieRT(vlan)#
Interfaces Trunk :
engieRT(config)#interface FastEthernet1/0
engieRT(config-if)#
engieRT(config-if)#switchport mode trunk
engieRT(config-if)#no shutdown
engieRT(config-if)#
%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up
engieRT(config-if)#exit
engieRT(config)#interface FastEthernet1/1
engieRT(config-if)#
engieRT(config-if)#switchport mode trunk
engieRT(config-if)#no shutdown
engieRT(config-if)#
%LINK-5-CHANGED: Interface FastEthernet1/1, changed state to up
Création des interfaces virtuelles : Routage inter-VLANs
engieRT(config)#int vlan 10
engieRT(config-if)#
%LINK-5-CHANGED: Interface Vlan10, changed state to up
Sur le routeur :
engieRT(config)#int vlan 10
engieRT(config-if)#ip helper-address 192.168.8.225
engieRT(config-if)#exit
engieRT(config)#int vlan 11
engieRT(config-if)#ip helper-address 192.168.8.225
engieRT(config-if)#exit
engieRT(config)#int vlan 12
engieRT(config-if)#ip helper-address 192.168.8.225
engieRT(config-if)#exit
engieRT(config)#exit
engieRT#
Routeur secu port + ssh + inter-vlan + web
Sécurisation :
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname engieRT
engieRT(config)#
engieRT(config)#line console 0
engieRT(config-line)#password engie
engieRT(config-line)#login
engieRT(config-line)#exit
engieRT(config)#enable secret engie
engieRT(config)#service password-encryption
SSH:
engieRT#conf t
Enter configuration commands, one per line. End with CNTL/Z.
engieRT(config)#ip domain-name engie.fr
engieRT(config)#crypto key generate rsa general-keys modulus 1024
The name for the keys will be: engieRT.engie.fr
engieRT(config)#interface gig0/0/0
engieRT(config-if)#ip nat outside
engieRT(config-if)#exit
engieRT(config)#int fa0/0
engieRT(config-if)#ip nat inside
engieRT(config-if)#exit
engieRT(config)#int vlan 10
engieRT(config-if)#ip nat inside
engieRT(config-if)#exit
engieRT(config)#int vlan 11
engieRT(config-if)#ip nat inside
engieRT(config-if)#exit
engieRT(config)#int vlan 12
engieRT(config-if)#ip nat inside
engieRT(config-if)#exit
engieRT(config)#
engieRT(config)#access-list 1 permit 192.168.8.224 0.0.0.3
engieRT(config)#access-list 10 permit 192.168.8.0 0.0.0.127
engieRT(config)#access-list 11 permit 192.168.8.128 0.0.0.63
engieRT(config)#access-list 12 permit 192.168.8.192 0.0.0.31
Le switch multicouches :
Switch(config)#int range fa0/5-6
Switch(config-if-range)#channel
Switch(config-if-range)#channel-protocol lacp
Switch(config-if-range)#channel-group 3 mode active
Switch(config-if-range)#
Creating a port-channel interface Port-channel 3
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int vlan 10
Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan10, changed state to up
Router(config)#int fa0/0
Router(config-if)#ip nat inside
Router(config-if)#
Router(config)#int gigabitEthernet 0/0/0
Router(config-if)#ip nat outside
Router(config-if)#exit
Router(config)#ip nat inside source list 1 interface gigabitEthernet 0/0/0 overload
Router(config)#ip nat inside source list 2 interface gigabitEthernet 0/0/0 overload
Router(config)#ip nat inside source list 3 interface gigabitEthernet 0/0/0 overload
Router(config)#ip nat inside source list 4 interface gigabitEthernet 0/0/0 overload
Router(config)#ip nat inside source list 5 interface gigabitEthernet 0/0/0 overload
Router(config)#ip nat inside source list 6 interface gigabitEthernet 0/0/0 overload
Router(config)#ip nat inside source list 7 interface gigabitEthernet 0/0/0 overload
Router(config)#ip nat inside source list 8 interface gigabitEthernet 0/0/0 overload
Router(config)#
Switch#en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int vlan 10
Switch(config-if)#ip helper-address 192.168.70.1
Switch(config-if)#exit
Switch(config)#int vlan 20
Switch(config-if)#ip helper-address 192.168.70.1
Switch(config-if)#exit
Switch(config)#int vlan 30
Switch(config-if)#ip helper-address 192.168.70.1
Switch(config-if)#exit
Switch(config)#int vlan 40
Switch(config-if)#ip helper-address 192.168.70.1
Switch(config-if)#exit
Switch(config)#int vlan 50
Switch(config-if)#ip helper-address 192.168.70.1
Switch(config-if)#exit
Switch(config)#int vlan 60
Switch(config-if)#ip helper-address 192.168.70.1
Switch(config-if)#exit
Switch(config)#int vlan 80
Switch(config-if)#ip helper-address 192.168.70.1
Switch(config-if)#exit
Switch(config)#exit
Switch#