Sie sind auf Seite 1von 11

Dossier 1 : Rseaux informatique

1Rseau
VLAN10
VLAN20
VLAN30
LAN1-SIEGE
LANAGENCE 1
LANAGENCE 2
LANAGENCE 3
LANAGENCE 4
FR
Multipoint
FR Point-topoint
Liaison SIEGE
- AGENCE4

@Diffusion

1er adresse

172.20.128.0
172.20.128.128
172.20.129.0
172.20.130.0
172.20.129.192

Masque sous
rseau
255.255.255.128
255.255.255.128
255.255.255.192
255.255.255.240
255.255.255.224

172.20.128.127
172.20.128.255
172.20.129.63
172.20.130.15
172.20.129.223

172.20.128.1
172.20.128.129
172.20.129.1
172.20.130.1
172.20.129.193

Dernire
adresse
172.20.128.126
172.20.128.254
172.20.129.62
172.20.130.14
172.20.129.222

172.20.129.224

255.255.255.224

172.20.129.255

172.20.129.225

172.20.129.254

172.20.129.128

255.255.255.192

172.20.129.191

172.20.129.129

172.20.129.190

172.20.129.64

255.255.255.192

172.20.129.127

172.20.129.65

172.20.129.126

172.20.130.16

255.255.255.248

172.20.130.23

172.20.130.17

172.20.130.22

172.20.130.24

255.255.255.252

172.20.130.27

172.20.130.25

172.20.130.26

172.20.130.28

255.255.255.252

172.20.130.31

172.20.130.29

172.20.130.30

@Rseau

