1. LAB CẤU HÌNH ROUTER OSPF
Mô hình
Khởi động GNS3 để dựng topo mạng như mô hình trên.
Thực hiện cấu hình trên các router
Bước 1 :
Thực hiện config basic ban đầu
- Đặt tên
- Gán IP trên các interface
- Kiểm tra xem các router đã có thể ping được tới nhau chưa
< Kiểm tra kết nối>
-------------------------------Cấu hình router 1 ---------------------------------
Router>en
2. Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hos R1
R1(config-line)#int e1/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#int e1/1
R1(config-if)#ip address 192.168.3.2 255.255.255.0
R1(config-if)#no shutdown
-------------------------- Cấu hình Router Ospf trên R1 ---------------------
R1#conf t
R1(config)#router Ospf 10
R1(config-router)#network 192.168.1.0 0.0.0.255 area 0
R1(config-router)#network 192.168.3.0 0.0.0.255 area 0
-------------------------------Cấu hình Router 2 ---------------------------------------
Router>en
Router#conf t
Router(config)#hos R2
R2(config-line)#int e1/0
R2(config-if)#ip add
R2(config-if)#ip address 192.168.1.2 255.255.255.0
R2(config-if)#no shutdown
3. R2(config-line)#int e1/1
R2(config-if)#ip address 192.168.2.1 255.255.255.0
R2(config-if)#no shutdown
-------------------------------Cấu hình Router Ospf trên R2----------------------------------------
R1#conf t
R1(config)#router Ospf 10
R1(config-router)#network 192.168.1.0 0.0.0.255 area 0
R1(config-router)#network 192.168.2.0 0.0.0.255 area 0
------------------------------------------Cấu hình Router R3 ------------------------------------
Router>en
Router#conf t
Router(config)#hos R3
R3(config-line)#int e1/0
R3(config-if)#ip ad 192.168.2.2 255.255.255.0
R3(config-if)#no shu
R3(config-if)#
R3(config-if)#int e1/1
R3(config-if)#ip ad 192.168.4.2 255.255.255.0
R3(config-if)#no shu
-------------------Cấu hình Router Ospf R3 -------------------------------------
R1#conf t
R1(config)#router Ospf 10
R1(config-router)#network 192.168.2.0 0.0.0.255 area 0