Change routes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I've one network adapter and 2 ip's on the adapter (192.168.0.178 and 192.168.0.180). By default i have this route:
0.0.0.0 0.0.0.0 192.168.0.234 192.168.0.178 20
because 192.168.0.178 is my first ip.

I want to change the actual route to the following one:
0.0.0.0 0.0.0.0 192.168.0.234 192.168.0.180 20
where 192.168.0.180 is my second ip.

I've done something like this using netsh by deleting the first ip and adding it again but my connections are dropped. So I just want to modify the default route, not to remove/add ip.

Any idea?

Thanks, Cata
 
Hi

I've one network adapter and 2 ip's on the adapter (192.168.0.178 and 192.168.0.180). By default i have this route:
0.0.0.0 0.0.0.0 192.168.0.234 192.168.0.178 20
because 192.168.0.178 is my first ip.

I want to change the actual route to the following one:
0.0.0.0 0.0.0.0 192.168.0.234 192.168.0.180 20
where 192.168.0.180 is my second ip.

I've done something like this using netsh by deleting the first ip and adding it again but my connections are dropped. So I just want to modify the default route, not to remove/add ip.

Any idea?

Thanks, Cata

That's a tough one, Cata, since both IP addresses use the same
interface. I know of nothing in the "netsh" or "route" command that
lets you indicate which of multiple local IP addresses to use when
specifying a default route for an interface. They seem to always use
the first local IP address.

I assume that both IP addresses are static. If so, can you just
reverse their definitions in the connection's TCP/IP properties,
making 192.168.0.180 the first (default) address?

The only other solution I can think of is to use a different network
adapter for each IP address.
--
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

Back
Top