My contribution to IPv6 day – Configuring IPv6 in Windows server 2008 R2 – video tutorial

My contribution to IPv6 day will be this small “lab” test where I will show you some basic IPv6 configuration that you can do with Windows server 2008 R2.
Here are the videos:

IPv6 day – configuring IPv6 in Windows server 2008 R2 part 1 – http://www.screencast.com/t/Ifj2lx4hTG
IPv6 day – configuring IPv6 in Windows server 2008 R2 part 2 – http://www.screencast.com/t/PSf3q5yr4BF

What do we have in our LAB?

1. Windows server 2008 R2 with two network cards:
External – with IPv6, gateway and DNS configured
Internal – with IPv6 address only

External IP has internal class static routed on our Cisco router in front of Windows server external card.

2. Windows 7 machine with single network card that is connected to the same switch as servers’ internal card.

What will we do:

In the fist video:

First we will start with some basic checking of network configuration on server.
Then we will run netsh (I run a command prompt with “Run as administrator”) and go to
netsh / interface / ipv6

with command

show route we can see ipv6 routes currently configured – we would like to enable publishing of route that I have highlighted in the video.

set route PREFIX INTERFACE_NUMBER publish=yes

then we will run an command to enable advertising, to disable address management (so Windows 7 will generate IPv6 without help od DHCPv6) (M flag) and we will disable other stateful configuration (O flag).

set interface INTERFACE_NUMBER adv=enabled managed=disabled other=disabled

Meanwhile we are checking IPv6 connectivity from our Windows 7 machine… Windows 7 is still unable to ping outside the network…

well we need to configure some other stuff on server now… we will enable forwarding on our two interfaces (External and Internal)

set interface INTERFACE_NUMBER forwarding=enabled

still no connectivity from win 7? 🙂

last step that we need to do on our server is to advertise default route to our clients

set interface INTERFACE_NUMBER advertisedefaultroute=enabled

So our Windows 7 sudenly start to recive ICMPv6 echo replyes from some IPv6 machine outside our network WUHU! 🙂

But Windows 7 machine is not able to resolve hostnames to IPV6 addresses – this is becouse we have now global IPv6 address configured and default gateway – so we have connectivity but we are not able to resolve hostnames as we do not have any DNS servers to do that.

On Windows server 2008 R2 I will start the installation of two roles – first DHCP role which I wil configure later and DNS role.

When the roles are installed I will configure so called forwarders on my DNS server so my clients will be able to use my server as a DNS server for their queries.

In the second video:

I will first flush IPv6 configuration on Windows 7 machine by using command
ipconfig /release6
ipconfig /renew6
(is the opposite command to regain IPv6 configuration)

Secondly I will configure DHCPv6 server by starting New Scope wizard under IPv6 settings…

I will configure prefix – this ipv6 prefix of Internal network card

Skip the exceptions and activate the scope…

You will see that Windows 7 still did not ask DHCPv6 servers for address this is becouse managed flag is set to disabled on server so…

in netsh / interface / ipv6 we need to activate managed flag by inserting this command:

set interface INTERFACE_NUMBER managed=enabled

Our Windows 7 machine can now be found in IPv6 leases on our DHCP server – but still it is unable to ping hostnames on the internet… This is becouse our DHCPv6 server is not giving DNS servers as scope options and Other stateful flag is disabled.

So we first need to add DNS Recursive Names Server IPv6 Address in our Scope options and then use netsh command:

set interface INTERFACE_NUMBER other=enabled

Yeeepppeee!!! Our Windows 7 is ready to ping hostnames on the internet – so it is able to surf the IPV6 internet…

When I am finishing this article is 8.6.2011 23:37 – this is my small contribution to IPv6 day so happy IPv6 day to all of you! 🙂

