> For the complete documentation index, see [llms.txt](https://manual.seara.biz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.seara.biz/connect-to-seara-with/how-to-setup-equipment-connect-to-seara/basic-mikrotik-config.md).

# Basic Mikrotik config

การตั้งค่าอุปกรณ์ Microtik ในคู่มือการใช้งานนี้จะเป็นการตั้งค่าการใช้งานด้วยโปรแกรม Winbox โดยสามารถ Load winbox และศึกษาวิธีการใช้งานเบื้องต้นได้จาก <https://mikrotik.com/download>

## 1.  Reset การตั้งค่า

&#x20;       กรณีต้องการสร้างการตั้งค่าทั้งหมดที่เคยทำไว้

<mark style="color:orange;">System --> reset configuration</mark>

<img src="/files/drCT3GQToFwdKQ3t9khY" alt="" data-size="original">

## 2. กำหนดให้ eth1 เป็นขา WAN&#x20;

&#x20;       เพื่อให้ MikroTik รับ Internet ได้

<mark style="color:orange;">IP --> DHCP Client</mark>

<figure><img src="/files/HGcbV2bqDLj1x9U3pA01" alt=""><figcaption></figcaption></figure>

## 3. สร้าง Bridge เพื่อให้ได้ MAC Address เดียวกัน

&#x20;       Bridge เดียวกัน จะได้ MAC Address, VLAN และหน้า Portal Login เดียวกัน

*\*\*\* **หากไม่ต้องการใช้  bridge interface สามารถใช้ eth2 , eth3 , eth4, eth5 ได้เลย**  \*\*\**

<mark style="background-color:blue;">ตัวอย่าง กรณีทำ Bridge</mark>

<figure><img src="/files/XIkGJ5ksNOaJtrbYZDua" alt=""><figcaption></figcaption></figure>

&#x20;ตั้งชื่อ Bridge\_LAN

<figure><img src="/files/lqb0oD1izgoOgstH6NDU" alt=""><figcaption></figcaption></figure>

Add eth 3 4 5 เข้าใน Bridge\_LAN ที่สร้างไว้ ซึ่งทั้ง 3 interface จะเป็น MAC address เดียวกัน

<figure><img src="/files/ineHiEoe0w4huWyg3Xko" alt=""><figcaption></figcaption></figure>

## 5. กำหนดค่า IP Address&#x20;

&#x20;      กำหนดชุด IP Address ที่ต้องการปล่อยให้แก่ Client ที่มาต่อกับ interface ของ Bridge

<mark style="color:orange;">IP --> Address List</mark>

&#x20;<mark style="background-color:blue;">ตัวอย่าง  IP address: 192.168.200.1/24</mark>

<figure><img src="/files/ZhPbaUEnF516x2Qna0Cv" alt=""><figcaption></figcaption></figure>

## 6. กำหนด Pool DHCP

&#x20;       กำหนด IP DHCP Server Pool ที่ใช้แจกให้กับ Client ที่มาต่อกับ interface ของ Bridge

<mark style="color:orange;">IP --> DHCP Server</mark>

<mark style="background-color:blue;">**ตัวอย่าง**</mark>

<mark style="background-color:blue;">I</mark>nterface : bridge\_Lan&#x20;

Network id 192.168.200.0/24

Gateway : 192.168.200.1

Pool : 192.168.200.2-192.168.200.250

DNS : 8.8.8.8

Lease Time : 08:00:00

<figure><img src="/files/3pWknWjGXMiJfPHjH0Pb" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/eFMcHHJ53uxlwM22ryz7" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/cvmylvIMjqTQJnRCeZPU" alt=""><figcaption></figcaption></figure>

![](/files/NAdTYESIVwR7p1FFZyEC)

&#x20;\*\* **ทดสอบต่อ Lan เข้ากับ Interface ที่อยู่ใน Bridge ดูว่าได้ IP ตามที่ set ไว้ไหม**&#x20;

<figure><img src="/files/1KlLFUZY7b6ZevvjxVb0" alt=""><figcaption></figcaption></figure>

## 7. ทำ NAT

IP --> Firewall --> NAT

<figure><img src="/files/5AugafpYAmr9BAA3HllZ" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/pWXt3ssL5Vw978X87vO4" alt=""><figcaption></figcaption></figure>

\*\* **เสร็จขั้นตอนนี้ จะได้รับ Internet**
