SlideShare a Scribd company logo
Prepared by wichets – 0923921991 | E-SPACE TECHNOLOGIES CORPORATION
การคอนฟิกส์ OSPF บน UBNT EDGE ROUTER
ตัวอย่างเน็ตเวิร์คคอนฟิกส์
ไดอะแกรมประด้วย 3 เร้าเตอร์ที่ต้องการคอนฟิกส์เร้าให้เป็นแบบ OSPF
Prepared by wichets – 0923921991 | E-SPACE TECHNOLOGIES CORPORATION
ตั้งค่าเร้าเตอร์ (R1)
 ตั้งค่า IP addresses.
ubnt@R1#set interfaces ethernet eth1 address 10.0.50.1/24
 ตั้งค่า OSPF.
ubnt@R1#set protocols ospf parameters router-id 10.0.50.1
ubnt@R1#set protocols ospf area 0.0.0.0 network 10.0.50.0/24
ตั้งค่าเร้าเตอร์ (R2)
 ตั้งค่า IP addresses.
ubnt@R2#set interfaces ethernet eth1 address 10.0.50.2/24
ubnt@R2#set interfaces ethernet eth2 address 10.0.60.2/24
 ตั้งค่า OSPF.
ubnt@R2#set protocols ospf parameters router-id 10.0.50.2
ubnt@R2#set protocols ospf area 0.0.0.0 network 10.0.50.0/24
ubnt@R2#set protocols ospf area 0.0.0.0 network 10.0.60.0/24
Prepared by wichets – 0923921991 | E-SPACE TECHNOLOGIES CORPORATION
ตั้งค่าเร้าเตอร์ (R3)
 ตั้งค่า IP addresses.
ubnt@R3#set interfaces ethernet eth0 address 10.0.60.3/24
 ตั้งค่า OSPF.
ubnt@R3#set protocols ospf parameters router-id 10.0.60.3
ubnt@R3#set protocols ospf area 0.0.0.0 network 10.0.60.0/24
 หลังจากตั้งค่าคอนฟิกส์แล้วทากรตรวจสอบการเร้าว่าถึงกันหรือไม่
เร้าเตอร์ R1 จะเรียนรู้เน็ตเวิร์ค 10.0.60.0/24 เน็ตจะเร้าไปถึงโดย 10.0.50.2
ubnt@R1:~$ show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
I - ISIS, B - BGP, > - selected route, * - FIB route
S>* 0.0.0.0/0 [210/0] via 192.168.0.1, eth5
O 10.0.50.0/24 [110/10] is directly connected, eth1, 00:00:27
C>* 10.0.50.0/24 is directly connected, eth1
O>* 10.0.60.0/24 [110/20] via 10.0.50.2, eth1, 00:00:11
C>* 127.0.0.0/8 is directly connected, lo
C>* 172.16.3.0/24 is directly connected, eth2
ubnt@R1:~$ ping 10.0.60.3
PING 10.0.60.3 (10.0.60.3) 56(84) bytes of data.
64 bytes from 10.0.60.3: icmp_req=1 ttl=63 time=18.1 ms
^C
--- 10.0.60.3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 18.175/18.175/18.175/0.000 ms
ubnt@R1:~$ traceroute 10.0.60.3
traceroute to 10.0.60.3 (10.0.60.3), 30 hops max, 60 byte packets
1 10.0.50.2 (10.0.50.2) 0.251 ms 0.219 ms 0.175 ms
2 10.0.60.3 (10.0.60.3) 0.287 ms 0.248 ms 0.266 ms
Prepared by wichets – 0923921991 | E-SPACE TECHNOLOGIES CORPORATION
คาสั่งอื่นๆที่ใช้
 คาสั่งให้แสดง ข้อมูลไอพีของ OSPF
