Home All Groups Group Topic Archive Search About

2 Network Cards / 2 Lans / 2 Routers / XP PRO

Author
18 Nov 2006 12:22 AM
domvalanth
XP Pro with 2 Network Cards.
I would like the Internet/Network Traffic for certain users of this
workstation to go to one Router and other users of this workstation go
to a different router.

In other words, through the user logon can I default which NIC is the
default?

User Ron
Connection 1
DHCP 10.0.0.12
Gateway 10.0.0.1 -Router 1

User Visitor
Connection 2
DHCP 192.168.1.100
Gateway 192.168.1.1 - Router 2

I appreciate your assistance.

Regards,

Ron

Author
18 Nov 2006 1:43 AM
Doug Sherman [MVP]
No, but you could get the desired result with the route command in a
logon.bat file.

Ron gets:

route -f
route add 0.0.0.0 mask 0.0.0.0 10.0.0.1

Visitor gets:

route -f
route add 0.0.0.0 mask 0.0.0.0 192.168.1.1

Doug Sherman
MCSE, MCSA, MCP+I, MVP

Show quoteHide quote
"domvalanth" <ron4***@comcast.net> wrote in message
news:1163809351.344695.160420@f16g2000cwb.googlegroups.com...
> XP Pro with 2 Network Cards.
> I would like the Internet/Network Traffic for certain users of this
> workstation to go to one Router and other users of this workstation go
> to a different router.
>
> In other words, through the user logon can I default which NIC is the
> default?
>
> User Ron
> Connection 1
> DHCP 10.0.0.12
> Gateway 10.0.0.1 -Router 1
>
> User Visitor
> Connection 2
> DHCP 192.168.1.100
> Gateway 192.168.1.1 - Router 2
>
> I appreciate your assistance.
>
> Regards,
>
> Ron
>
Author
19 Nov 2006 11:02 PM
domvalanth
Thank YOU!
Doug Sherman [MVP] wrote:
Show quoteHide quote
> No, but you could get the desired result with the route command in a
> logon.bat file.
>
> Ron gets:
>
> route -f
> route add 0.0.0.0 mask 0.0.0.0 10.0.0.1
>
> Visitor gets:
>
> route -f
> route add 0.0.0.0 mask 0.0.0.0 192.168.1.1
>
> Doug Sherman
> MCSE, MCSA, MCP+I, MVP
>
> "domvalanth" <ron4***@comcast.net> wrote in message
> news:1163809351.344695.160420@f16g2000cwb.googlegroups.com...
> > XP Pro with 2 Network Cards.
> > I would like the Internet/Network Traffic for certain users of this
> > workstation to go to one Router and other users of this workstation go
> > to a different router.
> >
> > In other words, through the user logon can I default which NIC is the
> > default?
> >
> > User Ron
> > Connection 1
> > DHCP 10.0.0.12
> > Gateway 10.0.0.1 -Router 1
> >
> > User Visitor
> > Connection 2
> > DHCP 192.168.1.100
> > Gateway 192.168.1.1 - Router 2
> >
> > I appreciate your assistance.
> >
> > Regards,
> >
> > Ron
> >
Author
18 Nov 2006 3:03 AM
Steve Winograd [MVP]
In article <1163809351.344695.160***@f16g2000cwb.googlegroups.com>,
Show quoteHide quote
"domvalanth" <ron4***@comcast.net> wrote:
>XP Pro with 2 Network Cards.
>I would like the Internet/Network Traffic for certain users of this
>workstation to go to one Router and other users of this workstation go
>to a different router.
>
>In other words, through the user logon can I default which NIC is the
>default?
>
>User Ron
>Connection 1
>DHCP 10.0.0.12
>Gateway 10.0.0.1 -Router 1
>
>User Visitor
>Connection 2
>DHCP 192.168.1.100
>Gateway 192.168.1.1 - Router 2
>
>I appreciate your assistance.
>
>Regards,
>
>Ron

Put a .bat file in each user's Startup folder that uses the "route
change" command to specify which default gateway to use.  Using the
values that you gave above:

Ron:

   route change 0.0.0.0 mask 0.0.0.0 10.0.0.1

Visitor:

   route change 0.0.0.0 mask 0.0.0.0 192.168.1.1

This will work provided that each user logs off before the other user
logs on.  It won't work if you use Fast User Switching to switch
between two active users, because the Startup programs don't run when
you switch users.
--
Best Wishes,
Steve Winograd, MS-MVP (Windows Networking)

Please post any reply as a follow-up message in the news group
for everyone to see.  I'm sorry, but I don't answer questions
addressed directly to me in E-mail or news groups.

Microsoft Most Valuable Professional Program
http://mvp.support.microsoft.com
Author
19 Nov 2006 11:02 PM
domvalanth
Thank you!
Steve Winograd [MVP] wrote:
Show quoteHide quote
> In article <1163809351.344695.160***@f16g2000cwb.googlegroups.com>,
> "domvalanth" <ron4***@comcast.net> wrote:
> >XP Pro with 2 Network Cards.
> >I would like the Internet/Network Traffic for certain users of this
> >workstation to go to one Router and other users of this workstation go
> >to a different router.
> >
> >In other words, through the user logon can I default which NIC is the
> >default?
> >
> >User Ron
> >Connection 1
> >DHCP 10.0.0.12
> >Gateway 10.0.0.1 -Router 1
> >
> >User Visitor
> >Connection 2
> >DHCP 192.168.1.100
> >Gateway 192.168.1.1 - Router 2
> >
> >I appreciate your assistance.
> >
> >Regards,
> >
> >Ron
>
> Put a .bat file in each user's Startup folder that uses the "route
> change" command to specify which default gateway to use.  Using the
> values that you gave above:
>
> Ron:
>
>    route change 0.0.0.0 mask 0.0.0.0 10.0.0.1
>
> Visitor:
>
>    route change 0.0.0.0 mask 0.0.0.0 192.168.1.1
>
> This will work provided that each user logs off before the other user
> logs on.  It won't work if you use Fast User Switching to switch
> between two active users, because the Startup programs don't run when
> you switch users.
> --
> Best Wishes,
> Steve Winograd, MS-MVP (Windows Networking)
>
> Please post any reply as a follow-up message in the news group
> for everyone to see.  I'm sorry, but I don't answer questions
> addressed directly to me in E-mail or news groups.
>
> Microsoft Most Valuable Professional Program
> http://mvp.support.microsoft.com