Vous êtes sur la page 1sur 4

sw1

ena
conf t
host SW1
ena secret redes2
ip domain-name redes.com
crypto key generate rsa
1024
ip ssh version 2
username javier secret redes2
line vty 0 4
password redes2
transport input ssh
login local
vlan 110
int vlan 100
ip add 172.0.63.1 255.255.255.0

int fa 0/24
sw mo trunk
exit
int fa 0/23
sw mo trunk
exit
int fa 0/22
sw mo trunk
exit
int fa 0/21
sw mo trunk
exit
..........................................

vlan 10
vlan 20
vlan 30
vlan 100
int range fa 0/1-2
sw mo acc
sw acc vlan 10

.............................................

int range fa 0/1-5


sw mo acc
sw acc vlan 10
int range fa 0/6-10
sw mo acc
sw acc vlan 20
int range fa 0/11-15
sw mo acc
sw acc vlan 30

...........................................
#####R1#######
ena
conf t
host R1
int fa 0/0.10
encapsulation dot1Q 10
ip add 172.0.0.1 255.255.224.0
int fa 0/0.20
encapsulation dot1Q 20
ip add 172.0.32.1 255.255.240.0
int fa 0/0.30
encapsulation dot1Q 30
ip add 172.0.48.1 255.255.248.0
int fa 0/0.40
encapsulation dot1Q 40
ip add 172.0.63.1 255.255.255.0
int fa0/0
no shutdown
exit

ip dhcp pool vlan10


default-router 172.0.0.1
network 172.0.0.0 255.255.224.0
dns-server 172.0.0.2
ip dhcp excluded-address 172.0.0.1
ip dhcp excluded-address 172.0.0.2
ip dhcp excluded-address 172.0.0.3

ip dhcp pool vlan20


default-router 172.0.32.1
network 172.0.32.0 255.255.240.0
DNS-server 172.0.0.2

ip dhcp pool vlan30


default-router 172.0.48.1
network 172.0.48.0 255.255.248.0
DNS-server 172.0.0.2

ip route 172.0.56.0 255.255.252.0 172.0.64.66


ip route 172.0.60.0 255.255.254.0 172.0.64.66
ip route 172.0.62.0 255.255.255.0 172.0.64.66
ip route 172.0.64.0 255.255.255.192 172.0.64.66

......................................................

sw5

ena
conf t
host SW2
ena secret redes2
ip domain-name redes.com
crypto key generate rsa
1024
ip ssh version 2
username javier secret redes2
line vty 0 4
password redes2
transport input ssh
login local
vlan 100
int vlan 110
ip add 172.0.64.1 255.255.255.192

int fa 0/24
sw mo trunk
exit
int fa 0/23
sw mo trunk
exit
int fa 0/22
sw mo trunk
exit
int fa 0/21
sw mo trunk
exit

..........................................................

vlan 40
vlan 50
vlan 60
vlan 110

int range fa 0/1-2


sw mo acc
sw acc vlan 40

int range fa 0/1-5


sw mo acc
sw acc vlan 40
int range fa 0/6-10
sw mo acc
sw acc vlan 50
int range fa 0/11-15
sw mo acc
sw acc vlan 60

.........................................................
#########R2##########

ena
conf t
host R2
int fa 0/0.40
encapsulation dot1Q 40
ip add 172.0.56.1 255.255.252.0
int fa 0/0.50
encapsulation dot1Q 50
ip add 172.0.60.1 255.255.254.0
int fa 0/0.60
encapsulation dot1Q 60
ip add 172.0.62.1 255.255.255.0
int fa 0/0.70

encapsulation dot1Q 40
ip add 172.0.64.1 255.255.255.192
int fa0/0
no shutdown
exit

ip dhcp pool vlan40


default-router 172.0.56.1
network 172.0.56.0 255.255.252.0
dns-server 172.0.0.2
ip dhcp excluded-address 172.0.56.1
ip dhcp excluded-address 172.0.56.2
ip dhcp excluded-address 172.0.56.3

ip dhcp pool vlan50


default-router 172.0.60.1
network 172.0.60.0 255.255.254.0
DNS-server 172.0.0.2

ip dhcp pool vlan60


default-router 172.0.62.1
network 172.0.62.0 255.255.255.0
DNS-server 172.0.0.2

ip route 172.0.0.0 255.255.224.0 172.0.64.65


ip route 172.0.32.0 255.255.240.0 172.0.64.65
ip route 172.0.48.0 255.255.248.0 172.0.64.65
ip route 172.0.63.0 255.255.255.0 172.0.64.65

ip default-gateway 10.5.0.1

Vous aimerez peut-être aussi