• November 01, 2024, 03:31:32 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Routing IPv4 with 2 DIR626L+1 Routing Windows OS  (Read 9713 times)

network1027

  • Level 2 Member
  • **
  • Posts: 27
Routing IPv4 with 2 DIR626L+1 Routing Windows OS
« on: September 04, 2013, 08:56:56 AM »

Hi  :D

while I have no problem routing IPv6 or IPv4 with chained-up routers :

CPE----------Router1--------------Router2-----------Router3-----------PC1

just adding static IPv6 routes to the subnets,

the IPv4 connection fails if I insert a routing Windows OS :

CPE--------Router1---------------OS Router-----------Router3-----------PC1

the IPv6 connection works OK.

I think it may be a problem related to NAT. Can somebody explain this ? ( I'm too used to IPv6 and have my NAT skills fading away ).

I noticed on the DIR-626L, IPv4 routing only allows 'Wan' as an interface ( where IPv6 routing allows either Wan or Lan ). Is this related to this NAT problem ?

I guess you need a Windows Server to implement NAT on a Windows OS.
Still I have a hrd time understanding why my setup fails, just using ' Netsh int ipv6 set int x forward=enable ' on both OS Router interfaces + adding routes everywhere ?

Another question, can IPv4 NAT be disabled on a DIR626L ?

Thanks for any help  :D
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: Routing IPv4 with 2 DIR626L+1 Routing Windows OS
« Reply #1 on: September 04, 2013, 09:04:13 AM »

Link>Double NAT and How NAT Works.

IPv4 is the base foundation for most networking so I presume that IPv4 can't be disabled on these routers. Even when I did some Ipv6 years ago with Server 2003, IPv4 was still needed. Not sure when IPv4 can work will be designed to be disabled if IPv6 is all inclusive and becomes the primary foundation.  :-\

Just curious why are you putting in a in between routes? Is this a Server class OS?

Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

PacketTracer

  • Level 4 Member
  • ****
  • Posts: 441
Re: Routing IPv4 with 2 DIR626L+1 Routing Windows OS
« Reply #2 on: September 04, 2013, 04:11:07 PM »

Hi,

activation of IPv4 routing depends on Windows OS type: With a server OS you have to activate "Routing and RAS" service (which also allows to define NAT, if you want), while on Client OS (as far as I know) you have to do a registry hack to activate IPv4 routing:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters

Set the DWORD entry "IPEnableRouter" to 1 (default is 0).

After a reboot "ipconfig /all" should show IP routing being enabled.

<EDIT>
But if you chose to configure OS Router for only being an IPv4 router without NAT and given that Router 1 and Router 3 do IPv4-NAT you would have to configure a static IPv4 route on Router 1 for the network between OS Router and Router 3. As this is not possible because you cannot select the LAN interface for the route (a "bug" I also know from my DIR-825) you have to configure OS Router for also doing IPv4 NAT because in this case (triple NAT) you don't have to configure IPv4 routes at all (except the next NAT (ISP for the last NAT) in outgoing direction beeing the default gateway for the previous NAT/PC1). So OS Router has to be a Windows Server or you have to use a third party NAT solution if OS Router is a Windows Client OS only.
</EDIT>

« Last Edit: September 05, 2013, 01:43:56 PM by PacketTracer »
Logged

network1027

  • Level 2 Member
  • **
  • Posts: 27
Re: Routing IPv4 with 2 DIR626L+1 Routing Windows OS
« Reply #3 on: September 07, 2013, 01:29:11 AM »

Link>Double NAT and How NAT Works.

IPv4 is the base foundation for most networking so I presume that IPv4 can't be disabled on these routers. Even when I did some Ipv6 years ago with Server 2003, IPv4 was still needed. Not sure when IPv4 can work will be designed to be disabled if IPv6 is all inclusive and becomes the primary foundation.  :-\

Just curious why are you putting in a in between routes? Is this a Server class OS?



hi  :)

Thanks for the link about double NAT

Oh, my question was not about disabling IPv4 but about disabling NAT on the DIR626L, just out of curiosity ...

The Routing OS is a Windows Server 2008 R2. It's here because about what we are discussing with packettracer, understanding the DIR626L IPv6 FIrewall. But this task doesn't require a server OS, any windows would do this job fine. I only used it because it has several networks cards in.

The real reason I'm using WS2008R2 is I'm practicing my skills about IPv6/Windows Server and Windows Server network related functions : Firewall, Routing, DHCP, DNS, ...
Logged

network1027

  • Level 2 Member
  • **
  • Posts: 27
Re: Routing IPv4 with 2 DIR626L+1 Routing Windows OS
« Reply #4 on: September 07, 2013, 01:46:38 AM »

Hi,

activation of IPv4 routing depends on Windows OS type: With a server OS you have to activate "Routing and RAS" service (which also allows to define NAT, if you want), while on Client OS (as far as I know) you have to do a registry hack to activate IPv4 routing:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters

