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

D

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
 
D

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
 
S

Steve Winograd [MVP]

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
 
D

domvalanth

Thank YOU!
Doug said:
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
 
D

domvalanth

Thank you!
Steve said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top