Community discussions

MikroTik App
 
tombee79
Member Candidate
Member Candidate
Topic Author
Posts: 246
Joined: Sun May 09, 2010 2:28 am

Assigning Static public /29 sub-net to LAN internal network IPs

Mon Nov 30, 2015 7:58 am

I have DSL connection over PPPoE with public sub-net mast ip range 69.165.169.163/29. ( The PPPoE WAN public IP address is: 69.165.169.165/29 )


How do you assign the public static ips to private subnet on eth2: 192.168.1.0/24 ? ( to any four addresses)?

Remember the sub-net 69.165.169.165/29 is routed thru static pppoe ip: 69.165.169.165/32 ip


Thank you.
 
User avatar
pukkita
Trainer
Trainer
Posts: 3051
Joined: Wed Dec 04, 2013 11:09 am
Location: Spain

Re: Assigning Static public /29 sub-net to LAN internal network IPs

Mon Nov 30, 2015 12:04 pm

You can assign them with whichever method suits you best; the quid being setting routing properly:

- The Internet connected router has to "know" how to reach those IPs
- The internet connected router should not NAT these IPs to the outside if direct communication is needed
- The hosts with these IPs should have the Internet router as default gateway
 
tombee79
Member Candidate
Member Candidate
Topic Author
Posts: 246
Joined: Sun May 09, 2010 2:28 am

Re: Assigning Static public /29 sub-net to LAN internal network IPs

Fri Dec 04, 2015 5:07 am

can u give me examples with my ips?


thx
 
User avatar
pukkita
Trainer
Trainer
Posts: 3051
Joined: Wed Dec 04, 2013 11:09 am
Location: Spain

Re: Assigning Static public /29 sub-net to LAN internal network IPs

Fri Dec 04, 2015 11:43 am

I assume you already have 192.168.1.0/24 addresses on servers you want to assign public IPs:

Image
 
tombee79
Member Candidate
Member Candidate
Topic Author
Posts: 246
Joined: Sun May 09, 2010 2:28 am

Re: Assigning Static public /29 sub-net to LAN internal network IPs

Sun Dec 06, 2015 8:52 am

thank you a lot. beautiful diagram. I really appreciate for u help.


How would u implement the diagram within mikrotik?

in firewall or in routing?


Ps. i think routing,
i tried to test it to my pc computer win7 i added additional ip address but i still get the NATed gateway ip pppoe: 69.165.169.165. When i exclude my ip from mascaraed firewall rule i cannot connect to internet.



PS. Another thing i forgot to mention. The mikrotik internet/WAN gate configuration is as follow.
ip:69.165.169.165 gateway:206.248.155.244 interface:pppoe-out1


You have on your diagram 69.165.169.165/32 is this correct?


Image



Image





i just check online trace-route for one of the static public ips for example 69.165.169.161 and it didtn show that the trace route was routed thu 69.165.169.165 gateway. is this correct normal or my ISP didnt assined/routed to me thru my static ip gateway 69.165.169.165.





Traceroute Trace the path from this server to another
from centralops.net (Dallas, Texas, USA)
to
69.165.169.161

ip version auto require ipv6 require ipv4
don't resolve IP addresses Submit
user: anonymous [69.165.169.165]
balance: 47 units
log in | account info
CentralOps.net
Tracing route to 69.165.169.161 [69.165.169.161]...

hop rtt rtt rtt ip address fully qualified domain name
1 0 0 0 208.101.16.73 49.10.65d0.ip4.static.sl-reverse.com
2 0 0 0 66.228.118.157 ae11.dar02.sr01.dal01.networklayer.com
3 0 0 0 173.192.18.252 ae14.bbr01.eq01.dal03.networklayer.com
4 31 31 31 173.192.18.141 ae0.bbr01.cs01.lax01.networklayer.com
5 * * *
6 73 73 72 69.196.136.35 2110.tengigabitethernet-2-0-0.lns03.tor.packetflow.ca
7 88 88 87 69.165.169.161 69-165-169-161.dsl.teksavvy.com
Trace complete

-- end --




Thanks again
 
User avatar
pukkita
Trainer
Trainer
Posts: 3051
Joined: Wed Dec 04, 2013 11:09 am
Location: Spain

Re: Assigning Static public /29 sub-net to LAN internal network IPs

Tue Dec 08, 2015 3:11 pm

Please copy and paste the following:

an export:
/export compact hide-sensitive=yes
And also:
/ip export
An ipconfig and netstat -rn from one of the servers.
 
tombee79
Member Candidate
Member Candidate
Topic Author
Posts: 246
Joined: Sun May 09, 2010 2:28 am

Re: Assigning Static public /29 sub-net to LAN internal network IPs

Wed Dec 09, 2015 5:29 am

Thanks for help
Last edited by tombee79 on Sun Feb 21, 2016 3:31 am, edited 1 time in total.
 
tombee79
Member Candidate
Member Candidate
Topic Author
Posts: 246
Joined: Sun May 09, 2010 2:28 am

Re: Assigning Static public /29 sub-net to LAN internal network IPs

Sun Dec 13, 2015 6:40 pm

Are you there?

Who is online

Users browsing this forum: Experimentator, k6ccc, Laxity, nescafe2002, unhuzpt and 62 guests