02*******
RA-SIEGE(config)#interface fa1/0
RA-SIEGE(config-if)#ip address 172.20.130.1 255.255.255.240
RA-SIEGE(config-if)#no shutdown
RA-SIEGE(config-if)#exit
RA-SIEGE(config)#interface S3/0
RA-SIEGE(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial3/0, changed state to down
RA-SIEGE(config-if)#ip address 172.20.130.29 255.255.255.252
RA-SIEGE(config-if)#clock rate 64000
RA-SIEGE(config-if)#exit
RA-SIEGE(config)#interface s2/0

RA-SIEGE(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial2/0, changed state to up
RA-SIEGE(config-if)#encapsulation frame-relay
RA-SIEGE(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
RA-SIEGE(config)#interface s2/0.1 multipoint
%LINK-5-CHANGED: Interface Serial2/0.1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0.1, changed state to up
RA-SIEGE(config-subif)#ip address 172.20.130.17 255.255.255.248
RA-SIEGE(config-subif)#exit
RA-SIEGE(config)#interface s2/0.2 point-to-point
%LINK-5-CHANGED: Interface Serial2/0.2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0.2, changed state to up
RA-SIEGE(config-subif)#ip address 172.20.130.25 255.255.255.252
***************
Router>
Router>en
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host RA-AGENCE1
RA-AGENCE1(config)#INterface FA0/0
RA-AGENCE1(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
RA-AGENCE1(config-if)#ip address 172.20.129.193 255.255.255.224
RA-AGENCE1(config-if)#INterface s2/0
RA-AGENCE1(config-if)#no shutdown
RA-AGENCE1(config-if)#
%LINK-5-CHANGED: Interface Serial2/0, changed state to up

RA-AGENCE1(config-if)#encapsulation frame-relay
RA-AGENCE1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
RA-AGENCE1(config-if)#ip address 172.20.130.18 255.255.255.248
RA-AGENCE1(config-if)#exit
*************
Continue with configuration dialog? [yes/no]: n
Press RETURN to get started!
Router>en
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host RA-AGENCE2
RA-AGENCE2(config)#inte
RA-AGENCE2(config)#interface fa0/0
RA-AGENCE2(config-if)#no shutdown

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up


RA-AGENCE2(config-if)#ip address 172.20.129.225 255.255.255.224
RA-AGENCE2(config-if)#exit
RA-AGENCE2(config)#interface s2/0
RA-AGENCE2(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial2/0, changed state to up
RA-AGENCE2(config-if)#encapsulation frame-relay
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
RA-AGENCE2(config-if)#ip address 172.20.130.19 255.255.255.248

******************
Router>en
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host RA-AGENCE3
RA-AGENCE3(config)#INTerface FA0/0
RA-AGENCE3(config-if)#NO SHUTdown
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
RA-AGENCE3(config-if)#ip address 172.20.129.129 255.255.255.192
RA-AGENCE3(config-if)#exit
RA-AGENCE3(config)#interface s2/0
RA-AGENCE3(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial2/0, changed state to up
RA-AGENCE3(config-if)#encapsulation frame-relay
RA-AGENCE3(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
RA-AGENCE3(config-if)#exit
RA-AGENCE3(config)#interface s2/0.1 point-to-point
%LINK-5-CHANGED: Interface Serial2/0.1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0.1, changed state to up
RA-AGENCE3(config-subif)#ip address 172.20.130.26 255.255.255.252
RA-AGENCE3(config-subif)#exit
*****************
Router>en
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host RA-AGENCE4
RA-AGENCE4(config)#interface fastEthernet 0/0

RA-AGENCE4(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
RA-AGENCE4(config-if)#ip address 172.20.129.65 255.255.255.192
RA-AGENCE4(config-if)#exit
RA-AGENCE4(config)#interface s2/0
RA-AGENCE4(config-if)#ip address 172.20.130.30 255.255.255.252
RA-AGENCE4(config-if)#no shutdown

03A
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname RA-SIEGE
RA-SIEGE(config)#line vty 0 15
RA-SIEGE(config-line)#password eff2013-v31-tel
RA-SIEGE(config-line)#login
RA-SIEGE(config-line)#exit
RA-SIEGE(config)#line console 0
RA-SIEGE(config-line)#password eff2013-v31-cons
RA-SIEGE(config-line)#login
RA-SIEGE(config-line)#exit
RA-SIEGE(config)#enable secret eff2013-v31-en-crypt
RA-SIEGE(config)#

B
RA-SIEGE(config)#no ip domain-lookup

C
RA-SIEGE(config)#line console 0
RA-SIEGE(config-line)#logging synchronous
RA-SIEGE(config-line)#exit
RA-SIEGE(config)#line vty 0 15
RA-SIEGE(config-line)#logging synchronous
RA-SIEGE(config-line)#

D
RA-SIEGE(config)#banner motd # Acces autorise uniquement a l'administrateur #

04*************
RA-AGENCE1>en
RA-AGENCE1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
RA-AGENCE1(config)#interface s2/0
RA-AGENCE1(config-if)#frame-relay map ip 172.20.130.19 201 broadcast
RA-AGENCE1(config-if)#frame-relay lmi-type ansi
**************
RA-SIEGE(config)#interface s2/0.1 multipoint
RA-SIEGE(config-subif)#frame-relay interface-dlci 102
RA-SIEGE(config-subif)#frame-relay interface-dlci 103
RA-SIEGE(config-subif)#exit
RA-SIEGE(config)#interface s2/0
RA-SIEGE(config-if)#frame-relay lmi-type ansi
RA-SIEGE(config)#interface s2/0.2 point-to-point
RA-SIEGE(config-subif)#frame-relay interface-dlci 104

RA-SIEGE(config-subif)#
***************
RA-AGENCE2(config)#interface s2/0
RA-AGENCE2(config-if)#frame-relay map ip 172.20.130.18 301 broadcast
RA-AGENCE2(config-if)#frame-relay lmi-type ansi
*******************
RA-AGENCE3(config)#interface s2/0.1 point-to-point
RA-AGENCE3(config-subif)#frame-relay interface-dlci 401
RA-AGENCE3(config-subif)#exit
RA-AGENCE3(config)#interface s2/0
RA-AGENCE3(config-if)#frame-relay lmi-type ansi

5RA-SIEGE(config)#ip route 172.20.129.64 255.255.255.192 s3/0


RA-SIEGE(config)#ip route 172.20.129.128 255.255.255.192 172.20.130.26
RA-SIEGE(config)#ip route 172.20.129.224 255.255.255.224 172.20.130.19
RA-SIEGE(config)#ip route 172.20.129.192 255.255.255.224 172.20.130.18
6RA-AGENCE1(config)#ip route 172.20.128.0 255.255.255.128 s2/0
RA-AGENCE1(config)#ip route 172.20.128.128 255.255.255.128 s2/0
RA-AGENCE1(config)#ip route 172.20.129.0 255.255.255.128 s2/0
RA-AGENCE1(config)#ip route 172.20.130.0 255.255.255.240 s2/0
RA-AGENCE1(config)#ip route 172.20.130.28 255.255.255.252 s2/0
RA-AGENCE1(config)#ip route 172.20.129.64 255.255.255.192 s2/0
RA-AGENCE1(config)#ip route 172.20.129.224 255.255.255.224 s2/0
RA-AGENCE1(config)#ip route 172.20.130.24 255.255.255.252 s2/0
7RA-AGENCE2(config)#ip route 172.20.128.0 255.255.255.128 s2/0
RA-AGENCE2(config)#ip route 172.20.128.128 255.255.255.128 s2/0
RA-AGENCE2(config)#ip route 172.20.129.0 255.255.255.128 s2/0
RA-AGENCE2(config)#ip route 172.20.130.0 255.255.255.240 s2/0
RA-AGENCE2(config)#ip route 172.20.130.28 255.255.255.252 s2/0
RA-AGENCE2(config)#ip route 172.20.129.64 255.255.255.192 s2/0
RA-AGENCE2(config)#ip route 172.20.129.192 255.255.255.224 s2/0
RA-AGENCE2(config)#ip route 172.20.130.24 255.255.255.252 s2/0
8RA-AGENCE3(config)#ip route 172.20.128.0 255.255.255.128 s2/0.1

RA-AGENCE3(config)#ip route 172.20.128.128 255.255.255.128 s2/0.1


RA-AGENCE3(config)#ip route 172.20.129.0 255.255.255.128 s2/0.1
RA-AGENCE3(config)#ip route 172.20.130.0 255.255.255.240 s2/0.1
RA-AGENCE3(config)#ip route 172.20.130.28 255.255.255.252 s2/0.1
RA-AGENCE3(config)#ip route 172.20.129.64 255.255.255.192 s2/0.1
RA-AGENCE3(config)#ip route 172.20.130.16 255.255.255.248 s2/0.1
9RA-AGENCE4(config)#ip route 172.20.128.0 255.255.255.128 s2/0
RA-AGENCE4(config)#ip route 172.20.128.128 255.255.255.128 s2/0
RA-AGENCE4(config)#ip route 172.20.129.0 255.255.255.192 s2/0
RA-AGENCE4(config)#ip route 172.20.130.0 255.255.255.240 s2/0
RA-AGENCE4(config)#ip route 172.20.129.192 255.255.255.224 s2/0
RA-AGENCE4(config)#ip route 172.20.129.224 255.255.255.224 s2/0
RA-AGENCE4(config)#ip route 172.20.129.128 255.255.255.192 s2/0
RA-AGENCE4(config)#ip route 172.20.129.64 255.255.255.192 s2/0
RA-AGENCE4(config)#ip route 172.20.130.16 255.255.255.248 s2/0
RA-AGENCE4(config)#ip route 172.20.130.24 255.255.255.252 s2/0

10Switch#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.

Switch(vlan)#vlan 10 name addministrateur


VLAN 10 added:
Name: addministrateur
Switch(vlan)#vlan 20 name comptabilite
VLAN 20 added:
Name: comptabilite

Switch(vlan)#vlan 30 name clientele


VLAN 30 added:
Name: clientele
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#

11Switch(config)#interface fastEthernet 0/2


Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch(config-if)#interface fastEthernet 0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#exit
Switch(config-if)#interface fastEthernet 0/4
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 30
Switch(config-if)#exit
Switch(config)#interface fa0/1
Switch(config-if)#switchport mode trunk

12RA-SIEGE(config)#interface fa0/0

RA-SIEGE(config-if)#no shutdown
RA-SIEGE(config-if)#interface fa0/0.10
RA-SIEGE(config-subif)#encapsulation dot1Q 10
RA-SIEGE(config-subif)#ip address 172.20.128.1 255.255.255.128
RA-SIEGE(config-subif)#exit
RA-SIEGE(config)#interface fa0/0.20

%LINK-5-CHANGED: Interface FastEthernet0/0.20, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.20, changed state to up


RA-SIEGE(config-subif)#
RA-SIEGE(config-subif)#encapsulation dot1Q 20
RA-SIEGE(config-subif)#ip address 172.20.128.129 255.255.255.128
RA-SIEGE(config-subif)#exit
RA-SIEGE(config)#interface fa0/0.30

%LINK-5-CHANGED: Interface FastEthernet0/0.30, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.30, changed state to up


RA-SIEGE(config-subif)#encapsulation dot1Q 30
RA-SIEGE(config-subif)#ip address 172.20.129.1 255.255.255.192

13
RA-AGENCE4(config)#ip dhcp excluded-address 172.20.129.65
RA-AGENCE4(config)#ip dhcp pool AGENCE4
RA-AGENCE4(dhcp-config)#network 172.20.129.64 255.255.255.192
RA-AGENCE4(dhcp-config)#default-router 172.20.129.65

RA-AGENCE4(dhcp-config)#

14RA-AGENCE4(config)#interface s2/0
RA-AGENCE4(config-if)#encapsulation ppp
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to down
RA-AGENCE4(config-if)#ppp authentication pap
RA-AGENCE4(config-if)# ppp pap sent-username RA-AGENCE4 password cisco
RA-AGENCE4(config-if)#exit
RA-AGENCE4(config)#username RA-SIEGE password cisco
***********
RA-SIEGE(config)#interface s3/0
RA-SIEGE(config-if)#encapsulation ppp
RA-SIEGE(config-if)#ppp authentication pap
RA-SIEGE(config-if)#ppp pap sent-username RA-SIEGE password cisco
RA-SIEGE(config-if)#exit
RA-SIEGE(config)#username RA-AGENCE4 password cisco

15

RA-SIEGE(config)#ip access-list extended ACL


RA-SIEGE(config-ext-nacl)#permit tcp 172.20.128.0 0.0.0.127 host 172.20.130.2 eq 25
RA-SIEGE(config-ext-nacl)#permit tcp 172.20.128.0 0.0.0.127 host 172.20.130.2 eq 110
RA-SIEGE(config-ext-nacl)#deny tcp 172.20.129.64 0.0.0.63 host 172.20.130.3 eq 80
RA-SIEGE(config-ext-nacl)#permit tcp any host 172.20.130.3 eq 80
RA-SIEGE(config-ext-nacl)#permit tcp 172.20.128.128 0.0.0.15 host 172.20.130.3 eq 21
RA-SIEGE(config-ext-nacl)#permit ip any any
RA-SIEGE(config)#interface fa1/0
RA-SIEGE(config-if)#ip access-group ACL out

Das könnte Ihnen auch gefallen