N's Story

OSPF 기본 실습 본문

■ Communications /↘ Cisco GNS

OSPF 기본 실습

AndrewNa 2019. 4. 11. 19:09
728x90
반응형

Topology

 

 

Command

-R1-

R1(config)#int loopback 0

R1(config-if)#ip address 1.1.1.1 255.255.255.0

 

R1(config)#int s1/1

R1(config-if)#ip address 10.1.12.1 255.255.255.0

R1(config-if)#no shut

 

R1(config)#router ospf 1 // process 1

R1(config-router)#network 1.1.1.1 0.0.0.255 area 0 // area 0

R1(config-router)#network 10.1.12.0 0.0.0.255 area 0

 

-R2-

R2(config)#int loopback 0

R2(config-if)#ip address 2.2.2.2 255.255.255.0

 

R2(config)#int s1/1

R2(config-if)#ip address 10.1.12.2 255.255.255.0

R2(config-if)#no shut

 

R2(config)#int s1/2

R2(config-if)#ip address 10.1.23.2 255.255.255.0

R2(config-if)#no shut

 

R2(config)#int s1/3

R2(config-if)#ip address 10.1.24.2 255.255.255.0

R2(config-if)#no shut

 

R2(config)#router ospf 1

R2(config-router)#network 2.2.2.2 0.0.0.255 area 0

R2(config-router)#network 10.1.12.0 0.0.0.255 area 0

R2(config-router)#network 10.1.23.0 0.0.0.255 area 0

R2(config-router)#network 10.1.24.0 0.0.0.255 area 0

 

-R3-

R3(config)#int loopback 0

R3(config-if)#ip address 3.3.3.3 255.255.255.0

 

R3(config)#int s1/2

R3(config-if)#ip address 10.1.23.3 255.255.255.0

R3(config-if)#no shut

 

R3(config)#router ospf1

R3(config-router)#network 3.3.3.3 0.0.0.255 area 0

R3(config-router)#network 10.1.23.0 0.0.0.255 area 0

 

-R4-

R4(config)#int loopback 0

R4(config-if)#ip address 4.4.4.4 255.255.255.0

 

R4(config)#int s1/3

R4(config-if)#ip address 10.1.24.4 255.255.255.0

R4(config-if)#no shut

 

R4(config)#router ospf1

R4(config-router)#network 4.4.4.4 0.0.0.255 area 0

R4(config-router)#network 10.1.24.0 0.0.0.255 area 0

 

Check

 

728x90
반응형
Comments