-
Building OSPF network with EVE-NG (1)Protocols/BGP_OSPF_MPLS_VPN 2021. 2. 9. 18:26
OSPF(Open Shortest Path First) is a link-state routing protocol. OSPF version 2 is for IPv4 and version 3 is for IPv6.
OSPF protocol is illustrated from RFC2328.
Why OSPF?
It is a standard protocol unlike EIGRP(Cisco). almost all network devices support OSPF for a routing protocol.
Why no OSPF?
OSPF could consume resources such as CPU and RAM but nowadays devices are high-performance so it is not a big deal.
*NOTIFICATION
ALL THESE SCENARIOS ARE ORIGINATED FROM "IP ROUTING - PETER JEON"
RIP, Great Peter Jeon. I remember you. I respect you.
<Basic OSPF underlay network>
I used IOL on eve-eg due to using Serial interface. eve-ng does not support serial interface for GNS3. IOL is better for a switch part than GNS3.
SW1 : i86bi-linux-l2-adventerprisek9-15.2d.bin
Routers : i86bi-linux-l3-adventerprisek9-15.5.2T.bin
<Basic OSPF logical network>
SW1
SW1(config)#vlan 123,24,34,45
SW1(config-vlan)#exit
SW1(config)#int range e 0/0 - 3 , e 1/0
SW1(config-if-range)#switchport trunk encapsulation dot1q
SW1(config-if-range)#switchport mode trunkR1
R1(config)#int lo 0
R1(config-if)#ip add 1.1.1.1 255.255.255.0
R1(config-if)#int e 0/0
R1(config-if)#no shut
R1(config-if)#int e 0/0.123
R1(config-subif)#encap dot 123
R1(config-subif)#ip add 1.1.123.1 255.255.255.0R2
R2(config)#int lo 0
R2(config-if)#ip add 1.1.2.2 255.255.255.0
R2(config-if)#int e 0/0
R2(config-if)#no shut
R2(config-if)#int e 0/0.123
R2(config-subif)#encap dot 123
R2(config-subif)#ip add 1.1.123.2 255.255.255.0
R2(config-if)#int e 0/0.24
R2(config-subif)#encap dot 24
R2(config-subif)#ip add 1.1.24.2 255.255.255.0R3
R3(config)#int lo 0
R3(config-if)#ip add 1.1.3.3 255.255.255.0
R3(config-if)#int e 0/0
R3(config-if)#no shut
R3(config-if)#int e 0/0.123
R3(config-subif)#encap dot 123
R3(config-subif)#ip add 1.1.123.3 255.255.255.0
R3(config-subif)#int s 1/1
R3(config-if)#ip add 1.1.34.3 255.255.255.0
R3(config-if)#no shutR4
R4(config)#int lo 0
R4(config-if)#ip add 1.1.4.4 255.255.255.0
R4(config-if)#int e 0/0
R4(config-if)#no shut
R4(config-if)#int e 0/0.24
R4(config-subif)#encap dot 24
R4(config-subif)#ip add 1.1.24.2 255.255.255.0
R4(config-subif)#int e 0/0.45
R4(config-subif)#encap dot 45
R4(config-subif)#ip add 1.1.45.2 255.255.255.0
R4(config-subif)#int s 1/2
R4(config-subif)#ip add 1.1.34.4 255.255.255.0
R4(config-subif)#no shutR5
R5(config)#int lo 0
R5(config-if)#ip add 1.1.5.5 255.255.255.0
R5(config-if)#int e 0/0
R5(config-if)#no shut
R5(config-if)#int e 0/0.45
R5(config-subif)#encap dot 45
R5(config-subif)#ip add 1.1.45.5 255.255.255.0All devices has below basic commands
en
conf t
hostname ~~~
no ip domain lookup
enable secret cisco
line console 0
logging synchronous
exec-timeout 0
line vty 0 4
transport input telnet
password cisco
end<Network connectivity Check>
R1#ping 1.1.123.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.123.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
R1#ping 1.1.123.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.123.3, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/1 ms
R4#ping 1.1.24.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.24.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/1 ms
R4#ping 1.1.34.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.34.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/9/10 ms
R4#ping 1.1.45.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.45.5, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/1 ms
R4#From here, the basic setup for OSPF routing.
Next, I will build OSPF routing on all.
'Protocols > BGP_OSPF_MPLS_VPN' 카테고리의 다른 글
[MPLS] IP/MPLS Basics (0) 2021.06.08 OSPF metric/cost (0) 2021.02.16 OSPF Link-state/Adjacency changes (0) 2021.02.16 The OSPF Packet Types and Flow (0) 2021.02.11 Building OSPF network with EVE-NG (2) (0) 2021.02.11