ubnt@R1:~$ show ip ospf
OSPF Routing Process, Router ID: 10.0.50.1
Supports only single TOS (TOS0) routes
This implementation conforms to RFC2328
RFC1583Compatibility flag is disabled
OpaqueCapability flag is disabled
Initial SPF scheduling delay 200 millisec(s)
Minimum hold time between consecutive SPFs 1000 millisec(s)
Maximum hold time between consecutive SPFs 10000 millisec(s)
Hold time multiplier is currently 1
SPF algorithm last executed 3m57s ago
SPF timer is inactive
Refresh timer 10 secs
Number of external LSA 0. Checksum Sum 0x00000000
Number of opaque AS LSA 0. Checksum Sum 0x00000000
Number of areas attached to this router: 1
Area ID: 0.0.0.0 (Backbone)
Number of interfaces in this area: Total: 1, Active: 1
Number of fully adjacent neighbors in this area: 1
Area has no authentication
SPF algorithm executed 3 times
Number of LSA 5
Number of router LSA 3. Checksum Sum 0x0000d444
Number of network LSA 2. Checksum Sum 0x00007d31
Number of summary LSA 0. Checksum Sum 0x00000000
Number of ASBR summary LSA 0. Checksum Sum 0x00000000
Number of NSSA LSA 0. Checksum Sum 0x00000000
Number of opaque link LSA 0. Checksum Sum 0x00000000
Number of opaque area LSA 0. Checksum Sum 0x00000000
Prepared by wichets – 0923921991 | E-SPACE TECHNOLOGIES CORPORATION
 คาสั่งสาหรับให้แสดงสอบฐานข้อมูลไอพีของ OSPF
ubnt@R1:~$ show ip ospf database
OSPF Router with ID (10.0.50.1)
Router Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# CkSum Link count
10.0.50.1 10.0.50.1 259 0x80000003 0x1f33 1
10.0.50.2 10.0.50.2 259 0x80000006 0x7131 2
10.0.60.3 10.0.60.3 279 0x80000003 0x43e0 1
Net Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# CkSum
10.0.50.2 10.0.50.2 260 0x80000001 0x283a
10.0.60.2 10.0.50.2 279 0x80000001 0x54f7
ubnt@R2:~$ show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface RXmtL RqstL DBsmL
10.0.50.1 1 Full/Backup 31.462s 10.0.50.1 eth1:10.0.50.2 0 0 0
10.0.60.3 1 Full/Backup 31.633s 10.0.60.3 eth2:10.0.60.2 0 0 0
 คาสั้งเพื่อแสดง OSPF interface
ubnt@R1:~$ show ip ospf interface eth1
eth1 is up
ifindex 3, MTU 1500 bytes, BW 0 Kbit
Internet Address 10.0.50.1/24, Broadcast 10.0.50.255, Area 0.0.0.0
MTU mismatch detection:enabled
Router ID 10.0.50.1, Network Type BROADCAST, Cost: 10
Transmit Delay is 1 sec, State Backup, Priority 1
Designated Router (ID) 10.0.50.2, Interface Address 10.0.50.2
Backup Designated Router (ID) 10.0.50.1, Interface Address 10.0.50.1
Multicast group memberships: OSPFAllRouters OSPFDesignatedRouters
Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, Retransmit 5
Hello due in 8.940s
Neighbor Count is 1, Adjacent neighbor count is 1

More Related Content

PDF
MTCRE Training outline, Course prerequisites – MTCNA certificate
PPT
Exploration lan switching_chapter5
PPT
PDF
Introduction to ns2
PPT
5b Virtual Wall Papadimitriou
PPT
Simulation and Performance Analysis of AODV using NS-2.34
PPTX
Network simulator 2
PPTX
Protocol implementation on NS2
MTCRE Training outline, Course prerequisites – MTCNA certificate
Exploration lan switching_chapter5
Introduction to ns2
5b Virtual Wall Papadimitriou
Simulation and Performance Analysis of AODV using NS-2.34
Network simulator 2
Protocol implementation on NS2

What's hot (8)

