We have only 5 usable static IPv4 IPs and many IPv6 static IPs. We want Multiple nodes/pc to be connected with Internet using nating/router because we have limited number of IPs. We would still want few nodes with static public IPv4 IPs. All nodes should have public IPv6 IPs.

Gateway <==> Router <==> Switch <==> Multiple Nodes  

Router is directly connected with Gateway.
IPv4 with nating works perfectly in above case.

Gateway <==> Switch <==> Multiple Nodes  

No router involved, switch directly connected with gateway.
IPv6 works perfectly
IPv4 also works if each node is assigned one static IP address.

Gateway <==> Switch <==> Multiple Nodes  

Gateway is directly connected with switch. Router (Both WAN & LAN) are connected with switch. In this case Internet works for few seconds and then it get's stuck.

I thought it would allow me to nat using router and simultaneously allow me to bind nodes with IPv6 IPs and few other nodes with IPv4 public IPs.

when I try to ping a host I get "Destination Host Unreachable"
How can I meet my requirements?

====UPDATE 1==== For testing we are assigning static Public IPs to all Linux nodes. Eventually we plan to use Nating.

  • It is impossible to tell you why things 'get stuck' without more information like which equipment is used, the configuration etc. – Sander Steffann Sep 15 '14 at 7:46
  • By getting stuck I meant that gateway becomes unreachable. Simple ping gets reply as "Destination Host Unreachable". – Jai Sep 15 '14 at 9:55
  • This needs more details, how are you assigning IPs, client OS etc – Jim B Sep 17 '14 at 14:17

What you are depicting is possible. In case DHCP is being used on both sides of the router, you need a switch with filtering capabilities in order to make it work. Without filtering you would have no control over which DHCP server serves which DHCP client. Using ebtables in Linux is one way to apply this filtering.

But bridging is not the preferred configuration. The only reason to be bridging IPv6 like shown in your schematics is in order to work around an ISP who hasn't deployed IPv6 the way it is supposed to be done.

You should be routing both IPv4 and IPv6. The major difference is that the router should only be applying NAT to the IPv4 traffic and not the IPv6 traffic.

The ISP is supposed to assign you a /64 link prefix for the outside of your router and a /48 routed prefix for the inside of your router. From that routed prefix you only need to use one /64 in your current configuration. The rest of that /48 is only needed if you were to deploy multiple LANs, a VPN, or some other more advanced use of network addressing.

Should the ISP decide to give you a routed /56 or /60 instead of a full /48, then that is no problem in your particular use case.

  • From your answer I don't get how why internet packets get stuck in this case. Gateway becomes unreachable from Router but still reachable from nodes. Sometimes gateway is even unreachable from Nodes. – Jai Sep 16 '14 at 2:05
  • @Jai How are the IP addresses configured on the nodes? – kasperd Sep 16 '14 at 6:04
  • In this approach at present IPv6 does not exist. On both Router and on Node I configure Static IPv4 Public Address. – Jai Sep 16 '14 at 6:41
  • @Jai Isn't that the configuration which you said was working when you asked the question? – kasperd Sep 16 '14 at 7:54
  • I mentioned 3 approaches in my questions. First two works but third don't. – Jai Sep 16 '14 at 8:17

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.