Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

Cấu hình OSPF trong một khu vực như sau:

1) Sử dụng ID tiến trình OSPF 1


2) R1 - bật OSPF bằng lệnh với IP
2) R2 - bật OSPF bằng lệnh dựa trên Subnet mask
3) R3 - bật OSPF bằng lệnh Interface
4) R4 - bật OSPF bằng lệnh trên tất cả các Interfaces

R1>enable
R1#show ip interface brief
R1#configure terminal
R1(config)#router ospf 1
R1(config-router)#network 10.1.1.1 0.0.0.0 area 0
R1(config-router)#network 1.1.1.1 0.0.0.0 area 0
R1(config-router)#end
R1#show ip ospf interface
R1#show ip protocols
R1#show ip ospf neighbor
R1#show ip ospf database
R1#write

R2>enable
R2#show ip interface brief
R2#configure terminal
R2(config)#router ospf 1
R2(config-router)#network 2.2.2.2 0.0.0.0 area 0
R2(config-router)#network 10.1.1.0 0.0.0.255 area 0
R2(config-router)#network 10.1.2.0 0.0.0.255 area 0
R2(config-router)#end
R2#show ip ospf interface
R2#show ip protocols
R2#show ip ospf neighbor
R2#show ip ospf database
R2#write

R3>enable
R3#show ip interface brief
R3#configure terminal
R3(config)#interface Loopback 0
R3(config-if)#ip address 3.3.3.3 255.255.255.255
R3(config-if)#ip ospf 1 area 0
R3(config-if)#exit
R3(config)#interface GigabitEthernet 0/0
R3(config-if)#ip address 10.1.3.1 255.255.255.0
R3(config-if)#ip ospf 1 area 0
R3(config-if)#exit
R3(config)#interface GigabitEthernet 0/1
R3(config-if)#ip address 10.1.2.2 255.255.255.0
R3(config-if)#ip ospf 1 area 0
R3(config-if)#end
R3#show ip ospf interface
R3#show ip protocols
R3#show ip ospf neighbor
R3#show ip ospf database
R3#write

R4>enable
R4#show ip interface brief
R4#configure terminal
R4(config)#router ospf 1
R4(config-router)#network 0.0.0.0 255.255.255.255 area 0
R4(config-if)#end
R4#show ip ospf interface
R4#show ip protocols
R4#show ip ospf neighbor
R4#show ip ospf database
R4#write

You might also like