PDF
Leakybucketalgorithm
PPS
ICWES15 - Green Path Connection in Multi-Layer Transport Network. Presented b...
PDF
A Simple Communication System Design Lab #1 with MATLAB Simulink
PPTX
PPTX
Network simulator 2
PDF
A Simple Communication System Design Lab #2 with MATLAB Simulink
Leakybucketalgorithm
ICWES15 - Green Path Connection in Multi-Layer Transport Network. Presented b...
A Simple Communication System Design Lab #1 with MATLAB Simulink
Network simulator 2
A Simple Communication System Design Lab #2 with MATLAB Simulink
Ad

Similar to การคอนฟิกส์ OSPF บน Ubiquiti Edge Router (20)

PPT
Icnd210 s04l01
PPT
acit mumbai - ospf rouitng
DOCX
How to troubleshoot and verifying ospf configuration
PDF
Lab_5_OSPF_MPLS_sham_link_on_MPLS_VPN_1698700003.pdf
PDF
ospf-filtering-issue - Partial Topology.pdf
PPTX
Лекц 15
PPT
PPT
PPT
CCIE Lab - IGP Routing
PPTX
Routing protocols
PPTX
Juniper JNCIA – Juniper OSPF Route Configuration
DOCX
Practice exam #2
PDF
Hands on lab_instruction(1)
PDF
Hands on lab_instruction(2)
PDF
Hands on lab_instruction
PPTX
Multicloud connectivity using OpenNHRP
PPT
Learn OSPF(Open Short Path First) routing to day
PPT
Ospf Cisco
PPTX
[오픈소스컨설팅] Linux Network Troubleshooting
PDF
Ip sec vpn with dynamic routing mikrotik and cisco - mikro-tik wiki
Icnd210 s04l01
acit mumbai - ospf rouitng
How to troubleshoot and verifying ospf configuration
Lab_5_OSPF_MPLS_sham_link_on_MPLS_VPN_1698700003.pdf
ospf-filtering-issue - Partial Topology.pdf
Лекц 15
CCIE Lab - IGP Routing
Routing protocols
Juniper JNCIA – Juniper OSPF Route Configuration
Practice exam #2
Hands on lab_instruction(1)
Hands on lab_instruction(2)
Hands on lab_instruction
Multicloud connectivity using OpenNHRP
Learn OSPF(Open Short Path First) routing to day
Ospf Cisco
[오픈소스컨설팅] Linux Network Troubleshooting
Ip sec vpn with dynamic routing mikrotik and cisco - mikro-tik wiki
Ad

More from Tũi Wichets (20)

