Public IP Subnetting

Hi All,



I have a small ISP setup with few clients. I have some problems in subnatting my ip block which i receive from my up link.
Here is my IP’s, WAN IP xxx.227.132.66/30, Public LAN IP xxx.227.132.1/26. Now what i want to do is to provide some of my clients exactly the same way as my up link provide me, setting up their WAN IP /30 and LAN IP /29 from my LAN IP pool which my uplink provide me and limiting bandwidth as required.

Any help is appreciated.. :slight_smile:

How do you want to connect and provision them? Static, DHCP, PPoE?
Anyway, I don’t see a reason to provide WAN/30 and LAN/29 IP ranges, as your IP pool is small anyway. The /29 range should be sufficient for a client.

I want to provide using static. Regarding /30 and /29, Clients will use the /30 as their WAN IP and the /29 as their Public LAN pool. is there any possibilities?

If you need to conserve IPv4 addresses, then you don’t have to use a publicly routed /30 for the interconnect. You can use a range like 100.64.0.0/10 (CGN IP space) to connect to the subscriber and then route a /32 , /30 or /29 over that link.

https://tools.ietf.org/html/rfc6598

Even using /30 + /29, you can only connect 5 customers, leaving a single /30 unallocated.
(/26 = 64 addresses, /29 = 8 addresses, and /30 = 4 addresses - 5x8 + 5x4 = 60 addresses consumed, with a single /30 remaining)

You could spread this a lot thinner by using /32 assignments per customer, and if the customer needs two addresses, put two /32s on their interface, or three of them, etc.

Each customer needs their own isolated layer2 interface (in other words, no single VLAN that goes to all customers - each customer has their own VLAN or their own physical connection to your router)

On each customer vlan interface / physical interface, you will set arp=proxy-arp
Then for each address you assign to that customer, configure the IP as follows:

Assign the lowest usable address from your /26 as the “default gateway” for all customers - e.g. if your public range is 192.0.2.64/26 - assign 192.0.2.65 as the default GW address for all customers.

Then suppose customer 1 gets 192.0.2.89/32 as their public IP:
/ip address add interface=customer1 address=192.0.2.65/32 network=192.0.2.89

If the customer gets a second IP, say 192.0.2.91 - then add that to the same interface:
/ip address add interface=customer1 address=192.0.2.65/32 network=192.0.2.91

Basically, always add the same address/32 to your router (the default GW address) and use the customer’s IP as the network address.
If you have multiple routers in your network, then you’ll need to make sure that the individual IPs get routed to the correct routers using either static routes (yuck) or OSPF.

The customer will configure their equipment as a normal /26 interface - if customer1 is using a Mikrotik router, they would do this:
/ip address add address=192.0.2.89/26 interface=ether1-gateway
/ip address add address=192.0.2.91/26 interface=ether1-gateway

If you do your network this way, you’ll be able to have up to 61 public IP address customers.


If you’re using PPPoE, then assigning 1 IP per customer is pretty much built-in - just set the remote-IP to be their single address, and add framed-route=x.x.x.x/32 for any additional IP addresses you may give them.

Hi,

I am same person TpxZadeng!!

Thanks all for your reply. Actually now my application for a /20 something like that IP pool which is under process. Using ARP- reply only & PPPOE providing single ip address to clients is fine. No Problem with single router. But Routers setup are like this…


I dont know if this image is view able. Let me assume its view able. Like my image suppose my Core router is having /20 ip pool which can be subnetted quiet a lot . My main question is how can my 3 PPPOE Server have these IP Pool like /22 each on their LAN interface so that they can provide Clients with public ip. I am using 3 separate PPPOE server because performance of router is decreasing with more clients. Using local IP and NAT now i am working but if it is Public IP NAT is no more applicable. Please Guide me experts…

If you’re assigning addresses with PPPoE then you don’t need to assign any IP to any customer-facing interface - each IP will “just get routed” to the correct user, assuming that the master range of the pool is properly routed to the PPPoE server itself.

So if you have pool 192.0.2.0/24 being served by some router, then as long as the network knows that 192.0.2.0/24 is forwarded to the correct router, then that router should have a black-hole route for the /24 itself (/ip route add type=blackhole dst=192.0.2.0/24) and then an IP pool of 192.0.2.2-254, and pppoe clients are configured with remote-address=pool-192.0.2.0 and local-address=192.0.2.1

Done.

HI ZeroByte :smiley: Can i have a private chat with you out of this forum?? Plizz..

They seem to have disabled all of the private messaging and direct contact methods…

What’s your question? I’ll be happy to try to elaborate.

full configuration please