16 thoughts on “My contribution to IPv6 day – Configuring IPv6 in Windows server 2008 R2 – video tutorial

  1. rock

    Hi Dear,

    I am following your steps, and i as soon as i run below command advertisedefaultroute=enabled
    my client start pinging public dns address , but after 5 minutes it stop pinging and my server also stops pinging INTERNET.. , if i disable and then enable external interface so it starts pinging again , but stop after few minutes..

    why this is happening ??

    Like

    Reply
  2. rock

    Hey why are you using two interface at server?? is it possible with one interface on server ??
    Right now i am stuck at advertisedefaultroute=enabled, as soon as i run this internet stops working on server , if i disable / enable the external interface so it start working for few minutes and then stops again 😦

    Like

    Reply
  3. manojlovicl Post author

    Rock I do not think so… You need two interfaces as my Cisco that is in front of this server has a static routing configured and “internal” IPs are routed over “external” one. So I think you need two interfaces.

    Like

    Reply
  4. Bojan Stegovec

    G. Luka, nikjer nisem dobil informacije, ob kateri uri se bo odvijala delavnica IPv6 na TŠC Nova Gorica. V kolikor je mogoče ,lepo prosim za ta podatek.

    Leo pozdrav
    Bojan

    Like

    Reply
  5. Hari

    hi ,

    I have configured everything but I am not getting
    ~Default Gateway=$IPV6~
    while doing ipconfig on the dhcp client DOS mode . Could you pls tell how i can do it . pls help me

    Regards
    Hari Rajan

    Like

    Reply
  6. Tomas

    Hi,
    Better to leave the only stateless DHCP configuration. It requires:
    1) rewrite the DHCPv6 scope settings, “023” “024” in the Site settings;
    2) remove the ipv6 scope;
    3)in netsh / interface / ipv6 we need to deactivate managed flag by inserting this command:
    set interface INTERFACE_NUMBER managed=disabled
    4) In DNS server edit the Root Hints:
    a) press button „copy from server“, then write a.root-servers.net. and then remove all ipv4 adresses from server list

    Like

    Reply
  7. Junaid

    Hi Luka,

    Right this is my situation:

    This is in a Data Centre.

    I have 4 VMs on VMware Vsphere 5.0

    2 of them are configured with IPv4
    2 of them are configured with IPv6 (still in progress)

    Now problem is that I tried putting windows 7 on the external IP but cannot get any web interface, although i can ping websites such as ipv6.google.com but cannot ping hostnames other than that.

    i put windows 7 on a network to allow it to obtain the IP from the router itself, and it did, it takes the mac address along with the gateway i was given on a prefix of /64

    I can ping from outside but am not able to access sites nor am I able to ping hostnames.

    Any idea what maybe wrong. I still have to try your method above.

    Like

    Reply
  8. pat8624

    Can You in one article explain the concept of routing that You implement in this article ? I mean … explain ‘advertising’ ‘publishing’ and other concepts … ?? Or perhaps it’s done somewhere on the web ? i can find a CLEAR explanation on all that … (sory for my bad english). Thanks

    Like

    Reply
  9. newbiesipv6

    i am using win2008server R2, setup dhcp6 server, can release ipv6 to client, and also dns6 to client as well
    i m using google dns6 2001:4860:4860::8888 and ::8844
    however if i using auto for client get ip itself from server, i not able to browse ipv6 websites

    client not able to get default gateway from win2008server.

    if i manual add route ::/0 (ipv6 gateway address) at client, then it work, can surf Internet ipv6 website

    pls help, anyone know what is the problem, why win2008 server not able to release the default gateway to client?

    Like

    Reply
  10. luka roguljic

    Do you know how to configure windows server 2008 r2 so that i can do multicast using only IPv6 addresses ?

    When I disable IPv4 ond DHCP and try to boot over network i get this message : no dhcp or proxy dhcp offers were received.

    If I enable IPv4 i can boot with no problem, and after i install virtual windows 7 it gets IPv6 and IPv4 IP address.

    can you ore someone else help me ?

    Like

    Reply
  11. Denny

    Hi ,

    This is Denny, the creator of this free automated employee
    provisioning/termination app– Z-hire. I wrote this app for the TechNet community a year ago.

    Since you run a very informative blog, I would like your help
    spread the word. Since my application is free, i need supporters from the
    community. It would means a lot if you can help.

    Here is a link to my app
    http://www.zohno.com

    Thanks
    Denny

    Like

    Reply

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.