I currently have a router (Netgear WNDR3700 with DD-WRT; let's say its hostname is
host1) and all the devices are behind its NAT.
WAN \ \ host1 (dmz) <router>———[server] / | / | [pc] [laptop]
My ISP is setting static IP addresses with dynamic DHCP and it's determining which IP address should I get by the hostname.
The first static IP is assigned to the
host1 hostname and I've set the 'host1' hostname to my router.
I've got a second IP address and my ISP has set it to the
How do I assign the second IP to any of my machines (including the router) without buying a switch and making this kind of network?:
WAN \ <switch> | \ host2 \ [server] \ \ host1 <router> / \ / \ [pc] [laptop]
Is there any way to setup my router OR the server (it has two Ethernet ports) that way with using one WAN ethernet cable from ISP, two hostnames that are sent by DHCP client and, therefore, two IPs?
Since my server has two Ethernet ports, the network below seems to be an adequate choice:
WAN \ \ \ /———[pc] eth0 host1 / \ eth1———————<router> host2 / \ <server> \———[laptop] OR WAN \ \ host1 host2 <router>––––––––––[server] / \ /host1\ +––––/ NAT \–––––+ | / \ | | [pc] [laptop] | | | | (wi-fi) | | | +––––––––––––––––––+ OR WAN \ \ host1 +––host2 nat––+ host2 | (dmz) | <router>–––––––––––[server] | / \ | | +––––/host1 nat\–––+ +–––––––––––––+ | / \ | | [pc] [laptop] | | | | (wi-fi) | | | +––––––––––––––––––+
but how do I do it? Could anybody please give me a right direction to figuring it out myself? Network bridging? DHCP pass-through? What should I be looking for? Is there any better choices? (I'd rather stick with router right after WAN).
I'm quite lost.