I've configured a Juniper SSG20 to have some clients natted to the internet with the main ip address (X.X.27.90/30) of my IPoA ADSL connection but i have also some servers i wish to connect with a public ip address (coming from another subnet (X.X.234.88~95/29) but from the same adsl) directly to the internet.

I wish, for example, to add a server with ip X.X.234.90/29 to the ethernet0/0 or on the clients side (bgroup0).

My situation is:

interface adsl1/0 has now ip X.X.27.90 with default gateway X.X.27.89

interface bgroup0 (ethernet0/2+ethernet0/3+ethernet0/4) has ip, dhcp server and nat


Not entirely clear what you are asking, but I'll take a stab. I think you are saying you were assigned an additional public IP block from your ISP and you want to direct traffic sent to the public IPs to servers located in your LAN.

If that's the case, you need to edit the ADSL interface, and add MIP entries that map the public IP to the related LAN IP for that server. (I don't think VIP entries will work since it's a separate subnet block.)

Be sure to also add appropriate routing/security policies to allow the traffic.

  • It's exactly what I mean but... I don't want to map a public ip to a lan ip (it works right now using MIP) i just want to give a public ip on the server ethernet interface. For example: PROVIDER GATEWAY SSG20 Primary IP: SSG20 ADDITIONAL IP (MY ADDITIONAL IP BLOCK IS SERVER IP: – Francesco Apr 6 '15 at 19:42
  • Do you have spare interfaces on the SSG20? If yes, you could assign the spare interface an IP from your second block (i.e.,, then hook that interface to a switch (or direct to your server), then configure the server to have Remove the MIP config and adjust your routing rules so that all traffic for the subnet goes to that interface. Keep in mind, the policy rules for traffic there might have to be Untrust->Untrust rules depending on what zone you put the interface in... – jlehtinen Apr 6 '15 at 20:08
  • It works! Thank you! – Francesco May 6 '15 at 10:37
  • Note, that Juniper latest documentation favors policy based NAT over MIP as it gives an extra degree of flexibility. – dtoubelis Sep 15 '15 at 13:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.