SlideShare a Scribd company logo
Prepared by wichets@e-spacecorp.net ● E-SPACE TECHNOLOGIES CORPORATION ● Tel.0898821501 pg. 15 of 31
How To Link Public addresses to Local ones
Using Network Address Translation (NAT), private IP addresses on LAN are replaced by public IP addresses. This
lets computers on LAN share public IP addresses.
Let us assume two addresses (10.0.0.216 and 10.0.0.217) are assigned to the router. In this example we will 'full
NAT' the internal address 192.168.0.4 to the external 10.0.0.216 one while keeping 10.0.0.217 for the router itself
as well as for masquerading the internal network. To setup the router follow the steps listed below.
1. Add 10.0.0.216/24 and 10.0.0.217/24 addresses to the router's Public interface and 192.168.0.254/24 to the
router's Local interface:
[admin@MikroTik] ip address> add address=10.0.0.216/24 interface=Public
[admin@MikroTik] ip address> add address=10.0.0.217/24 interface=Public
[admin@MikroTik] ip address> add address=192.168.0.254/24 interface=Local
Prepared by wichets@e-spacecorp.net ● E-SPACE TECHNOLOGIES CORPORATION ● Tel.0898821501 pg. 16 of 31
2. Add the default route to the router, but be aware of having two addresses. You should specify the address that
the router will be using while talking to the outer networks:
[admin@MikroTik] ip route> add gateway=10.0.0.1 prefsrc=10.0.0.217
3. Add DST-NAT rule allowing access to the internal server from external networks:
[admin@MikroTik] ip firewall nat> add action=dst-nat chain=dstnat 
dst-address=10.0.0.216/32 to-addresses=192.168.0.4
4. To add SRC-NAT rules allowing the internal server to talk to the outer networks having its source address
translated to 10.0.0.216, while translating other internal hosts' source addresses to 10.0.0.217:
[admin@MikroTik] ip firewall nat> add action=src-nat chain=srcnat 
src-address=192.168.0.4/32 to-addresses=10.0.0.216
[admin@MikroTik] ip firewall nat> add action=src-nat chain=srcnat 
src-address=192.168.0.0/24 to-addresses=10.0.0.217

More Related Content

PDF
Sharing your-internet-connection-on-linux
PPTX
Static NAT
PPTX
Subnetting
DOCX
Cisco packet tracer router
PDF
NAT- Network Address Translation
PPTX
Dynamic NAT
PDF
Mail server
PPT
I Pv6 Addressing
Sharing your-internet-connection-on-linux
Static NAT
Subnetting
Cisco packet tracer router
NAT- Network Address Translation
Dynamic NAT
Mail server
I Pv6 Addressing

What's hot (20)

PPT
Anycast & Multicast
PDF
DNS server packet tracer
PPT
Introduction To Cisco Switching – Part 1
PPTX
How to make a simple application on packet tracer
PPT
Anycast & Multicast
PPT
Anycast & Multicast
PPTX
Networking basics and basic cisco commands
ODP
Networking Basics
PPTX
Week7 final
PPT
Packet tracer
PPT
Chapter11ccna
PPTX
Subnetting
PDF
Mail server
PDF
designandimplementanetwork
PDF
Cisco discovery d homesb module 5 - v.4 in english.
PDF
Gmail server.mitu
DOCX
Nat failover with dual isp on cisco router configuration explained with example
PDF
Moving your router inside container
PPT
Networking
Anycast & Multicast
DNS server packet tracer
Introduction To Cisco Switching – Part 1
How to make a simple application on packet tracer
Anycast & Multicast
Anycast & Multicast
Networking basics and basic cisco commands
Networking Basics
Week7 final
Packet tracer
Chapter11ccna
Subnetting
Mail server
designandimplementanetwork
Cisco discovery d homesb module 5 - v.4 in english.
Gmail server.mitu
Nat failover with dual isp on cisco router configuration explained with example
Moving your router inside container
Networking
Ad

Viewers also liked (8)

PPTX
Types of Interest Connections & Meaning of IP Address
PPT
Ip address concepts
PPTX
what is Private and publis ip address
PPT
Types of ip address classes
PPT
IP addressing
PPT
Ip addressing
PPS
Ip address
PPTX
Internet protocol (ip) ppt
Types of Interest Connections & Meaning of IP Address
Ip address concepts
what is Private and publis ip address
Types of ip address classes
IP addressing
Ip addressing
Ip address
Internet protocol (ip) ppt
Ad

Similar to How to link public addresses (real ip) to private ip or lan ip (20)

PPTX
Network address translations
PDF
NAT (network address translation) & PAT (port address translation)
PDF
NAT Scneario
PDF
Network Address Translation (NAT)
PPTX
Nat
PDF
Chapter 5-Network Address Translation.pdf
PPTX
CCNA NAT (Network Address Translation)
PPT
PPTX
Module (10) NAT for IPV4.pptx
DOCX
Packet Tracer: Nat protocol
PPTX
CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 9
PDF
Describe how a NAT (Network Address Translator) works. Be sure to in.pdf
DOCX
How to configure static nat on cisco routers
PPTX
PDF
Zdalna komunikacja sieciowa - zagadnienia sieciowe
PPTX
Ccna rse chp9 nat fo i_pv4
PDF
NAT and firewall presentation - how setup a nice firewall
PPTX
CCNA_RSE_Chp9-01 for Networking Engineer.pptx
Network address translations
NAT (network address translation) & PAT (port address translation)
NAT Scneario
Network Address Translation (NAT)
Nat
Chapter 5-Network Address Translation.pdf
CCNA NAT (Network Address Translation)
Module (10) NAT for IPV4.pptx
Packet Tracer: Nat protocol
CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 9
Describe how a NAT (Network Address Translator) works. Be sure to in.pdf
How to configure static nat on cisco routers
Zdalna komunikacja sieciowa - zagadnienia sieciowe
Ccna rse chp9 nat fo i_pv4
NAT and firewall presentation - how setup a nice firewall
CCNA_RSE_Chp9-01 for Networking Engineer.pptx

