Question Locked

How to send LAN traffic to one Nic, WAN traffic to another?

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello All,

This is for XP Pro.
I have 2 nics in my pc, NIC1 is just for the LAN, NIC2 is just for WAN.
However, when using anything WAN related, there is a few second pause as i assume it automatically checks the NIC1 first as it's DNS is used to login to via. active directory.
Is there anyway to specify that any traffic to 192.xxx.xxx.xxx goes to NIC1, all other goes to NIC2???
Any help would be greatly appreciated.

8 replies

by synner

check your routing table to make sure that you only have one 0.0.0.0 route. If you have two default route, get rid of the default route associated with the LAN nic. You would need to create persistent static routes to other subnetworks that is reachable via the LAN nic.

For your specific example:
route -p add 192.x.x.x mask 255.255.255.0 192.x.x.y

assuming a /24 subnetwork and 192.x.x.y is your the next hop to reach 192.x.x.x

by adam.chiarotto

So would I just have to make the one route:
route -p add 192.168.123.0 mask 255.255.255.0 192.168.123.1 if LANNIC

Will this make all other traffic go to the WANNIC, or how would I have to go about doing that?

by synner

At the command prompt:

netstat -r

post the output.

by dumphrey

set a default route of 0.0.0.0 0.0.0.0 pointing to your wan NIC, then add static route for your LAN pointing to your lannic. Those two should do ya.

The default gateway for your computer will be the WAN NIC. There should not be a default GW on the LAN nic, since the internet is the other way.

by adam.chiarotto

here is the result of netstat -r, 192.168.123.xxx is the LAN
192.169.2.xxx is the WAN:

Route Table
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 17 31 b9 56 5a ...... NVIDIA nForce Networking Controller - Packet Sch
eduler Miniport
0x10004 ...00 40 f4 31 18 11 ...... Realtek RTL8139 Family PCI Fast Ethernet NIC
- Packet Scheduler Miniport
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.2.1 192.168.2.10 20
0.0.0.0 0.0.0.0 192.168.123.1 192.168.123.59 20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.2.0 255.255.255.0 192.168.2.10 192.168.2.10 20
192.168.2.10 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.2.255 255.255.255.255 192.168.2.10 192.168.2.10 20
192.168.123.0 255.255.255.0 192.168.123.59 192.168.123.59 20
192.168.123.59 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.123.255 255.255.255.255 192.168.123.59 192.168.123.59 20
224.0.0.0 240.0.0.0 192.168.2.10 192.168.2.10 20
224.0.0.0 240.0.0.0 192.168.123.59 192.168.123.59 20
255.255.255.255 255.255.255.255 192.168.2.10 192.168.2.10 1
255.255.255.255 255.255.255.255 192.168.123.59 192.168.123.59 1
Default Gateway: 192.168.123.1
===========================================================================
Persistent Routes:
None

also, will changing the default route have any effect on AD domain membership or the ability to access network resources?

by adam.chiarotto

I just removed the default gateway from the LAN NIC and now everything is gravy.

Thanks all.

This discussion is closed to new replies.