Overclock.net › Forums › Software, Programming and Coding › Networking & Security › [SOLVED] Configuring two NICs.. Separate Internet / Lan
New Posts  All Forums:Forum Nav:

[SOLVED] Configuring two NICs.. Separate Internet / Lan

post #1 of 14
Thread Starter 
Hey guys.. So I decided to host some dedicated cs servers recently and I'm hosting them on my file storage server machine.. What happened is that I want to add another NIC into the machine so it can use one just for the internet, and the other one for just Lan.. Reason why I'm doing this is because I don't want players in the servers to be affected when I transfer files to/from the machine.. So I added a second NIC for Lan use only (mainly for file transfer).

The machine is running on Win7 32Bit.. Any help will be very appreciated, thanks in advance!

My current configuration:

15rfxjc.jpg

This worked for a little while but everything will back to NIC1 after I restart.. Both cards are connected to the same router.

Solved: Post #14
Edited by xxlap1xx - 11/17/11 at 8:12pm
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
2600K 4.8ghz HT Asus P8P67 Deluxe 1503 980TI Classy @ 1462Mhz Sammy DDR3L 8GB @ 1866 9-9-9-24-1 
Hard DriveOSMonitorPower
850 Pro Win8.1 64Bit PG278Q Cossair RM850X 
Case
Enthoo Pro 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
2600K 4.8ghz HT Asus P8P67 Deluxe 1503 980TI Classy @ 1462Mhz Sammy DDR3L 8GB @ 1866 9-9-9-24-1 
Hard DriveOSMonitorPower
850 Pro Win8.1 64Bit PG278Q Cossair RM850X 
Case
Enthoo Pro 
  hide details  
Reply
post #2 of 14
Do it at the router, not Windows.

Basically set the NIC at 192.168.1.3 in the DMZ in your router and forward the relevant ports for the game server specifically to that address.

How many client machines do you have on the LAN that would be accessing the server? The quick-and-dirty way would be to edit the HOSTS file and explicitly state the server is at 192.168.1.4, like so in C:\windows\system32\drivers\etc\hosts
Code:
127.0.0.1                       localhost
192.168.1.4                  ServerName

Problem with that is you'll need to update that file if the IP address for the server on the LAN side ever changes.

I'm sure there's a way to do it at the server as well, I'm just not sure of one off the top of my head.
    
CPUMotherboardGraphicsRAM
Core i7 970 @ 4.0 GHz 1.22 Vcore Asus Rampage II Gene GTX 260 216SP G.SKILL PI 3x2gb DDR3 1600 @ 7-8-7-24 
Hard DriveOSMonitorPower
2x 500gb Seagates RAID 0, 1x 500gb non-RAID Windows 7 Professional x64 ASUS 24'' VH242H / Spectre 24'' WS Corsair 750TX 
Case
Corsair 300R 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Core i7 970 @ 4.0 GHz 1.22 Vcore Asus Rampage II Gene GTX 260 216SP G.SKILL PI 3x2gb DDR3 1600 @ 7-8-7-24 
Hard DriveOSMonitorPower
2x 500gb Seagates RAID 0, 1x 500gb non-RAID Windows 7 Professional x64 ASUS 24'' VH242H / Spectre 24'' WS Corsair 750TX 
Case
Corsair 300R 
  hide details  
Reply
post #3 of 14
Thread Starter 
I have three PCs that will be using the server machine..

I like the "dirty" way, but why would you call it dirty?
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
2600K 4.8ghz HT Asus P8P67 Deluxe 1503 980TI Classy @ 1462Mhz Sammy DDR3L 8GB @ 1866 9-9-9-24-1 
Hard DriveOSMonitorPower
850 Pro Win8.1 64Bit PG278Q Cossair RM850X 
Case
Enthoo Pro 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
2600K 4.8ghz HT Asus P8P67 Deluxe 1503 980TI Classy @ 1462Mhz Sammy DDR3L 8GB @ 1866 9-9-9-24-1 
Hard DriveOSMonitorPower
850 Pro Win8.1 64Bit PG278Q Cossair RM850X 
Case
Enthoo Pro 
  hide details  
