0% found this document useful (0 votes)
4 views

TP4 - commandes

The document outlines the configuration steps for three routers (R1, R2, R3) and three Linux PCs, including setting hostnames, creating user accounts, configuring IP addresses, and enabling OSPF routing. It details the commands for establishing network connectivity and testing pings between devices. Additionally, it includes steps for verifying OSPF neighbor relationships and routes on the routers.

Uploaded by

widadmoussaif268
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)
4 views

TP4 - commandes

The document outlines the configuration steps for three routers (R1, R2, R3) and three Linux PCs, including setting hostnames, creating user accounts, configuring IP addresses, and enabling OSPF routing. It details the commands for establishing network connectivity and testing pings between devices. Additionally, it includes steps for verifying OSPF neighbor relationships and routes on the routers.

Uploaded by

widadmoussaif268
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/ 3

etape1:

1)Router> enable
Router# configure terminal
Router(config)# hostname R1

Router> enable
Router# configure terminal
Router(config)# hostname R2

Router> enable
Router# configure terminal
Router(config)# hostname R3

2)R1(config)# username admin privilege 15 secret padmin


R2(config)# username admin privilege 15 secret padmin
R3(config)# username admin privilege 15 secret padmin

3)R1(config)# enable secret padmin


R2(config)# enable secret padmin
R3(config)# enable secret padmin

4)R1(config)# line vty 0 4


R1(config-line)# login local
R1(config-line)# password padmin
R1(config-line)# transport input all
R1(config-line)# exit

5)R1(config)# interface FastEthernet0/0


R1(config-if)# ip address 192.168.10.1 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# exit

R1(config)# interface Serial2/0


R1(config-if)# ip address 172.16.1.1 255.255.255.252
R1(config-if)# no shutdown
R1(config-if)# exit

R1(config)# interface Serial2/1


R1(config-if)# ip address 172.16.1.5 255.255.255.252
R1(config-if)# no shutdown
R1(config-if)# exit

--------------

R2(config)# interface Serial2/0


R2(config-if)# ip address 172.16.1.2 255.255.255.252
R2(config-if)# no shutdown
R2(config-if)# exit

R2(config)# interface Serial2/2


R2(config-if)# ip address 172.16.1.9 255.255.255.252
R2(config-if)# no shutdown
R2(config-if)# exit

R2(config)# interface FastEthernet0/0


R2(config-if)# ip address 192.168.11.1 255.255.255.0
R2(config-if)# no shutdown
R2(config-if)# exit
--------------------
R3(config)# interface Serial2/2
R3(config-if)# ip address 172.16.1.10 255.255.255.252
R3(config-if)# no shutdown
R3(config-if)# exit

R3(config)# interface Serial2/1


R3(config-if)# ip address 172.16.1.6 255.255.255.252
R3(config-if)# no shutdown
R3(config-if)# exit

R3(config)# interface FastEthernet0/0


R3(config-if)# ip address 192.168.12.1 255.255.255.0
R3(config-if)# no shutdown
R3(config-if)# exit

6)pc-linux-1

- ip addr add 192.168.10.10/24 dev eth0


- ip link set eth0 up
7) ip route add default via 192.168.10.1

pc-linux-2
- ip addr add 192.168.11.10/24 dev eth0
- ip link set eth0 up
7) ip route add default via 192.168.11.1

pc-linux-3
- ip addr add 192.168.12.10/24 dev eth0
- ip link set eth0 up
7) ip route add default via 192.168.12.1

8) Tester la connexion entre pc-linux-1 et f0/0 de R1:

ping 192.168.10.1
=oui

9) Tester la connexion entre pc-linux-2 et S2/1 de R1

ping 172.16.1.5
= non

10) Tester la connexion entre pc-linux-2 et S2/1 de R3

ping 172.16.1.6

=non

etape 4:
2) depuis R1 : 3 réseaux sont accessible

192.168.10.0/24
172.16.1.4
172.16.1.0

3)depuis R2 : 3 réseaux sont accessible


192.168.11.0/24
172.16.1.8
172.16.1.0

4)depuis R3 : 3 réseaux sont accessible

192.168.12.0/24
172.16.1.8
172.16.1.4

5)
R1:
router ospf 1
network 192.168.10.0 0.0.0.255 area 0
network 172.16.1.0 0.0.0.3 area 0
network 172.16.1.4 0.0.0.3 area 0
---------------------------------
R2/
router ospf 1
network 192.168.11.0 0.0.0.255 area 0
network 172.16.1.0 0.0.0.3 area 0
network 172.16.1.8 0.0.0.3 area 0
---------------------------------
R3> enable
R3# configure terminal
R3(config)# router ospf 1
R3(config-router)# network 192.168.12.0 0.0.0.255 area 0
R3(config-router)# network 172.16.1.8 0.0.0.3 area 0
R3(config-router)# network 172.16.1.4 0.0.0.3 area 0

==>
sauvegarde:
R3(config-router)# end
R3# write memory
vérification :
R3# show ip ospf neighbor
R3# show ip route ospf

Etape 5:

3) pc1: telnet 192.168.10.1

You might also like