0% found this document useful (0 votes)
36 views5 pages

TP 3

The document shows the configuration of routers R1 and R2. On R1, it configures hostnames, IP addresses on interfaces, VLANs, DHCP pools to serve clients on subnets 192.168.1.0/26 and 192.168.1.96/28, and copies the running configuration to startup. On R2, it configures the DHCP helper address on interface GigabitEthernet0/0/1 to forward DHCP requests to R1's DHCP server on address 10.0.0.1 and copies the running configuration.

Uploaded by

sahar jendoubi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views5 pages

TP 3

The document shows the configuration of routers R1 and R2. On R1, it configures hostnames, IP addresses on interfaces, VLANs, DHCP pools to serve clients on subnets 192.168.1.0/26 and 192.168.1.96/28, and copies the running configuration to startup. On R2, it configures the DHCP helper address on interface GigabitEthernet0/0/1 to forward DHCP requests to R1's DHCP server on address 10.0.0.1 and copies the running configuration.

Uploaded by

sahar jendoubi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

Router>enable

Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1
R1(config)#
R1(config)#
R1(config)#interface GigabitEthernet0/0/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#ip address 10.0.0.1 255.255.255.252
R1(config-if)#
R1(config-if)#
R1(config-if)#exit
R1(config)#interface GigabitEthernet0/0/0
R1(config-if)#

R1>enable
R1#
R1#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.

R1(vlan)#
R1(vlan)#exit
APPLY completed.
Exiting....
R1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#interface GigabitEthernet0/0/1
R1(config-if)#
R1(config-if)#exit
R1(config)#interface GigabitEthernet0/0/1
R1(config-if)#
R1(config-if)#exit
R1(config)#interface GigabitEthernet0/0/0
R1(config-if)#
R1(config-if)#no ip domain-lookup
R1(config)#enable secret class
R1(config)#line console 0
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit
R1(config)#line vty 0 4
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit
R1(config)#service password-encyption
^
% Invalid input detected at '^' marker.

R1(config)#service password-encryption
R1(config)#banner motd #forbidden#
R1(config)#exit
R1#
%SYS-5-CONFIG_I: Configured from console by console
R1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
R1#clock set 15:26:00 5 apr 2023

etape 4:
a:
R1(config)#interface g0/0/1
R1(config-if)#no shutdown

b:

R1(config-subif)#desc
R1(config-subif)#description reseau-client
R1(config-subif)#enca
R1(config-subif)#encapsulation dot1q 100
R1(config-subif)#ip address 192.168.1.1 255.255.255.192
R1(config-subif)#inter
R1(config-subif)#interf
R1(config-subif)#exit
R1(config)#interface g0/0/1.200
R1(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0/1.200, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0/1.200, changed


state to up

R1(config-subif)#des
R1(config-subif)#description reseau-gestion
R1(config-subif)#encap
R1(config-subif)#encapsulation dot1q 200
R1(config-subif)#ip address 192.168.1.65 255.255.255.224
R1(config-subif)#interface g0/0/1.1000
R1(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0/1.1000, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0/1.1000, changed


state to up

R1(config-subif)#desc
R1(config-subif)#description reseau-natif
R1(config-subif)#encapsulation dot1q 1000 native
c:
R1#show ip interface brief
etape 5:
a-
enable
R2#conf
R2#configure t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#no ip domain-lookup
R2(config)#interface g0/0/1
R2(config-if)#ip add
R2(config-if)#ip address 192.168.1.97 255.255.255.240
R2(config-if)#no shutdown
b-
R2(config)#interface g0/0/0
R2(config-if)#ip address 10.0.0.2 255.255.255.252
R2(config-if)#no shutdown
c-
R2(config)#ip route 0.0.0.0 0.0.0.0 10.0.0.1

R1(config)#interface g0/0/0
R1(config-if)#ip address 10.0.0.1 255.255.255.252
R1(config-if)#no shutdown

R1(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0/0, changed state


to up
*
^
% Invalid input detected at '^' marker.

R1(config-if)#exit
R1(config)#ip route 0.0.0.0 0.0.0.0 10.0.0.2

R1#ping 192.168.1.97
e-
R1#copy running-config startup-config

etape 6:

S1>enable
S1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
S1(config)#no ip domain-lookup
S1(config)#enable secret class
S1(config)#line console 0
S1(config-line)#passwor cisco
S1(config-line)#login
S1(config-line)#exit
S1(config)#line vty 0 15
S1(config-line)#password cisco
S1(config-line)#login
S1(config-line)#exit
S1(config)#service password-encryption
ETC......

etape 7 :
a-
S1(config)#vlan 100
S1(config-vlan)#name client
S1(config-vlan)#vlan 200
S1(config-vlan)#name gestion
S1(config-vlan)#vlan 999
S1(config-vlan)#name parking-lot
S1(config-vlan)#vlan 1000
S1(config-vlan)#name natif

b-

S1(config)#interface vlan 200


S1(config-if)#
%LINK-5-CHANGED: Interface Vlan200, changed state to up
S1(config-if)#ip address 192.168.1.66 255.255.255.224
S1(config-if)#no shutdown
S1(config-if)#exit
S1(config)#ip default-gateway 192.168.1.65
S1(config)#interface range F0/1-4,F0/7-24,g0/1-2
S1(config-if-range)#switchport mode access
S1(config-if-range)#switchport access vlan 999

c-

S2>enable
S2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
S2(config)#no ip domain-lookup
S2(config)#interface vlan 1
S2(config-if)#ip address 192.168.1.98 255.255.255.240
S2(config-if)#no shutdown

S2(config-if)#
%LINK-5-CHANGED: Interface Vlan1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up


exit
S2(config)#ip default-gateway 192.168.1.97

d-

S2(config)#interface range F0/1-4,F0/6-17,F0/19-24,g0/1-2


S2(config-if-range)#switchport mode access
S2(config-if-range)#shutdown

etape 8:

a-
S1(config)#interface f0/6
S1(config-if)#switchport mode access
S1(config-if)#switchport access vlan 100

b-
S1#show vlan brief

etape 9:
a-
S1(config)#interface f0/5
S1(config-if)#switchport mode trunk

b-
S1(config-if)#switchport trunk native vlan 1000

c-
S1(config-if)#switchport trunk allowed vlan 100,200,1000
d-
S1#copy running startup config

e-
S1#show interface trunk

Partie 2:
etape 1::
a-
R1(config)#ip dhcp excluded-address 192.168.1.1 192.168.1.5
b-
R1(config)#ip dhcp pool R1-client-LAN
c-
R1(dhcp-config)#network 192.168.1.0 255.255.255.192
d-
R1(dhcp-config)#domain-name ccna-lab.com
e-
R1(dhcp-config)#default-router 192.168.1.1

f- R1(dhcp-config)#lease 2 12 30 //TEMCHISH L COMMANDE

g-

R1(dhcp-config)#exit
R1(config)#ip dhcp excluded-address 192.168.1.97 192.168.1.101
R1(config)#ip dhcp pool R2-client-LAN
R1(dhcp-config)#network 192.168.1.96 255.255.255.240
R1(dhcp-config)#domain-name ccna-lab.com
R1(dhcp-config)#default-router 192.168.1.97
R1(dhcp-config)#lease 2 12 30
etape 2
R1#copy running startup-config

etpa 3 :
a-
R1#show ip dhcp pool

b-show ip dhcp binding

partie 3
etape 1
a-R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#interface g0/0/1
R2(config-if)#ip helper-address 10.0.0.1
R2(config-if)#exit
copy running startup-config

You might also like