Create Loopback and assign local addresses on Windows 8





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I'm usually on OSX where I often add additional IP addresses to lo0 interface to simplify ssh tunnelling to various services on different machines to different local addresses:



# Tunnel mysql connections:
sudo ifconfig lo0 alias 172.16.4.142
ssh -L172.16.4.142:3306:localhost:3306 my_mysql_server_dev
sudo ifconfig lo0 alias 172.16.4.121
ssh -L172.16.4.121:3306:localhost:3306 my_mysql_server_test
# I can now locally connect to the remote mysql servers using
mysql -H 172.16.4.142
mysql -H 172.16.4.121


On Windows 8 how do I achieve this?
I understand I need to install the loopback adapter driver like so:
Got Windows Driver Kit 8.1 Update 1 and ran the following commands:



C:Program Files (x86)Windows Kits8.1Toolsx64devcon.exe" -r install %WINDIR%InfNetloop.inf *MSLOOP
powershell
$nic = Get-WmiObject Win32_NetworkAdapter -Filter "Name='Microsoft KM-TEST Loopback Adapter'"


What now? Can anyone help me with the next steps? What I want to do is configure the interface with a bunch of local IPv4 addresses
The machine I'm running is a virtualbox image.



Once I have the local interface installed and a bunch of ip addresses assigned I'll configure the tunnelling in putty.



I tried following this guide, but it seems outdated/not right for Windows 8.










share|improve this question













migrated from serverfault.com May 5 '14 at 23:58


This question came from our site for system and network administrators.



















  • You could probably solve this with netsh, although Microsoft doesn’t endorse it anymore.

    – Daniel B
    May 6 '14 at 8:24


















0















I'm usually on OSX where I often add additional IP addresses to lo0 interface to simplify ssh tunnelling to various services on different machines to different local addresses:



# Tunnel mysql connections:
sudo ifconfig lo0 alias 172.16.4.142
ssh -L172.16.4.142:3306:localhost:3306 my_mysql_server_dev
sudo ifconfig lo0 alias 172.16.4.121
ssh -L172.16.4.121:3306:localhost:3306 my_mysql_server_test
# I can now locally connect to the remote mysql servers using
mysql -H 172.16.4.142
mysql -H 172.16.4.121


On Windows 8 how do I achieve this?
I understand I need to install the loopback adapter driver like so:
Got Windows Driver Kit 8.1 Update 1 and ran the following commands:



C:Program Files (x86)Windows Kits8.1Toolsx64devcon.exe" -r install %WINDIR%InfNetloop.inf *MSLOOP
powershell
$nic = Get-WmiObject Win32_NetworkAdapter -Filter "Name='Microsoft KM-TEST Loopback Adapter'"


What now? Can anyone help me with the next steps? What I want to do is configure the interface with a bunch of local IPv4 addresses
The machine I'm running is a virtualbox image.



Once I have the local interface installed and a bunch of ip addresses assigned I'll configure the tunnelling in putty.



I tried following this guide, but it seems outdated/not right for Windows 8.










share|improve this question













migrated from serverfault.com May 5 '14 at 23:58


This question came from our site for system and network administrators.



















  • You could probably solve this with netsh, although Microsoft doesn’t endorse it anymore.

    – Daniel B
    May 6 '14 at 8:24














0












0








0








I'm usually on OSX where I often add additional IP addresses to lo0 interface to simplify ssh tunnelling to various services on different machines to different local addresses:



# Tunnel mysql connections:
sudo ifconfig lo0 alias 172.16.4.142
ssh -L172.16.4.142:3306:localhost:3306 my_mysql_server_dev
sudo ifconfig lo0 alias 172.16.4.121
ssh -L172.16.4.121:3306:localhost:3306 my_mysql_server_test
# I can now locally connect to the remote mysql servers using
mysql -H 172.16.4.142
mysql -H 172.16.4.121


On Windows 8 how do I achieve this?
I understand I need to install the loopback adapter driver like so:
Got Windows Driver Kit 8.1 Update 1 and ran the following commands:



C:Program Files (x86)Windows Kits8.1Toolsx64devcon.exe" -r install %WINDIR%InfNetloop.inf *MSLOOP
powershell
$nic = Get-WmiObject Win32_NetworkAdapter -Filter "Name='Microsoft KM-TEST Loopback Adapter'"


What now? Can anyone help me with the next steps? What I want to do is configure the interface with a bunch of local IPv4 addresses
The machine I'm running is a virtualbox image.



Once I have the local interface installed and a bunch of ip addresses assigned I'll configure the tunnelling in putty.



I tried following this guide, but it seems outdated/not right for Windows 8.










share|improve this question














I'm usually on OSX where I often add additional IP addresses to lo0 interface to simplify ssh tunnelling to various services on different machines to different local addresses:



# Tunnel mysql connections:
sudo ifconfig lo0 alias 172.16.4.142
ssh -L172.16.4.142:3306:localhost:3306 my_mysql_server_dev
sudo ifconfig lo0 alias 172.16.4.121
ssh -L172.16.4.121:3306:localhost:3306 my_mysql_server_test
# I can now locally connect to the remote mysql servers using
mysql -H 172.16.4.142
mysql -H 172.16.4.121


