You are on page 1of 2

Travaux Pratique :

1) Router(config)# hostname R1 :
2) R1(config)# no ip domain-lookup
3) R1(config)# enable secret class
4) R1(config)# line console 0
R1(config-line)# password cisco
R1(config-line)# login
5) R1(config)# line vty 0 15
R1(config-line)# password cisco
R1(config-line)# login
6) R1(config)# service password-encryption
7) R1(config)# banner motd $ tout accès non autorisé est interdit !$
8) R1(config)# interface g0/0/0
R1(config-if)# ip address 209.165.200.230 255.255.255.248
R1(config-if)# no shutdown
R1(config-if)# interface g0/0/1
R1(config-if)# ip address 192.168.1.1 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# exit
9) R1(config)# ip route 0.0.0.0 0.0.0.0 209.165.200.225
10) R1(config)# exit
R1# copy running-config startup-config
11) switch(config)# hostname S1
12) S1(config)# no ip domain-lookup
13) S1(config)#enable secret class
14) S1(config)#line console 0
S1(config-line)#password cisco
S1(config-line)#login
15) S1(config)# line vty 0 15
S1(config-line)# password cisco
S1(config-line)# login
16) S1(config)# service password-encryption
17) S1(config)# banner motd $ tout accès non autorisé est interdit !$
18) S1(config)# interface range f0/2-4, f0/6-24, g0/1-2
S1(config-if-range)# shutdown
19) S1(config)# interface vlan 1
S1(config-if)# ip address 192.168.1.12 255.255.255.0
S1(config-if)# no shutdown
S1(config-if)# exit
S1(config)# ip default-gateway 192.168.1.1
20) S1# copy running-config startup-config
21) R1(config)# access-list 1 permit 192.168.1.0 0.0.0.255
22) R1(config)# ip nat pool PUBLIC_ACCESS 209.165.200.226 209.165.200.228
netmask 255.255.255.248
23) R1(config)# ip nat inside source list 1 pool PUBLIC_ACCESS
24) R1(config)# interface g0/0/1
R1(config-if)# ip nat inside
25) R1 (config) # interface g0/0/1
R1(config-if)# ip nat outside

You might also like