Hosts table

G

Guest

I able to ping between my Linux box and XP. What I'd like to do is ping
using an alias. I added the alias 'XP' to my host file on the linux box and
I can use that name to successfully 'ping'.

When I added the IP and (I think) an alias to the HOSTS file found at
c:/I386/HOSTS. Here is what my HOSTS file looks like

127.0.0.1 localhost
192.168.0.101 mlinux

I can substitute the alias 'localhost' when I issue a ping, and Windows will
resolve the address. When I issue a ping using 'mlinux' get an error.
See below

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Just Us>ping mlinux
Ping request could not find host mlinux. Please check the name and try again.

C:\Documents and Settings\Just Us>ping 192.168.0.101

Pinging 192.168.0.101 with 32 bytes of data:

Reply from 192.168.0.101: bytes=32 time<1ms TTL=64
Reply from 192.168.0.101: bytes=32 time<1ms TTL=64
Reply from 192.168.0.101: bytes=32 time<1ms TTL=64
Reply from 192.168.0.101: bytes=32 time<1ms TTL=64

Ping statistics for 192.168.0.101:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\Documents and Settings\Just Us>

Why will Windows not resolve the IP using mlinux?
 
S

Steve Winograd [MVP]

I able to ping between my Linux box and XP. What I'd like to do is ping
using an alias. I added the alias 'XP' to my host file on the linux box and
I can use that name to successfully 'ping'.

When I added the IP and (I think) an alias to the HOSTS file found at
c:/I386/HOSTS. Here is what my HOSTS file looks like

127.0.0.1 localhost
192.168.0.101 mlinux

I can substitute the alias 'localhost' when I issue a ping, and Windows will
resolve the address. When I issue a ping using 'mlinux' get an error.
See below

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Just Us>ping mlinux
Ping request could not find host mlinux. Please check the name and try again.

C:\Documents and Settings\Just Us>ping 192.168.0.101

Pinging 192.168.0.101 with 32 bytes of data:

Reply from 192.168.0.101: bytes=32 time<1ms TTL=64
Reply from 192.168.0.101: bytes=32 time<1ms TTL=64
Reply from 192.168.0.101: bytes=32 time<1ms TTL=64
Reply from 192.168.0.101: bytes=32 time<1ms TTL=64

Ping statistics for 192.168.0.101:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\Documents and Settings\Just Us>

Why will Windows not resolve the IP using mlinux?

That's not the Hosts file that Windows XP uses. Edit this one:

.. C:\Windows\System32\Drivers\Etc\Hosts

An easy way to do it is to use this command, being sure to include the
period on the end:

notepad C:\Windows\System32\Drivers\Etc\Hosts.
--
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
 
G

Guest

It works great.

Thanks

Steve Winograd said:
I able to ping between my Linux box and XP. What I'd like to do is ping
using an alias. I added the alias 'XP' to my host file on the linux box and
I can use that name to successfully 'ping'.

When I added the IP and (I think) an alias to the HOSTS file found at
c:/I386/HOSTS. Here is what my HOSTS file looks like

127.0.0.1 localhost
192.168.0.101 mlinux

I can substitute the alias 'localhost' when I issue a ping, and Windows will
resolve the address. When I issue a ping using 'mlinux' get an error.
See below

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Just Us>ping mlinux
Ping request could not find host mlinux. Please check the name and try again.

C:\Documents and Settings\Just Us>ping 192.168.0.101

Pinging 192.168.0.101 with 32 bytes of data:

Reply from 192.168.0.101: bytes=32 time<1ms TTL=64
Reply from 192.168.0.101: bytes=32 time<1ms TTL=64
Reply from 192.168.0.101: bytes=32 time<1ms TTL=64
Reply from 192.168.0.101: bytes=32 time<1ms TTL=64

Ping statistics for 192.168.0.101:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\Documents and Settings\Just Us>

Why will Windows not resolve the IP using mlinux?

That's not the Hosts file that Windows XP uses. Edit this one:

.. C:\Windows\System32\Drivers\Etc\Hosts

An easy way to do it is to use this command, being sure to include the
period on the end:

notepad C:\Windows\System32\Drivers\Etc\Hosts.
--
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