On Windows 8 how do I achieve this?
I understand I need to install the loopback adapter driver like so:
Got Windows Driver Kit 8.1 Update 1 and ran the following commands:



C:Program Files (x86)Windows Kits8.1Toolsx64devcon.exe" -r install %WINDIR%InfNetloop.inf *MSLOOP
powershell
$nic = Get-WmiObject Win32_NetworkAdapter -Filter "Name='Microsoft KM-TEST Loopback Adapter'"


What now? Can anyone help me with the next steps? What I want to do is configure the interface with a bunch of local IPv4 addresses
The machine I'm running is a virtualbox image.



Once I have the local interface installed and a bunch of ip addresses assigned I'll configure the tunnelling in putty.



I tried following this guide, but it seems outdated/not right for Windows 8.







networking powershell windows-8 loopback






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 5 '14 at 13:12







George











migrated from serverfault.com May 5 '14 at 23:58


This question came from our site for system and network administrators.









migrated from serverfault.com May 5 '14 at 23:58


This question came from our site for system and network administrators.















  • You could probably solve this with netsh, although Microsoft doesn’t endorse it anymore.

    – Daniel B
    May 6 '14 at 8:24



















  • You could probably solve this with netsh, although Microsoft doesn’t endorse it anymore.

    – Daniel B
    May 6 '14 at 8:24

















You could probably solve this with netsh, although Microsoft doesn’t endorse it anymore.

– Daniel B
May 6 '14 at 8:24





You could probably solve this with netsh, although Microsoft doesn’t endorse it anymore.

– Daniel B
May 6 '14 at 8:24










2 Answers
2






active

oldest

votes


















0














I don't know if my way will work but you can just try to use the 127.0.0.0/24 network for this. Windows will resolve all addresses within the 127.0.0.0/24 network to the local loopback device.



I think that this is easier then messing around with custom drivers.