PDF
RouterOS Commands
PDF
อัตรา Rain Rate ในแถบ East-Asia
PDF
ขั้นตอนการปรับตำแหน่งจาน Mikrotik mANT 30dBi 5Ghz MIMO ให้ feed สัญญาณ Slant ...
PDF
MTCNA Training outline, Certified Network Associate (MTCNA)
PDF
MTCWE Training outline, Course prerequisites – MTCNA certificate
PDF
MTCINE training outline, Course prerequisites – MTCNA and MTCRE certificates
PDF
บล๊อกเวปไซท์ บน Open WRT หรือ บน Ubiquiti NanoStation M5 หรือ บน airOS
PDF
Introduction to Data Centre 3.0
PDF
Windows Server 2012 R2 products & editions comparison
PDF
Settings MikroTik Router and Access Point to schedule AP radio on off via script
PDF
แนะนำแนวทางการออกแบบ การปรับแต่ง การรับส่งสัญญาณ airFiber 24 - airFiber Desig...
PDF
How to link public addresses (real ip) to private ip or lan ip
PDF
FAQ - Rogue AP - What is Rogue Access Point?
PDF
เอกสาร แนวทาง การอินติเกรท Mac OS X เข้ากับ ระบบ Active Directory อย่างไร Bes...
PDF
Windows server 2012 r2 Hyper-v Component architecture
PDF
Gigabit Wi-Fi 802.11AC In Depth
PDF
ค่า Tx Power Mode ใน Ubiquiti และ Mikrotik (RF Tx Power Mode Settings)
PDF
SwOS (MikroTik Switch OS) Administration Guide
PDF
คู่มือเริ่มต้นใช้งานด่วน สำหรับ Excel 2013
PDF
คู่มือเริ่มต้นใช้งานด่วน สำหรับ PowerPoint 2013
RouterOS Commands
อัตรา Rain Rate ในแถบ East-Asia
ขั้นตอนการปรับตำแหน่งจาน Mikrotik mANT 30dBi 5Ghz MIMO ให้ feed สัญญาณ Slant ...
MTCNA Training outline, Certified Network Associate (MTCNA)
MTCWE Training outline, Course prerequisites – MTCNA certificate
MTCINE training outline, Course prerequisites – MTCNA and MTCRE certificates
บล๊อกเวปไซท์ บน Open WRT หรือ บน Ubiquiti NanoStation M5 หรือ บน airOS
Introduction to Data Centre 3.0
Windows Server 2012 R2 products & editions comparison
Settings MikroTik Router and Access Point to schedule AP radio on off via script
แนะนำแนวทางการออกแบบ การปรับแต่ง การรับส่งสัญญาณ airFiber 24 - airFiber Desig...
How to link public addresses (real ip) to private ip or lan ip
FAQ - Rogue AP - What is Rogue Access Point?
เอกสาร แนวทาง การอินติเกรท Mac OS X เข้ากับ ระบบ Active Directory อย่างไร Bes...
Windows server 2012 r2 Hyper-v Component architecture
Gigabit Wi-Fi 802.11AC In Depth
ค่า Tx Power Mode ใน Ubiquiti และ Mikrotik (RF Tx Power Mode Settings)
SwOS (MikroTik Switch OS) Administration Guide
คู่มือเริ่มต้นใช้งานด่วน สำหรับ Excel 2013
คู่มือเริ่มต้นใช้งานด่วน สำหรับ PowerPoint 2013

Recently uploaded (20)

