Thursday, October 1, 2009

FORCE Outlook to USE a SPECIFIC NIC

OK here is the Scenario. I have 2 NIC's one connected to an External ISP and one connected to an Internal Comapny Network. IN order to get E-mail via MS Outlook you have to use the Internal Company Network. IN order to get speed when using the Internet you can use the "External Network".

Internet Explorer (Uses External NIC for Browsing the Internet)
Microsoft Outlook (Uses Internal NIC for Connecting to Company E-mail)

To force Outlook to use the Internal NIC you have to force any requests for the "E-mail Server" to route to the "Internal Gateway"

1. Identify your Exchange Server IP Address and Internal Gateway.

To do this find the E-mail Server IP address.
a. Open Outlook and go to TOOLS -> Account Settings -> double click your e-mail account and right down the Exchange Server name.
b. Open a Command Prompt run the folling with ONLY the Internal NIC plugged in.
c. ping "Exchange Server Name"
d. The IP address is returned
e. tracert "Exhange Server IP"
f. The first IP address should be your gateway connection to your internal network.

**Now that you've identified the Gateway for your internal connection you can set a persistent route that Microsoft Outlook will always use when attempting to send or receive e-mail.
-- You should have these two pieces of information.
**Internal Gateway IS e.g. (154.141.9.1)
**EXHANGE SERVER IP e.g. (192.168.156.45)

2. Set a persistent route for e-mail to use.

a. Open a Command Prompt
b. Type the following command.
c. route -p add 192.168.156.45 mask 255.255.255.255 154.141.9.1

** Now that you've setup a persistent route you can plug in your external NIC and send E-mail through only the Internal NIC and all other network functions will use the EXTERNAL NIC.

SIMPLIFIED STEPS.

1. PING exchange.server.name
2. write down exchange server IP (192.168.156.45)
3. TRACERT 192.168.156.45
4. write down the gateway (usually the first IP in the route) 154.141.9.1
5. ROUTE -p add 192.168.156.45 mask 255.255.255.255 154.141.9.1