Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am a newbie in the networking world and a little help would be appreciated in correctly configuring two NICs. I have searched your forum for multiple network card configurations, but none of them worked.

We have one PC (Win XP SP 2) - with network cards. One (native) uses the same network with other computers on the same floor and for Internet, and the other one is for using a special software upstairs on a different network. So two independent networks

Here is where the problem arises. Both of the NICs have static IPs. Native NIC for flr 1 192.1.168.195 255.255.255.0 192.1.168.1

However, Internet stops working after one or two days. I constantly have to change the IP to 192.1.168.196 so on. And even that one expires in the next day. Any IP I put lasts for a day only.

What could be the cause? Automatic DNS and IP is not solving the issue. Thanks!

PS. Forgot to mention. There is another computer on flr 1 with Win 7 that houses 2 NICs. But it never has the same problem.... I am getting a white hair over this already...

PPS. Route Print in case it helps...

===========================================================================
Interface List 
0x1 ........................... MS TCP Loopback interface 
0x2 ...00 04 75 7a d6 f2 ...... 3Com EtherLink XL 10/100 PCI For Complete PC Man 
agement NIC (3C905C-TX) - Packet Scheduler Miniport 
0x3 ...00 1a a0 c0 9e 4f ...... Broadcom NetXtreme 57xx Gigabit Controller - Pac 
ket Scheduler Miniport 
===========================================================================
===========================================================================
Active Routes: 
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0      192.168.1.1   192.168.1.195       1
          0.0.0.0          0.0.0.0    192.168.106.1  192.168.106.100      20 
        127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1       1
      169.254.0.0      255.255.0.0  192.168.106.100  192.168.106.100      20 
      192.168.1.0    255.255.255.0    192.168.1.195   192.168.1.195       20 
    192.168.1.195  255.255.255.255        127.0.0.1       127.0.0.1       20 
    192.168.1.255  255.255.255.255    192.168.1.195   192.168.1.195       20 
    192.168.106.0    255.255.255.0  192.168.106.100  192.168.106.100      20 
  192.168.106.100  255.255.255.255        127.0.0.1       127.0.0.1       20 
  192.168.106.255  255.255.255.255  192.168.106.100  192.168.106.100      20 
        224.0.0.0        240.0.0.0    192.168.1.195   192.168.1.195       20 
        224.0.0.0        240.0.0.0  192.168.106.100  192.168.106.100      20 
  255.255.255.255  255.255.255.255    192.168.1.195   192.168.1.195       1
  255.255.255.255  255.255.255.255  192.168.106.100  192.168.106.100      1
Default Gateway:     192.168.106.1 
===========================================================================
Persistent Routes: 
  None
share|improve this question
3  
The fact that you have two default gateways set is a problem. I am not sure if it is explains why you are loosing your config on one of the interfaces. Anyway, only one default gateway will be ever used. You probably remove the gateway from one of the interfaces. –  Zoredache Dec 13 '10 at 21:22
    
BTW the addresses/network in the body of your question, are different from the addresses in your route print. You may want to fix that. –  Zoredache Dec 13 '10 at 21:25
    
But they are two different networks though. I just checked the ip. They were exactly what I wrote in the body of this thread... –  user63780 Dec 15 '10 at 21:41
    
@Zoredache, you should add that as an answer, having two DGs on different NICs seems to really screw with XP in very strange ways. –  Chris S Mar 10 '11 at 13:23
    
I think Javlon mistakenly wrote "192.168.1.195" (output of route print) as "192.1.168.195" (in the question) –  pepoluan Mar 10 '11 at 13:37

1 Answer 1

A question first: Look at the 2nd NIC (which connects to a 'special software' upstairs). Does its address lie on the same subnet as the 'special software'?

If it does: remove the Default Gateway from the 2nd NIC. The 1st NIC gets to keep its Default Gateway.

If it doesn't:

  1. Note the Default Gateway of the 2nd NIC (DG2 for short)

  2. Remove the Default Gateway setting of the 2nd NIC

  3. Enter the following command (on one line!):

    route -p add <subnet_of_special> mask <mask_of_special> <address of DG2>

  4. You might need to reboot.

Edit: This is a situation I also face in my office right now:

  • A certain workstation has 2 NICs; one connected to the office LAN, the other is a direct connection to an external site (the regulatory body of my company's industry, actually)

  • The internal LAN is 172.31.0.0/16. The external site's address is 10.xx.yy.zz/24. BUT the 2nd NIC's address is 192.168.34.15; it must pass the external site's router with the address of 192.168.34.1 to reach 10.xx.yy.zz

  • So, I delete the DG from the 2nd NIC and add an explicit static route like the above: route -p add 10.xx.yy.zz MASK 255.255.255.0 192.168.34.1

  • NIC1 maintains its DG of 172.31.144.1/24.

  • Now packets for 10.xx.yy.zz will go out NIC2 and transferred via the 192.168.34.1 router, while packets for the Internet will go out NIC1 (having the sole DG) toward the 172.31.144.1 router.

share|improve this answer
    
@Chris 1) Javlon explained that they are two different networks. 2) Yes, which is why I tell him to remove the default gateway on the 2nd NIC. I told him above to add an explicit static route toward the 2nd gateway –  pepoluan Mar 10 '11 at 13:24
    
@Chris : read my edit. Will that make sense to you now? –  pepoluan Mar 10 '11 at 13:31
    
@Chris : nope. That is why I **explicitly** asked: "Does [the 2nd NIC's] address lie on the same subnet as the 'special software'?", and provided two options depending on the answer. In my situation, there are only 2 NICs also. But the destination of the 2nd NIC lies in a different subnet. –  pepoluan Mar 10 '11 at 13:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.