PPTX
Funds Management Learning Material for Beg
PPTX
E -tech empowerment technologies PowerPoint
PPT
250152213-Excitation-SystemWERRT (1).ppt
PPTX
IPCNA VIRTUAL CLASSES INTERMEDIATE 6 PROJECT.pptx
PDF
simpleintnettestmetiaerl for the simple testint
PPT
isotopes_sddsadsaadasdasdasdasdsa1213.ppt
PDF
mera desh ae watn.(a source of motivation and patriotism to the youth of the ...
PDF
SlidesGDGoCxRAIS about Google Dialogflow and NotebookLM.pdf
PDF
Slides PDF: The World Game (s) Eco Economic Epochs.pdf
PDF
📍 LABUAN4D EXCLUSIVE SERVER STAR GAMING ASIA NO.1 TERPOPULER DI INDONESIA ! 🌟
PPTX
Slides PPTX: World Game (s): Eco Economic Epochs.pptx
PPTX
Power Point - Lesson 3_2.pptx grad school presentation
PDF
Introduction to the IoT system, how the IoT system works
PPT
415456121-Jiwratrwecdtwfdsfwgdwedvwe dbwsdjsadca-EVN.ppt
PDF
Smart Home Technology for Health Monitoring (www.kiu.ac.ug)
PDF
SASE Traffic Flow - ZTNA Connector-1.pdf
PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
PPT
Design_with_Watersergyerge45hrbgre4top (1).ppt
PDF
Exploring VPS Hosting Trends for SMBs in 2025
PPTX
Layers_of_the_Earth_Grade7.pptx class by
Funds Management Learning Material for Beg
E -tech empowerment technologies PowerPoint
250152213-Excitation-SystemWERRT (1).ppt
IPCNA VIRTUAL CLASSES INTERMEDIATE 6 PROJECT.pptx
simpleintnettestmetiaerl for the simple testint
isotopes_sddsadsaadasdasdasdasdsa1213.ppt
mera desh ae watn.(a source of motivation and patriotism to the youth of the ...
SlidesGDGoCxRAIS about Google Dialogflow and NotebookLM.pdf
Slides PDF: The World Game (s) Eco Economic Epochs.pdf
📍 LABUAN4D EXCLUSIVE SERVER STAR GAMING ASIA NO.1 TERPOPULER DI INDONESIA ! 🌟
Slides PPTX: World Game (s): Eco Economic Epochs.pptx
Power Point - Lesson 3_2.pptx grad school presentation
Introduction to the IoT system, how the IoT system works
415456121-Jiwratrwecdtwfdsfwgdwedvwe dbwsdjsadca-EVN.ppt
Smart Home Technology for Health Monitoring (www.kiu.ac.ug)
SASE Traffic Flow - ZTNA Connector-1.pdf
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
Design_with_Watersergyerge45hrbgre4top (1).ppt
Exploring VPS Hosting Trends for SMBs in 2025
Layers_of_the_Earth_Grade7.pptx class by

การคอนฟิกส์ OSPF บน Ubiquiti Edge Router

  • 1. Prepared by wichets – 0923921991 | E-SPACE TECHNOLOGIES CORPORATION การคอนฟิกส์ OSPF บน UBNT EDGE ROUTER ตัวอย่างเน็ตเวิร์คคอนฟิกส์ ไดอะแกรมประด้วย 3 เร้าเตอร์ที่ต้องการคอนฟิกส์เร้าให้เป็นแบบ OSPF
  • 2. Prepared by wichets – 0923921991 | E-SPACE TECHNOLOGIES CORPORATION ตั้งค่าเร้าเตอร์ (R1)  ตั้งค่า IP addresses. ubnt@R1#set interfaces ethernet eth1 address 10.0.50.1/24  ตั้งค่า OSPF. ubnt@R1#set protocols ospf parameters router-id 10.0.50.1 ubnt@R1#set protocols ospf area 0.0.0.0 network 10.0.50.0/24 ตั้งค่าเร้าเตอร์ (R2)  ตั้งค่า IP addresses. ubnt@R2#set interfaces ethernet eth1 address 10.0.50.2/24 ubnt@R2#set interfaces ethernet eth2 address 10.0.60.2/24  ตั้งค่า OSPF. ubnt@R2#set protocols ospf parameters router-id 10.0.50.2 ubnt@R2#set protocols ospf area 0.0.0.0 network 10.0.50.0/24 ubnt@R2#set protocols ospf area 0.0.0.0 network 10.0.60.0/24
  • 3. Prepared by wichets – 0923921991 | E-SPACE TECHNOLOGIES CORPORATION ตั้งค่าเร้าเตอร์ (R3)  ตั้งค่า IP addresses. ubnt@R3#set interfaces ethernet eth0 address 10.0.60.3/24  ตั้งค่า OSPF. ubnt@R3#set protocols ospf parameters router-id 10.0.60.3 ubnt@R3#set protocols ospf area 0.0.0.0 network 10.0.60.0/24  หลังจากตั้งค่าคอนฟิกส์แล้วทากรตรวจสอบการเร้าว่าถึงกันหรือไม่ เร้าเตอร์ R1 จะเรียนรู้เน็ตเวิร์ค 10.0.60.0/24 เน็ตจะเร้าไปถึงโดย 10.0.50.2 ubnt@R1:~$ show ip route Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF, I - ISIS, B - BGP, > - selected route, * - FIB route S>* 0.0.0.0/0 [210/0] via 192.168.0.1, eth5 O 10.0.50.0/24 [110/10] is directly connected, eth1, 00:00:27 C>* 10.0.50.0/24 is directly connected, eth1 O>* 10.0.60.0/24 [110/20] via 10.0.50.2, eth1, 00:00:11 C>* 127.0.0.0/8 is directly connected, lo C>* 172.16.3.0/24 is directly connected, eth2 ubnt@R1:~$ ping 10.0.60.3 PING 10.0.60.3 (10.0.60.3) 56(84) bytes of data. 64 bytes from 10.0.60.3: icmp_req=1 ttl=63 time=18.1 ms ^C --- 10.0.60.3 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 18.175/18.175/18.175/0.000 ms ubnt@R1:~$ traceroute 10.0.60.3 traceroute to 10.0.60.3 (10.0.60.3), 30 hops max, 60 byte packets 1 10.0.50.2 (10.0.50.2) 0.251 ms 0.219 ms 0.175 ms 2 10.0.60.3 (10.0.60.3) 0.287 ms 0.248 ms 0.266 ms
  • 4. Prepared by wichets – 0923921991 | E-SPACE TECHNOLOGIES CORPORATION คาสั่งอื่นๆที่ใช้  คาสั่งให้แสดง ข้อมูลไอพีของ OSPF ubnt@R1:~$ show ip ospf OSPF Routing Process, Router ID: 10.0.50.1 Supports only single TOS (TOS0) routes This implementation conforms to RFC2328 RFC1583Compatibility flag is disabled OpaqueCapability flag is disabled Initial SPF scheduling delay 200 millisec(s) Minimum hold time between consecutive SPFs 1000 millisec(s) Maximum hold time between consecutive SPFs 10000 millisec(s) Hold time multiplier is currently 1 SPF algorithm last executed 3m57s ago SPF timer is inactive Refresh timer 10 secs Number of external LSA 0. Checksum Sum 0x00000000 Number of opaque AS LSA 0. Checksum Sum 0x00000000 Number of areas attached to this router: 1 Area ID: 0.0.0.0 (Backbone) Number of interfaces in this area: Total: 1, Active: 1 Number of fully adjacent neighbors in this area: 1 Area has no authentication SPF algorithm executed 3 times Number of LSA 5 Number of router LSA 3. Checksum Sum 0x0000d444 Number of network LSA 2. Checksum Sum 0x00007d31 Number of summary LSA 0. Checksum Sum 0x00000000 Number of ASBR summary LSA 0. Checksum Sum 0x00000000 Number of NSSA LSA 0. Checksum Sum 0x00000000 Number of opaque link LSA 0. Checksum Sum 0x00000000 Number of opaque area LSA 0. Checksum Sum 0x00000000
  • 5. Prepared by wichets – 0923921991 | E-SPACE TECHNOLOGIES CORPORATION  คาสั่งสาหรับให้แสดงสอบฐานข้อมูลไอพีของ OSPF ubnt@R1:~$ show ip ospf database OSPF Router with ID (10.0.50.1) Router Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# CkSum Link count 10.0.50.1 10.0.50.1 259 0x80000003 0x1f33 1 10.0.50.2 10.0.50.2 259 0x80000006 0x7131 2 10.0.60.3 10.0.60.3 279 0x80000003 0x43e0 1 Net Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# CkSum 10.0.50.2 10.0.50.2 260 0x80000001 0x283a 10.0.60.2 10.0.50.2 279 0x80000001 0x54f7 ubnt@R2:~$ show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface RXmtL RqstL DBsmL 10.0.50.1 1 Full/Backup 31.462s 10.0.50.1 eth1:10.0.50.2 0 0 0 10.0.60.3 1 Full/Backup 31.633s 10.0.60.3 eth2:10.0.60.2 0 0 0  คาสั้งเพื่อแสดง OSPF interface ubnt@R1:~$ show ip ospf interface eth1 eth1 is up ifindex 3, MTU 1500 bytes, BW 0 Kbit Internet Address 10.0.50.1/24, Broadcast 10.0.50.255, Area 0.0.0.0 MTU mismatch detection:enabled Router ID 10.0.50.1, Network Type BROADCAST, Cost: 10 Transmit Delay is 1 sec, State Backup, Priority 1 Designated Router (ID) 10.0.50.2, Interface Address 10.0.50.2 Backup Designated Router (ID) 10.0.50.1, Interface Address 10.0.50.1 Multicast group memberships: OSPFAllRouters OSPFDesignatedRouters Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, Retransmit 5 Hello due in 8.940s Neighbor Count is 1, Adjacent neighbor count is 1