Link to home
Start Free TrialLog in
Avatar of yo0mismo
yo0mismo

asked on

Add a route using a hostname in Windows XP

I have two computers conected to the same hub but with dynamic IPs that have different subnets. I'd like to add a static route using the hostname of each computer but rute command in windows XP only allow IP. Is there any way to add a static route using a hostname in Windows XP?
Thanx.
ASKER CERTIFIED SOLUTION
Avatar of stevenlewis
stevenlewis

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial


You can have more than 1 ip address on an interface.
If they're in the same collision domain, add a static private ip address to each from an unused subnet and add a host file entry for the other machine.

Avatar of yo0mismo
yo0mismo

ASKER

Yes, they are in the same collision domain, but the problem is that my internet provider uses DHCP. Surprisingly, Windows XP doesn't allow multiple IPs if you obtain the IP fron a DHCP server. How can I solve that?
...Maybe I'm missing something but why not just add a secondary statement into the host file?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I do use a dinamic DNS client (www.no-ip.com) so I have a hostname for each computer. And yes, the addresses given by the DHCP server of my internet provider for each computer are not part of the same subnet.
So, how can I fake XP to route traffic to each other computer? I have two static hostnames.
Get a router, will make your life simpler
d-link and linksys make good ones for about $50 USD
If you have a DNS entry, you only need to use the hostnames.
Entering your dynamic DNS provider's DNS server will eliminate the latency in DNS propagation to your ISP's DNS when your address changes.