none
2 NIC's and problem with routes/default lan

    Question

  • Hi, need help with Windows Server 2012 and Lan cards

    I have 2 Lan cards in use - 

    First - default (slower)
    IP- 10.0.0.3
    Gateway 10.0.0.1

    Second - faster 
    IP192.168.1.10
    GW192.168.1.1

    Two separated LAN's. I want use this faster like default (download updates etc) and this slower only for connection (specific port and source IP)

    I have change orger in Advanced Tab, change metric but still default card with Internet (which use System to download updates etc) is this slower card.

    I think about change routing table but I don't have idea how.

    Route print and Intefrace list show correct order 
    First(faster) Hyper-V
    Second (slower) Intel(R)

    Route

    ===========================================================================
    Interface List
     19...90 1b 0e 44 11 b8 ......Hyper-V Virtual Ethernet Adapter #2
     12...90 1b 0e 47 02 ac ......Intel(R) Ethernet Connection I217-LM
     20...00 ff 86 6d 34 90 ......TeamViewer VPN Adapter
      1...........................Software Loopback Interface 1
     14...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
     16...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
     21...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3
    ===========================================================================

    IPv4 Route Table
    ===========================================================================
    Active Routes:
    Network Destination        Netmask          Gateway       Interface  Metric
              0.0.0.0          0.0.0.0         10.0.0.1         10.0.0.3    532
             10.0.0.0    255.255.255.0         On-link          10.0.0.3    522
             10.0.0.3  255.255.255.255         On-link          10.0.0.3    522
           10.0.0.255  255.255.255.255         On-link          10.0.0.3    522
            127.0.0.0        255.0.0.0         On-link         127.0.0.1    306
            127.0.0.1  255.255.255.255         On-link         127.0.0.1    306
      127.255.255.255  255.255.255.255         On-link         127.0.0.1    306
          192.168.1.0    255.255.255.0         On-link      192.168.1.10    257
         192.168.1.10  255.255.255.255         On-link      192.168.1.10    257
        192.168.1.255  255.255.255.255         On-link      192.168.1.10    257
            224.0.0.0        240.0.0.0         On-link         127.0.0.1    306
            224.0.0.0        240.0.0.0         On-link          10.0.0.3    522
            224.0.0.0        240.0.0.0         On-link      192.168.1.10    257
      255.255.255.255  255.255.255.255         On-link         127.0.0.1    306
      255.255.255.255  255.255.255.255         On-link          10.0.0.3    522
      255.255.255.255  255.255.255.255         On-link      192.168.1.10    257
    ===========================================================================
    Persistent Routes:
      None

    IPv6 Route Table
    ===========================================================================
    Active Routes:
     If Metric Network Destination      Gateway
      1    306 ::1/128                  On-link
     12    266 fe80::/64                On-link
     19    261 fe80::/64                On-link
     19    261 fe80::6923:6e96:b2bc:e375/128
                                        On-link
     12    266 fe80::71db:972:b56d:c8c5/128
                                        On-link
      1    306 ff00::/8                 On-link
     12    266 ff00::/8                 On-link
     19    261 ff00::/8                 On-link
    ===========================================================================
    Persistent Routes:
      None


    • Edited by Matpl Wednesday, July 11, 2018 12:58 PM
    Wednesday, July 11, 2018 12:53 PM

All replies

  • What roles are installed? What's the purpose of two network interfaces?

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    Wednesday, July 11, 2018 1:33 PM
  • You should never define two NICs with gateways.  In fact, when you do that, you will get a warning cautioning you that it is likely to cause problems.  If you want both networks to be routable, then you need to use the route command to specify the network that is using an alternate gateway.  Remember that when you are configuring IP addresses on the NICs using standard tools that you are defining the default gateway, and that is why you need to use route to define an alternate gateway.  Note that the alternate gateway is used for accessing specific subnets - it is not used for different functions, e.g. file copy versus ping.

    The help for the route command is pretty straightforward.  Maybe if you asked specific questions about what is confusing you about setting up the alternate gateway we could provide more assistance.


    tim


    Wednesday, July 11, 2018 1:41 PM
  • First this faster is used in company server is supports queries (SQL) from other PC's in this LAN

    Second, slower connection is using to comunicate throught soap for exchange data betwen our company and another. 

    Roles

    AD CS
    AD DS
    DNS
    File and Storage
    Hyper-V
    IIS
    Remote  Acces

    • Edited by Matpl Wednesday, July 11, 2018 1:51 PM
    Wednesday, July 11, 2018 1:42 PM
  • The cleaner method would be to configure the routes on layer three switch hardware and use a single network interface on windows.

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    Wednesday, July 11, 2018 1:46 PM
  • Tim, thanks for your reply. 

    I never used it and I don't know how to use it :) From your post I know that i should change default GW to 192.168.1.1


    Is that ok if 

    - slower nic remove gw

    - faster nic leave default gw

    ?

    or should edit first route like this 

              0.0.0.0          0.0.0.0         192.168.1.1 192.168.1.10

    • Edited by Matpl Wednesday, July 11, 2018 2:14 PM
    Wednesday, July 11, 2018 1:56 PM
  • I agree with Dave that it is cleaner to configure it in a layer three switch, but it is not that difficult to use the route command, either.

    I never used the route command until I tried it.  15 minutes of playing and I figured it out.  It is pretty easy to learn.

    From the description of the usage of the two NICs, I'm not sure if it will be possible to configure what you want.  You state the faster NIC is used for LAN access and the slow NIC is used for SOAP, or WAN, access.  If the fast NIC is not configured in such a manner that it has access to the WAN, then there is no way for it to be used for downloads from the internet.  So the first question is - does the high speed NIC have access to the internet for download?


    tim

    Thursday, July 12, 2018 1:01 PM