It's also important to note that you don't have a 4 port router, you have a NAT router with WAN and LAN sides, and a 5 port switch attached to the LAN side (one of the 'ports' is used internally to connect to the router chip so only 4 are available). The routing tables have no knowledge of this LAN switching as routers operate on the IP layer (layer 3) while switches operate on the MAC layer (layer 2) - the router just sees traffic arriving on the WAN and LAN sides regardless of what physical switch port it arrives on.
Also, just in case you come across this point down the line (but don't worry about it too much now), bear in mind that you have been assigned a few IPs from a much larger subnet, and not a whole subnet to yourself - this is sometimes an important consideration when it comes down to routing. This isn't a bad thing as a 4 address (/30) subnet is quite wasteful in terms of addresses - each of the interfaces (your router plus the ISP router) takes an address, which leaves one for each of the network and broadcast addresses. I.e. even though you'd get 4 dedicated addresses, you can only actually 'use' one.
If you have a spare computer with two NICs, you could play with something like Smallwall or pfSense as they support what you're after. Using 1:1 NAT, the PCs themselves don't actually get assigned the public-facing IP address but rather you effectively set up a 'DMZ' for each device you choose. Of course, be sure to set static internal IPs and ensure firewalls are enabled. Also, because you don't have an entire routed subnet (at least that's usually the case), you will probably need to use proxy ARP. This link explains it: http://doc.m0n0.ch/handbook/faq-ipalias.html
Edited by deleted (Sun 17-Apr-16 14:48:25)



Pages in this thread:
Print Thread
