You are on page 1of 2

enable

conf t
hostname SW
enable password PASSWORD
banner motd # RESTRICTED ACCESS #
ip ssh version 2
ip domain-name CCNA2
crypto key generate rsa
1024
username NAME password PASSWORD
line vty 0 15
transport input ssh
login local
exit

int g0/1
description Connexion avec R2
no shut
exit

int g0/2
description Connexion avec R3
no shut
exit

int vlan 10
no shut
exit

int vlan 20
no shut
exit

int vlan 30
no shut
exit

int vlan 40
ip add 194.168.3.100 255.255.255.248
no shut
exit

int vlan 99
no shut
exit

vlan 10
name 2CDO
exit

vlan 20
name 10GP
exit

vlan 30
name 3MI
exit
vlan 40
name CISMGNT
exit

vlan 99
name PARKING
exit

int range f0/1-2


switchport mode access
switchport access vlan 10
no shut
exit

int range f0/3-4


switchport mode access
switchport access vlan 20
no shut
exit

int range f0/5-6


switchport mode access
switchport access vlan 30
no shut
exit

int range f0/7-8


switchport mode access
switchport access vlan 40
no shut
exit

int range f0/1-8


switchport mode access
switchport port-security maximum 4
switchport port-security mac-address sticky
no shut
exit

int range g0/1-2


switchport mode trunk
switchport trunk allowed vlan 10,20,30,40
switchport trunk native vlan 99
no shut
exit

ip default-gateway 194.168.3.97

You might also like