Reply
post #4 of 14
Quote:
Originally Posted by xxlap1xx View Post

I have three PCs that will be using the server machine..
I like the "dirty" way, but why would you call it dirty?

Because it's a very archaic and de-centralized way of doing it. Manually keeping HOST files updated can get annoying, though 3 machines isn't bad.
    
CPUMotherboardGraphicsRAM
Core i7 970 @ 4.0 GHz 1.22 Vcore Asus Rampage II Gene GTX 260 216SP G.SKILL PI 3x2gb DDR3 1600 @ 7-8-7-24 
Hard DriveOSMonitorPower
2x 500gb Seagates RAID 0, 1x 500gb non-RAID Windows 7 Professional x64 ASUS 24'' VH242H / Spectre 24'' WS Corsair 750TX 
Case
Corsair 300R 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Core i7 970 @ 4.0 GHz 1.22 Vcore Asus Rampage II Gene GTX 260 216SP G.SKILL PI 3x2gb DDR3 1600 @ 7-8-7-24 
Hard DriveOSMonitorPower
2x 500gb Seagates RAID 0, 1x 500gb non-RAID Windows 7 Professional x64 ASUS 24'' VH242H / Spectre 24'' WS Corsair 750TX 
Case
Corsair 300R 
  hide details  
Reply
post #5 of 14
Thread Starter 
I see.. I've heard that some people are using the "route add" command to do this, but I just don't know how to..
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
2600K 4.8ghz HT Asus P8P67 Deluxe 1503 980TI Classy @ 1462Mhz Sammy DDR3L 8GB @ 1866 9-9-9-24-1 
Hard DriveOSMonitorPower
850 Pro Win8.1 64Bit PG278Q Cossair RM850X 
Case
Enthoo Pro 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
2600K 4.8ghz HT Asus P8P67 Deluxe 1503 980TI Classy @ 1462Mhz Sammy DDR3L 8GB @ 1866 9-9-9-24-1 
Hard DriveOSMonitorPower
850 Pro Win8.1 64Bit PG278Q Cossair RM850X 
Case
Enthoo Pro 
  hide details  
Reply
post #6 of 14
Quote:
Originally Posted by xxlap1xx View Post

I see.. I've heard that some people are using the "route add" command to do this, but I just don't know how to..

The fact that they are both on the router, and not an intermediate switch complicates things slightly. A switch connecting the client machines and the LAN NIC, while the game server NIC stays on the router would solve this.

The route table method is plausible, but I'll be honest it's late, I'm tired and I'd probably make a glaring mistake or two setting up the right routes. Google something along the lines of "separate LAN and WAN NICs in Windows"
    
CPUMotherboardGraphicsRAM
Core i7 970 @ 4.0 GHz 1.22 Vcore Asus Rampage II Gene GTX 260 216SP G.SKILL PI 3x2gb DDR3 1600 @ 7-8-7-24 
Hard DriveOSMonitorPower
2x 500gb Seagates RAID 0, 1x 500gb non-RAID Windows 7 Professional x64 ASUS 24'' VH242H / Spectre 24'' WS Corsair 750TX 
Case
Corsair 300R 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Core i7 970 @ 4.0 GHz 1.22 Vcore Asus Rampage II Gene GTX 260 216SP G.SKILL PI 3x2gb DDR3 1600 @ 7-8-7-24 
Hard DriveOSMonitorPower
2x 500gb Seagates RAID 0, 1x 500gb non-RAID Windows 7 Professional x64 ASUS 24'' VH242H / Spectre 24'' WS Corsair 750TX 
Case
Corsair 300R 
  hide details  
Reply
post #7 of 14
Thread Starter 
Seems like there's no easy solution to this by routing traffics across my network.. I've been told that setting up a virtual OS is a way to go, I can just configure which NIC the virtual will be using and setup all my file sharing in there.. I think I'll give that a try and see what happens..
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
2600K 4.8ghz HT Asus P8P67 Deluxe 1503 980TI Classy @ 1462Mhz Sammy DDR3L 8GB @ 1866 9-9-9-24-1 
Hard DriveOSMonitorPower
850 Pro Win8.1 64Bit PG278Q Cossair RM850X 
Case
Enthoo Pro 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
2600K 4.8ghz HT Asus P8P67 Deluxe 1503 980TI Classy @ 1462Mhz Sammy DDR3L 8GB @ 1866 9-9-9-24-1 
Hard DriveOSMonitorPower
850 Pro Win8.1 64Bit PG278Q Cossair RM850X 
Case
Enthoo Pro 
  hide details  