More from Tũi Wichets (20)

PDF
RouterOS Commands
PDF
อัตรา Rain Rate ในแถบ East-Asia
PDF
ขั้นตอนการปรับตำแหน่งจาน Mikrotik mANT 30dBi 5Ghz MIMO ให้ feed สัญญาณ Slant ...
PDF
การคอนฟิกส์ OSPF บน Ubiquiti Edge Router
PDF
MTCNA Training outline, Certified Network Associate (MTCNA)
PDF
MTCWE Training outline, Course prerequisites – MTCNA certificate
PDF
MTCRE 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
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
RouterOS Commands
อัตรา Rain Rate ในแถบ East-Asia
ขั้นตอนการปรับตำแหน่งจาน Mikrotik mANT 30dBi 5Ghz MIMO ให้ feed สัญญาณ Slant ...
การคอนฟิกส์ OSPF บน Ubiquiti Edge Router
MTCNA Training outline, Certified Network Associate (MTCNA)
MTCWE Training outline, Course prerequisites – MTCNA certificate
MTCRE 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...
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

Recently uploaded (20)

PPTX
innovation process that make everything different.pptx
PDF
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
PPTX
Funds Management Learning Material for Beg
PDF
An introduction to the IFRS (ISSB) Stndards.pdf
PPTX
Introduction to cybersecurity and digital nettiquette
PPTX
Database Information System - Management Information System
DOC
Rose毕业证学历认证,利物浦约翰摩尔斯大学毕业证国外本科毕业证
PDF
Unit-1 introduction to cyber security discuss about how to secure a system
PPTX
INTERNET------BASICS-------UPDATED PPT PRESENTATION
PPTX
E -tech empowerment technologies PowerPoint
PPT
Design_with_Watersergyerge45hrbgre4top (1).ppt
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PDF
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
PDF
Sims 4 Historia para lo sims 4 para jugar
PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
PDF
Introduction to the IoT system, how the IoT system works
PDF
Tenda Login Guide: Access Your Router in 5 Easy Steps
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PPTX
Slides PPTX World Game (s) Eco Economic Epochs.pptx
PPTX
Introduction to Information and Communication Technology
innovation process that make everything different.pptx
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
Funds Management Learning Material for Beg
An introduction to the IFRS (ISSB) Stndards.pdf
Introduction to cybersecurity and digital nettiquette
Database Information System - Management Information System
Rose毕业证学历认证,利物浦约翰摩尔斯大学毕业证国外本科毕业证
Unit-1 introduction to cyber security discuss about how to secure a system
INTERNET------BASICS-------UPDATED PPT PRESENTATION
E -tech empowerment technologies PowerPoint
Design_with_Watersergyerge45hrbgre4top (1).ppt
Job_Card_System_Styled_lorem_ipsum_.pptx
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
Sims 4 Historia para lo sims 4 para jugar
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
Introduction to the IoT system, how the IoT system works
Tenda Login Guide: Access Your Router in 5 Easy Steps
The New Creative Director: How AI Tools for Social Media Content Creation Are...
Slides PPTX World Game (s) Eco Economic Epochs.pptx
Introduction to Information and Communication Technology

How to link public addresses (real ip) to private ip or lan ip

  • 1. Prepared by wichets@e-spacecorp.net ● E-SPACE TECHNOLOGIES CORPORATION ● Tel.0898821501 pg. 15 of 31 How To Link Public addresses to Local ones Using Network Address Translation (NAT), private IP addresses on LAN are replaced by public IP addresses. This lets computers on LAN share public IP addresses. Let us assume two addresses (10.0.0.216 and 10.0.0.217) are assigned to the router. In this example we will 'full NAT' the internal address 192.168.0.4 to the external 10.0.0.216 one while keeping 10.0.0.217 for the router itself as well as for masquerading the internal network. To setup the router follow the steps listed below. 1. Add 10.0.0.216/24 and 10.0.0.217/24 addresses to the router's Public interface and 192.168.0.254/24 to the router's Local interface: [admin@MikroTik] ip address> add address=10.0.0.216/24 interface=Public [admin@MikroTik] ip address> add address=10.0.0.217/24 interface=Public [admin@MikroTik] ip address> add address=192.168.0.254/24 interface=Local
  • 2. Prepared by wichets@e-spacecorp.net ● E-SPACE TECHNOLOGIES CORPORATION ● Tel.0898821501 pg. 16 of 31 2. Add the default route to the router, but be aware of having two addresses. You should specify the address that the router will be using while talking to the outer networks: [admin@MikroTik] ip route> add gateway=10.0.0.1 prefsrc=10.0.0.217 3. Add DST-NAT rule allowing access to the internal server from external networks: [admin@MikroTik] ip firewall nat> add action=dst-nat chain=dstnat dst-address=10.0.0.216/32 to-addresses=192.168.0.4 4. To add SRC-NAT rules allowing the internal server to talk to the outer networks having its source address translated to 10.0.0.216, while translating other internal hosts' source addresses to 10.0.0.217: [admin@MikroTik] ip firewall nat> add action=src-nat chain=srcnat src-address=192.168.0.4/32 to-addresses=10.0.0.216 [admin@MikroTik] ip firewall nat> add action=src-nat chain=srcnat src-address=192.168.0.0/24 to-addresses=10.0.0.217