Community discussions

MikroTik App
 
muzi
just joined
Topic Author
Posts: 7
Joined: Sat Jan 26, 2013 9:46 pm

Public IP forwarding to client

Mon Feb 04, 2013 7:53 pm

I had a leased line connection with WAN IP - xxx.73.41.138/30 and a LAN IP - xxx.73.40.144/28.

My first question does this means that i have a 14 usable public IP ??

If my first question is yes then my second question is

I have started a small ISP business and some of my clients require public IP. I had use PPPOE server for normal broadband and i have no problem with this. But with this request for PUBLIC IP from my clients how will i deal with this??

Please expert guide me from the very begining, i am totally lost...
 
User avatar
jgellis
Member Candidate
Member Candidate
Posts: 139
Joined: Wed May 30, 2007 10:57 am
Location: USA

Re: Public IP forwarding to client

Fri Feb 22, 2013 3:58 am

Having blocked out the first octet, one cannot answer if these are public or private addresses.

By your description, the WAN is /30, which is only two usable addresses (one for the gateway and one for your router).
By definition, the LAN should be a local only network and since it is a /28 would be 14 usable addresses (one for your router and 13 other hosts).

If, you mean to say that your provider is routing the /28 block of addresses to the xxx.73.41.138/30 address on the WAN interface of your router, then yes, you can assign 13 of those 14 addresses from the xxx.73.40.144/28 block out to other devices on the LAN.

If the first (hidden) octet in the LAN block you listed below is 10 then I'm afraid those are non-routable address and are for private addressing only. (I left out the other private addressing blocks since the networks 172.16.0.0/12 and 192.168.0.0/16 can not contain a second octet of 73, which you listed).
 
muzi
just joined
Topic Author
Posts: 7
Joined: Sat Jan 26, 2013 9:46 pm

Re: Public IP forwarding to client

Fri Mar 22, 2013 12:27 am

Sorry for my ip address!! Let me say like this. My service provider gave me wan ip 182.73.41.138/30 gateway 137 and lan ip 182.73.40.144/28. According to the lan ip 14 use able ip's are available but only 182.73.40.144 is use able. Also if the wan ip 182.73.41.138 is assigned to some router/pc's the lan ip will just drop out. What can be the problem with all these?? Please help me..
 
User avatar
jgellis
Member Candidate
Member Candidate
Posts: 139
Joined: Wed May 30, 2007 10:57 am
Location: USA

Re: Public IP forwarding to client

Thu Mar 28, 2013 6:00 pm

It still sounds like the 182.73.40.144/28 is being routed to your device at 182.73.41.138. In it's simplest configuration, you can have 13 devices beyond your router that get a public IP.

Your router should have a WAN of 182.73.41.138/30 and a LAN of 182.73.40.145/28 (do not use .144, that is the network address, not a host address) with a gateway of 182.73.41.137.
Your customers should get IPs in the range of 182.73.40.146-158/28 with a gateway of 182.73.40.145.

You certainly don't want to be assigning your router WAN address (.138) to anything other than the router!
 
Sob
Forum Guru
Forum Guru
Posts: 9121
Joined: Mon Apr 20, 2009 9:11 pm

Re: Public IP forwarding to client

Thu Mar 28, 2013 8:08 pm

There are up to 17 usable public IPs.

First is semi-usable and it's 182.73.41.138. It must stay on router and can't be given to any other device, but it's possible to forward ports to some internal machine, so it can be used for e.g. web server or other servers.

The whole /28 can either be put on LAN interface for 13 usable addresses, or it can be divided into 16 single /32 addresses and routed individually anywhere inside own network as needed (over private addresses). This way all 16 can be used.
 
muzi
just joined
Topic Author
Posts: 7
Joined: Sat Jan 26, 2013 9:46 pm

Re: Public IP forwarding to client

Fri Mar 29, 2013 10:14 am

Ok so i had done like this, I am using RB 2011. I assign the wan ip to Ethernet 1 and the lan ip to Ethernet 2. I put a firewall rule for NAT so that all request from the Public lan ip are forwarded through the wan ip. But i guess this is not the right way as the lan ip are not working! Please...
 
User avatar
jgellis
Member Candidate
Member Candidate
Posts: 139
Joined: Wed May 30, 2007 10:57 am
Location: USA

Re: Public IP forwarding to client

Tue Apr 02, 2013 7:19 pm

You are part way there. How do you want to configure your customers, static, DHCP, PPPoE ? It sounds as if you have correctly configured the router with WAN IP and a public IP on LAN, you may have even setup NAT masquerade on the router (though it was not required). The final steps are to configure the customers with the remaining IP addresses (and make sure they are NOT NATed when they go through the router). If you are providing the customer router, you will want to masquerade at that point so that they can share their one public ip with any of their private devices behind your router.

Who is online

Users browsing this forum: dandu, qatar2022 and 134 guests