Set the DWORD entry "IPEnableRouter" to 1 (default is 0).

After a reboot "ipconfig /all" should show IP routing being enabled.

<EDIT>
But if you chose to configure OS Router for only being an IPv4 router without NAT and given that Router 1 and Router 3 do IPv4-NAT you would have to configure a static IPv4 route on Router 1 for the network between OS Router and Router 3. As this is not possible because you cannot select the LAN interface for the route (a "bug" I also know from my DIR-825) you have to configure OS Router for also doing IPv4 NAT because in this case (triple NAT) you don't have to configure IPv4 routes at all (except the next NAT (ISP for the last NAT) in outgoing direction beeing the default gateway for the previous NAT/PC1). So OS Router has to be a Windows Server or you have to use a third party NAT solution if OS Router is a Windows Client OS only.
</EDIT>



Hi Packettracer  :)

Oh, so if I get you right :

CPE------------Router1---------------OS Router-----------Router3-----------PC1
      192.168.1.0             192.168.2.0                192.168.3.0           192.168.4.0

IPv4 could function, if I could set Router 1 to have a route to subnet 192.168.3.0 using its LAN interface.
The thing would work . ( But unfortunately, no IPv4 Lan Routing on 626L/825L ).
Did I get it right ?

That was what I was kinda suspecting, as I couldn't figure out why my Routing OS would break the thing.

The other solution being to use RRAS with NAT, this I know.


Just two questions :

Quote
" HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters

Set the DWORD entry "IPEnableRouter" to 1 (default is 0).

After a reboot "ipconfig /all" should show IP routing being enabled.

Does this do NAT too ?  :o Because if it doesn't, I've got an easier solution :
netsh int ipv4 set int [Idx1] forwarding=enable
netsh int ipv4 set int [Idx2] forwarding=enable

I re-tested it on a Windows 7 Home Premium, and it does the forwarding job OK. ( But no NAT )

Question 2 : Internet Connection Sharing on a Windows Client OS is doing what ? Bridging or NAT ?

Thanks for having helped me clear this thing out  :)

« Last Edit: September 07, 2013, 04:47:46 AM by network1027 »
Logged

PacketTracer

  • Level 4 Member
  • ****
  • Posts: 441
Re: Routing IPv4 with 2 DIR626L+1 Routing Windows OS
« Reply #5 on: September 07, 2013, 06:02:34 AM »

Hello network1027,

Quote
Oh, so if I get you right :

CPE------------Router1---------------OS Router-----------Router3-----------PC1
      192.168.1.0             192.168.2.0                192.168.3.0           192.168.4.0

IPv4 could function, if I could set Router 1 to have a route to subnet 192.168.3.0 using its LAN interface.
The thing would work . ( But unfortunately, no IPv4 Lan Routing on 626L/825L ).
Did I get it right ?

That's what I meant, given OS router works as a pure IPv4 router w/o NAT sitting between the two NAT routers Router1 and Router3.

Quote
Does this do NAT too ?

No.

Quote
Because if it doesn't, I've got an easier solution :
netsh int ipv4 set int [Idx1] forwarding=enable
netsh int ipv4 set int [Idx2] forwarding=enable

Yes, triggered by your original question I have discovered this either. If this produces the desired result, of course this is the better solution. I'm surprised that netsh obviously offers almost the same set of interface commands for IPv4 as for IPv6. So far I have only worked with "netsh int ipv6" because most IPv4 configurations in Windows can be done with a GUI (in contrast to IPv6).

Quote
Question 2 : Internet Connection Sharing on a Windows Client OS is doing what ? Bridging or NAT ?

Not sure because I never tested ICS. But according to this the ICS server should operate as a NAT router (somewhere else I read that for ICS to work you have to use 192.168.0.0/24 inside your LAN, where ICS server uses 192.168.0.1 and runs a DHCP server to provide ICS clients with addresses within 192.168.0.2-254).


Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: Routing IPv4 with 2 DIR626L+1 Routing Windows OS
« Reply #6 on: September 07, 2013, 09:51:17 AM »

I don't think there is any way of disabling NAT on these routers unless your turn them in to a wired AP and only connect the router via LAN to LAN.

Yes, I'm familiar with 2008 Server. It was what I used when I went to school of IPv6 years back. Good OS.

I actually used 2003 as a server at a place I worked for IPv6 support. I had a good time working with it.

Keep us posted and thank you for sharing the experiences and information.

hi  :)

Thanks for the link about double NAT

Oh, my question was not about disabling IPv4 but about disabling NAT on the DIR626L, just out of curiosity ...

The Routing OS is a Windows Server 2008 R2. It's here because about what we are discussing with packettracer, understanding the DIR626L IPv6 FIrewall. But this task doesn't require a server OS, any windows would do this job fine. I only used it because it has several networks cards in.

The real reason I'm using WS2008R2 is I'm practicing my skills about IPv6/Windows Server and Windows Server network related functions : Firewall, Routing, DHCP, DNS, ...
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.