How to route an external IP address to a internal one, from two different VLAN’s? [D-link DGS-3324SR]

d-linkexternal-connectionroutingvlan

(Apologies in advance for not being an network savvy guy)

I have four VLAN's configured on a 24 port D-link DGS-3324SR. Each VLAN has 6 ports.
The first VLAN has a connection to a modem providing 16 different "external" IP adresses. I call this the "hot" VLAN.

Now I want to route traffic from External IP's, connected to the VLAN1, into one Internal Server (Let's say on 10.232.0.0/24 range) on VLAN3. The external IP's are all static, no DHCP or anything.

Basically I want the server to act like it's directly connected to the internet, except having an internal IP. I would also be adding more internal servers that accesses the other external IP addresses later.

Examples how you would do this on other platforms or even in theory would be most appreciated, good sirs.

Best Answer

You need to set up Network Address Translation, or NAT. One to one NAT will map an external address to one internal IP.

Depending on your ultimate configuration, you may also need a router or multilayer switch to route between VLANs. Remember that VLANs are layer 2 constructs and thus require a layer three device (whether physically separate or logically there but within the same hardware) in order to pass traffic between them. Here's a Cisco example of options.

This could all be done with a single multilayer switch if it had the right capabilities, but cannot be done just with the DGS you have alone as far as I know.

Related Topic