Reply
post #8 of 14
From the details you have provided, this isn't even possible. The reason I say this is because all the computers and server are on the same subnet. All traffic is still going across the same back plane in the switch. I also don't know if you are referring to to having LAN parties or people coming in from the outside.

Please give us more info such as where are the gamers coming from, and where are they going to. Can you through together a network map? What network equipment do you already have?
1090T
(13 items)
 
  
CPUMotherboardGraphicsRAM
1090T GA-890FXA-UD5 HIS 4670 G.SKILL ECO Series 4GB (1600) 
Hard DriveOSPowerCase
WD Black (Raid 0) Win 7 Home Premium x64 CORSAIR 850W COOLER MASTER Storm Sniper 
  hide details  
Reply
1090T
(13 items)
 
  
CPUMotherboardGraphicsRAM
1090T GA-890FXA-UD5 HIS 4670 G.SKILL ECO Series 4GB (1600) 
Hard DriveOSPowerCase
WD Black (Raid 0) Win 7 Home Premium x64 CORSAIR 850W COOLER MASTER Storm Sniper 
  hide details  
Reply
post #9 of 14
Thread Starter 
Router - Westell 9100Em
Switch - Link

Players will be joining the game servers from the internet, I'm the only Lan player..

What i'm planning to do is to configure the server machine to use NIC 1 for internet only, and use NIC 2 for Lan only. I want everything to go through NIC 2 when I transfer files to/from the server with my Lan PCs.. Here's a map that I made..

15rfxjc.jpg
Edited by xxlap1xx - 11/15/11 at 2:54pm
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
2600K 4.8ghz HT Asus P8P67 Deluxe 1503 980TI Classy @ 1462Mhz Sammy DDR3L 8GB @ 1866 9-9-9-24-1 
Hard DriveOSMonitorPower
850 Pro Win8.1 64Bit PG278Q Cossair RM850X 
Case
Enthoo Pro 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
2600K 4.8ghz HT Asus P8P67 Deluxe 1503 980TI Classy @ 1462Mhz Sammy DDR3L 8GB @ 1866 9-9-9-24-1 
Hard DriveOSMonitorPower
850 Pro Win8.1 64Bit PG278Q Cossair RM850X 
Case
Enthoo Pro 
  hide details  
Reply
post #10 of 14
By not configuring a gateway address on a second nic, you will isolate it from the internet. You still have some issues to think through.

- Lets just say that server has gig uplinks. You have to keep in mind the IO load you will be putting on the drives and server bus. The hard drives are going to be the choke point. Even though you have a second NIC in the machine, you will be sending these copied files over the same system board bus you will be playing the game across.

- I am also concerned with a large file copy, and if your switch can handle it without causing any lag to the game. Remember the file copy and all the gamers will be using the same switch fabric on the switch.
1090T
(13 items)
 
  
CPUMotherboardGraphicsRAM
1090T GA-890FXA-UD5 HIS 4670 G.SKILL ECO Series 4GB (1600) 
Hard DriveOSPowerCase
WD Black (Raid 0) Win 7 Home Premium x64 CORSAIR 850W COOLER MASTER Storm Sniper 
  hide details  
Reply
1090T
(13 items)
 
  
CPUMotherboardGraphicsRAM
1090T GA-890FXA-UD5 HIS 4670 G.SKILL ECO Series 4GB (1600) 
Hard DriveOSPowerCase
WD Black (Raid 0) Win 7 Home Premium x64 CORSAIR 850W COOLER MASTER Storm Sniper 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Networking & Security
Overclock.net › Forums › Software, Programming and Coding › Networking & Security › [SOLVED] Configuring two NICs.. Separate Internet / Lan