Route to different subnets from different IP with one NIC

Posted on 2010-01-05
Last Modified: 2012-05-08
I have interesting problem:
I have windows computer with 1 NIC and two static IP addresses and need to configure it that one IP would be for all trafic and another IP from same subnet to route to different subnet.
On the same NIC: with default gateway for all network usage
and (it is set as secondary IP) to subnet from gateway
Second gateway allows trafic only from 0.20 IP.
I tried route command, but as I have only one interface, I can not specify than to subnet .1.0 it should go via .0.20 IP
Question by:Vaidas911
    LVL 6

    Author Comment

    Linux has virtual interface, if I could get virtual interface in Windows and set IP and route it to subnet, I think my problem would be solved
    LVL 1

    Expert Comment

    I hope I'm wrong but I don't believe this is possible. You want to subnet 1 Windows interface to 2 separate subnets. To make this work you would need route commands to point them like vlans on a switch.

    I don't think Windows has this functionality. There maybe a software that will do it but I don't know what it is.
    LVL 6

    Author Comment

    DjArioch - I think the same, just wanted to make sure. It's not the problem in linux though - you can have one NIC with virtual interfaces and route them as you like. If I just could have diferent "local area connections" from one network card in windows...
    LVL 77

    Accepted Solution

    The simple solution is to add a second NIC. Then use the existing with a default gateway and the second with a static route.
    LVL 6

    Author Closing Comment

    I think I have no choice, just to add one more NIC. Thanks.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
    Creating an OSPF network that automatically (dynamically) reroutes network traffic over other connections to prevent network downtime.
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now