configure Multiple Public Ip addresses to PPPoE IP

juniortechguy

Reputable
May 20, 2014
2
0
4,510
Dear all

Recently we have opt-out the router from ISP. and we receive 1 PPPoE IP and 5 usable public IP, however they are in different subnet. Is it possible to set devices e.g servers that able to use the public IP (can go to internet and being remoted through outside) through using the DSL (PPPoE) environment?
Greatly appreciate for any suggestions!
 
Solution
You can do it with dd-wrt but it is complex.

You have 2 ways to do this.

First you could assign y.y.y.233 to the routers lan address. You could then set the servers to addresses 234-238. You would set the router to NOT nat these.

The other option is to use say 192.168.1.x for your addresses and nat them 1-1 192.168.1.234 --- y.y.y.234 in this case I suspect you can use all 8 ip addresses. Ie you can use even y.y.y.232 since nat assumes 8 /32 subnets.

What the ISP likely does is put in a static route that says send y.y.y.232/29 is behind x.x.x.98.
Some ISP do some strange stuff to give you multiple ip....att-uverse you need to use their router and you have NAT them all although their newer firmware has a direct routing option.

Generally what they do is route the subnet to the pppoe address. I suspect you actually have 8 usable addresses if you work at it hard enough. So first you need a real router not some gateway thing. Then you set your modem to run in bridge mode. This should allow you router to now run PPPoE on its wan port. You would then either assign the ip block to the lan port and run the servers on real addresses or use some form of NAT. It really depends what you want to accomplish. You need a pretty good understanding of IP blocks and subnet masks and how the gateways work and such to effectively use the ip addresses.

 


Yes, that what exactly I think---those ISP are just trying to make user difficult so as to keep the rights and charge for every change..and yes, they offer 8 public IPs, but 2 are reserved (1st and last one) and 1 is used for gateway...so probably 5 free public left

Actually my setting is similar to your suggestion, use router to now run PPPoE on its wan port. But got a problem: For example, my PPPoE ip is x.x.x.98, and I got public IPs like y.y.y.232/29, so when I use those public IPs e.g y.y.y.234 for my server, and route through NAT, then actually it's the same as setting the server in private network like 192.168.1.x? because I need to assign 3 public IPs to server, NAT respectively, so I may need a higher class router to help us to do so? (mine is linksys wrt54g, update with dd wrt)

Again, Millions thanks you for your help, have a good day ;-)
 
You can do it with dd-wrt but it is complex.

You have 2 ways to do this.

First you could assign y.y.y.233 to the routers lan address. You could then set the servers to addresses 234-238. You would set the router to NOT nat these.

The other option is to use say 192.168.1.x for your addresses and nat them 1-1 192.168.1.234 --- y.y.y.234 in this case I suspect you can use all 8 ip addresses. Ie you can use even y.y.y.232 since nat assumes 8 /32 subnets.

What the ISP likely does is put in a static route that says send y.y.y.232/29 is behind x.x.x.98.
 
Solution
You dont NAT and set NICs to public IP. That kind of defeats the purpose of NAT.

If you can set up multiple VLANs on your router you can use one for public IPs that you want to put on servers and then use one VLAN to then assign your clients private (NAT'd) IP addresses.

Or you could simply use 2 routers with the first one getting public IPs and assigning them to the LAN ports and then the other router's WAN getting plugged into one of those LAN ports and providing private to the LAN ports your clients will be connected to. Devices connected to the first router get public addresses and the devices connected to the 2nd one can get private IP's.

Clearly if your router supports Virtually LANs that would be easier to maintain than creating 2 physical LANs with 2 different routers.