Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Networking (https://www.askmehelpdesk.com/forumdisplay.php?f=76)
-   -   2 nic on 1 PC (https://www.askmehelpdesk.com/showthread.php?t=134333)

  • Sep 27, 2007, 12:15 AM
    shakis
    2 nic on 1 PC
    Hello!I have a big problem at work.I have a PC with windows xp that has two nics.one is connected to a router which is giving access to the Internet.the other nic is connected to a vpn.on the first nic I have the gateway 192.168.9.1 from my locar router.on the other nic I have the configuration ip 192.168.228.194 sm 255.255.255.224 gateway 192.168.228.193.both nics are working.the problem is it's not working with both nics in the same time.I have to remove the cable from one card to make the second work.or remove the gateway from one card.the idea is the nic's don't work in the same time.
  • Sep 30, 2007, 05:43 AM
    cajalat
    I believe your computer is working EXACTLY as it is supposed to but not as you WANT it to work. The "gateway" isn't just any gateway... it is a "default gateway" which is where all packets go to when your computer doesn't know where the destination IP is located. The "gateway" you choose depends on which one has a lower metric. Do this under a command prompt:

    netstat -rn

    You'll see that you have two lines that look like this:

    Code:

    Network Destination    Netmask      Gateway          Interface        Metric
              0.0.0.0      0.0.0.0      192.168.9.1      192.168.9.x      20
              0.0.0.0      0.0.0.0      192.168.228.193  192.168.228.194  20

    The metric column with the lowest value is used first as your default gateway. If both numbers are the same then the first one in the list is what's used.

    What behavior were you expecting or want to happen?
  • Oct 1, 2007, 11:57 PM
    shakis
    You are right, I receve something like this!But I want to make the PC understand when to go to one gateway and when to go to another.I made some .bat scripts that look like this
    Route delete 0.0.0.0
    Route add 0.0.0.0 192.168.9.1 for the first network and
    Route delete 0.0.0.0
    Route add 0.0.0.0 192.168.228.193 for de second but is still not working, maybe there are not configured well
  • Oct 2, 2007, 01:15 AM
    biggsie
    I am not sure how to do it but I think you want a program that

    Switches from one network to the other by tapping a certain key

    I have a KVM switch that uses the scroll lock key to switch the

    Mouse-keyboard-monitor from one computer to the other

    Think of it as a right brain -- left brain thingey so

    I can work on one computer while the other preforms brain surgery

    If one breaks down, I still have a backup to help repair it

    One keyboard-monitor -moouse controls 2 computers
  • Oct 2, 2007, 04:32 AM
    cajalat
    Quote:

    Originally Posted by shakis
    You are right, I receve something like this!But I want to make the PC understand when to go to one gateway and when to go to another.I made some .bat scripts that look like this
    route delete 0.0.0.0
    route add 0.0.0.0 192.168.9.1 for the first network and
    route delete 0.0.0.0
    route add 0.0.0.0 192.168.228.193 for de second but is still not working, maybe there are not configured well

    What you need to do is decide which default route to remove. Then decide what specific routes you want to add favor of the default route you just removed.

  • All times are GMT -7. The time now is 02:43 PM.