TP4 - commandes
TP4 - commandes
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
--------------
6)pc-linux-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
ping 192.168.10.1
=oui
ping 172.16.1.5
= non
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
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: