Add a route using a hostname in Windows XP

Posted on 2003-11-10
Last Modified: 2008-01-09
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?
Question by:yo0mismo
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
LVL 41

Accepted Solution

stevenlewis earned 43 total points
ID: 9719251
In a word, No
LVL 18

Expert Comment

ID: 9720145

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.


Author Comment

ID: 9724687
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?
Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.


Expert Comment

ID: 9724971
...Maybe I'm missing something but why not just add a secondary statement into the host file?
LVL 18

Assisted Solution

chicagoan earned 42 total points
ID: 9726010
Your internet provider is providing two world routable addresses on different subnets to two machines on your network?

Use dynamic dns.
You CAN specify alternate dns under dhcp and use their tool for updating the dns when your dhcp addresses change.

Author Comment

ID: 9726801
I do use a dinamic DNS client ( 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.
LVL 41

Expert Comment

ID: 9726827
Get a router, will make your life simpler
d-link and linksys make good ones for about $50 USD
LVL 18

Expert Comment

ID: 9726962
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.


Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VLAN's by IP 10 69
Exchange 2013 will not send or receive 9 81
Having trouble with the ISCSI connection on my Lenovo 300D-IX4 6 66
Windows 7's Backup Utility 12 63
Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

751 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