Professional Documents
Culture Documents
Chuong 08 - OSPF Single Area Basic
Chuong 08 - OSPF Single Area Basic
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