Cấu hình giao thức OSPF

Một phần của tài liệu Nghiên cứu và triển khai hệ thống mạng với giao thức OSPF (Trang 32 - 39)

- Tại cơ quan: Trƣờng Cao Đẳng Công Nghệ Thông Tin Hữu Nghị Việt – Hàn, Trung

3.2.1.Cấu hình giao thức OSPF

3. TRIỂN KHAI HỆ THỐNG MẠNG SỬ DỤNG GIAO THỨC ĐỊNH TUYẾN

3.2.1.Cấu hình giao thức OSPF

 Hƣớng dẫn cấu hình

Bƣớc 1: Tạo hệ thống mạng

Kết nối các thiết bị nhƣ sơ đồ và khởi động router

Bƣớc 2: Cấu hình các thông số cơ bản trên các router

Router R1

Router(config)#hostname R1

R1(config)#enable password class

R1(config)#no ip domain-lookup

R1(config)#banner motd #Vo phan su mien vao#

R1(config)#line console 0

R1(config-line)#logging synchoronous

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)#interface fastEthernet 0/0

R1(config-if)#ip address 172.16.1.17 255.255.255.240

R1(config-if)#no shutdown

R1(config-if)#exit

R1(config)#interface seriral 0/0

R1(config-if)#ip address 192.168.10.1 255.255.255.252

R1(config-if)#clock rate 64000

R1(config-if)#no shutdown

R1(config-if)#exit

R1(config-if)#ip address 192.168.10.5 255.255.255.252

R1(config-if)#clock rate 64000

R1(config-if)#no shutdown

R1(config-if)#end (adsbygoogle = window.adsbygoogle || []).push({});

R1#copy running-config startup-config

Router R2

Router(config)#hostname R2

R2(config)#enable password class

R2(config)#no ip domain-lookup

R2(config)#banner motd #Vo phan su mien vao#

R2(config)#line console 0

R2(config-line)#logging synchoronous

R2(config-line)#password cisco

R2(config-line)#login

R2(config-line)#exit

R2(config)#line vty 0 4

R2(config-line)#password cisco

R2(config-line)#login

R2(config-line#exit

R2(config)#interface fastEthernet 0/0

R2(config-if)#ip address 10.10.10.1 255.255.255.0

R2(config-if)#no shutdown

R2(config-if)#exit

R2(config)#interface serial 0/0

R2(config-if)#ip address 192.168.10.2 255.255.255.252

R2(config-if)#clock rate 64000

R2(config-if)#no shutdown

R2(config-if)#exit

R2(config-if)#ip address 192.168.10.9 255.255.255.252

R2(config-if)#clock rate 64000

R2(config-if)#no shutdown

R2(config-if)#end

R2#copy running-config startup-config

Router R3 (adsbygoogle = window.adsbygoogle || []).push({});

Router(config)#hostname R3

R3(config)#enable password class

R3(config)#no ip domain-lookup

R3(config)#banner motd #Vo phan su mien vao#

R3(config)#line console 0

R3(config-line)#logging synchoronous

R3(config-line)#password cisco

R3(config-line)#login

R3(config-line)#exit

R3(config)#line vty 0 4

R3(config-line)#password cisco

R3(config-line)#login

R3(config-line#exit

R3(config)#interface fastEthernet 0/0

R3(config-if)#ip address 172.16.1.33 255.255.255.248

R3(config-if)#no shutdown

R3(config-if)#exit

R3(config)#interface serial 0/0

R3(config-if)#ip address 192.168.10.6 255.255.255.252

R3(config-if)#clock rate 64000

R3(config-if)#no shutdown

R3(config-if)#exit

R3(config-if)#ip address 192.168.10.10 255.255.255.252

R3(config-if)#clock rate 64000

R3(config-if)#no shutdown

R3(config-if)#end

R3#copy running-config startup-config

Bƣớc 3: Kiểm tra lại các thông số đã cấu hình trên các Router

+ Các Interface trên Router

Hình 3.2. Các interface trên router R1 (adsbygoogle = window.adsbygoogle || []).push({});

Hình 3.4. Các interface trên router R3 + Cấu hình thông số TCP/IP cho các PC

Hình 3.6. Thông số TCP/IP của PC2

Bƣớc 4: Cấu hình OSPF trên các Router

Hình 3.8. Cấu hình OSPF trên router R1

Hình 3.10. Cấu hình OSPF trên router R3

Một phần của tài liệu Nghiên cứu và triển khai hệ thống mạng với giao thức OSPF (Trang 32 - 39)