share|improve this answer































    0














    Windows 8 supports the New-NetIPAddress cmdlet.



    New-NetIPAddress –IPAddress 172.16.4.142 -PrefixLength 24 -DefaultGateway 172.16.4.1
    New-NetIPAddress –IPAddress 172.16.4.121 -PrefixLength 24 -DefaultGateway 172.16.4.1





    share|improve this answer
























    • To which adapter do those commands assign to?

      – CMCDragonkai
      Jun 16 '14 at 2:12











    • If you have multiple adapters you can specify using -InterfaceIndex.

      – Tim Ferrill
      Jun 16 '14 at 2:24











    • These don't create new adapters though. You still need an existing adapter.

      – CMCDragonkai
      Jun 16 '14 at 2:36











    • If I could create new adapters, do I need to create these IP addresses for these adapters. Don't the adapters have an IP address + subnet..etc already?

      – CMCDragonkai
      Jun 16 '14 at 2:37











    • You're changing the topic of this question. Feel free to post a question of your own.

      – Tim Ferrill
      Jun 16 '14 at 2:42












    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f750142%2fcreate-loopback-and-assign-local-addresses-on-windows-8%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown
























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I don't know if my way will work but you can just try to use the 127.0.0.0/24 network for this. Windows will resolve all addresses within the 127.0.0.0/24 network to the local loopback device.



    I think that this is easier then messing around with custom drivers.






    share|improve this answer




























      0














      I don't know if my way will work but you can just try to use the 127.0.0.0/24 network for this. Windows will resolve all addresses within the 127.0.0.0/24 network to the local loopback device.



      I think that this is easier then messing around with custom drivers.






      share|improve this answer


























        0












        0








        0







        I don't know if my way will work but you can just try to use the 127.0.0.0/24 network for this. Windows will resolve all addresses within the 127.0.0.0/24 network to the local loopback device.



        I think that this is easier then messing around with custom drivers.






        share|improve this answer













        I don't know if my way will work but you can just try to use the 127.0.0.0/24 network for this. Windows will resolve all addresses within the 127.0.0.0/24 network to the local loopback device.



        I think that this is easier then messing around with custom drivers.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 6 '14 at 8:14









        ScreenyScreeny

        1




        1

























            0














            Windows 8 supports the New-NetIPAddress cmdlet.



            New-NetIPAddress –IPAddress 172.16.4.142 -PrefixLength 24 -DefaultGateway 172.16.4.1
            New-NetIPAddress –IPAddress 172.16.4.121 -PrefixLength 24 -DefaultGateway 172.16.4.1





            share|improve this answer
























            • To which adapter do those commands assign to?

              – CMCDragonkai
              Jun 16 '14 at 2:12











            • If you have multiple adapters you can specify using -InterfaceIndex.

              – Tim Ferrill
              Jun 16 '14 at 2:24











            • These don't create new adapters though. You still need an existing adapter.

              – CMCDragonkai
              Jun 16 '14 at 2:36











            • If I could create new adapters, do I need to create these IP addresses for these adapters. Don't the adapters have an IP address + subnet..etc already?

              – CMCDragonkai
              Jun 16 '14 at 2:37











            • You're changing the topic of this question. Feel free to post a question of your own.

              – Tim Ferrill
              Jun 16 '14 at 2:42
















            0














            Windows 8 supports the New-NetIPAddress cmdlet.



            New-NetIPAddress –IPAddress 172.16.4.142 -PrefixLength 24 -DefaultGateway 172.16.4.1
            New-NetIPAddress –IPAddress 172.16.4.121 -PrefixLength 24 -DefaultGateway 172.16.4.1





            share|improve this answer
























            • To which adapter do those commands assign to?

              – CMCDragonkai
              Jun 16 '14 at 2:12











            • If you have multiple adapters you can specify using -InterfaceIndex.

              – Tim Ferrill
              Jun 16 '14 at 2:24











            • These don't create new adapters though. You still need an existing adapter.

              – CMCDragonkai
              Jun 16 '14 at 2:36











            • If I could create new adapters, do I need to create these IP addresses for these adapters. Don't the adapters have an IP address + subnet..etc already?

              – CMCDragonkai
              Jun 16 '14 at 2:37











            • You're changing the topic of this question. Feel free to post a question of your own.

              – Tim Ferrill
              Jun 16 '14 at 2:42














            0












            0








            0







            Windows 8 supports the New-NetIPAddress cmdlet.



            New-NetIPAddress –IPAddress 172.16.4.142 -PrefixLength 24 -DefaultGateway 172.16.4.1
            New-NetIPAddress –IPAddress 172.16.4.121 -PrefixLength 24 -DefaultGateway 172.16.4.1





            share|improve this answer













            Windows 8 supports the New-NetIPAddress cmdlet.



            New-NetIPAddress –IPAddress 172.16.4.142 -PrefixLength 24 -DefaultGateway 172.16.4.1
            New-NetIPAddress –IPAddress 172.16.4.121 -PrefixLength 24 -DefaultGateway 172.16.4.1






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered May 27 '14 at 13:37









            Tim FerrillTim Ferrill

            57839




            57839













            • To which adapter do those commands assign to?

              – CMCDragonkai
              Jun 16 '14 at 2:12











            • If you have multiple adapters you can specify using -InterfaceIndex.

              – Tim Ferrill
              Jun 16 '14 at 2:24











            • These don't create new adapters though. You still need an existing adapter.

              – CMCDragonkai
              Jun 16 '14 at 2:36











            • If I could create new adapters, do I need to create these IP addresses for these adapters. Don't the adapters have an IP address + subnet..etc already?

              – CMCDragonkai
              Jun 16 '14 at 2:37











            • You're changing the topic of this question. Feel free to post a question of your own.

              – Tim Ferrill
              Jun 16 '14 at 2:42



















            • To which adapter do those commands assign to?

              – CMCDragonkai
              Jun 16 '14 at 2:12











            • If you have multiple adapters you can specify using -InterfaceIndex.

              – Tim Ferrill
              Jun 16 '14 at 2:24











            • These don't create new adapters though. You still need an existing adapter.

              – CMCDragonkai
              Jun 16 '14 at 2:36











            • If I could create new adapters, do I need to create these IP addresses for these adapters. Don't the adapters have an IP address + subnet..etc already?

              – CMCDragonkai
              Jun 16 '14 at 2:37











            • You're changing the topic of this question. Feel free to post a question of your own.

              – Tim Ferrill
              Jun 16 '14 at 2:42

















            To which adapter do those commands assign to?

            – CMCDragonkai
            Jun 16 '14 at 2:12





            To which adapter do those commands assign to?

            – CMCDragonkai
            Jun 16 '14 at 2:12













            If you have multiple adapters you can specify using -InterfaceIndex.

            – Tim Ferrill
            Jun 16 '14 at 2:24





            If you have multiple adapters you can specify using -InterfaceIndex.

            – Tim Ferrill
            Jun 16 '14 at 2:24













            These don't create new adapters though. You still need an existing adapter.

            – CMCDragonkai
            Jun 16 '14 at 2:36





            These don't create new adapters though. You still need an existing adapter.

            – CMCDragonkai
            Jun 16 '14 at 2:36













            If I could create new adapters, do I need to create these IP addresses for these adapters. Don't the adapters have an IP address + subnet..etc already?

            – CMCDragonkai
            Jun 16 '14 at 2:37





            If I could create new adapters, do I need to create these IP addresses for these adapters. Don't the adapters have an IP address + subnet..etc already?

            – CMCDragonkai
            Jun 16 '14 at 2:37













            You're changing the topic of this question. Feel free to post a question of your own.

            – Tim Ferrill
            Jun 16 '14 at 2:42





            You're changing the topic of this question. Feel free to post a question of your own.

            – Tim Ferrill
            Jun 16 '14 at 2:42


















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f750142%2fcreate-loopback-and-assign-local-addresses-on-windows-8%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Index of /

            Tribalistas

            Listed building