Hi,

I have 2 machines on my network and a router.
my router is 192.168.1.1 and my machines are:
darkstar 192.168.1.15 (Ubuntu)
dazlaptop 192.168.1.16 (WXP)

These two machines share files and work, and when i am in windows XP i can go to the folder directory \\darkstar\ and it opens.

But when i type ping darkstar it says this:
Pinging darkstar [172.16.142.1] with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

This is stupid because i can ping darkstar (192.168.1.15) and it works.

But i cant use the hostname.

So i tried flushing the dns.
ipconfig /flushdns

and it still does the same thing, I have no idea where it got this 172 B class network address from.

If I try it vice versa it still wont ping.

daz@darkstar:~$ ping dazlaptop
^C
daz@darkstar:~$ ping 192.168.1.16
PING 192.168.1.16 (192.168.1.16) 56(84) bytes of data.
64 bytes from 192.168.1.16: icmp_seq=1 ttl=128 time=1.48 ms
64 bytes from 192.168.1.16: icmp_seq=2 ttl=128 time=1.23 ms
^C
--- 192.168.1.16 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 1.231/1.355/1.480/0.129 ms

So it works Via IP, and for some reason samba works fine, but I have no clue why it wont let me flush the dns and let me use the hostname.

Also it only does this sometimes after the machines have been restarted.

Any ideaS?

You have no common DNS server to translate the name. It may be possible to add the IPs to the individual hosts file on each PC if you really need to use names. If you are just mapping you can use the IP\share....

Hi,

I have 2 machines on my network and a router.
my router is 192.168.1.1 and my machines are:
darkstar 192.168.1.15 (Ubuntu)
dazlaptop 192.168.1.16 (WXP)

These two machines share files and work, and when i am in windows XP i can go to the folder directory \\darkstar\ and it opens.

But when i type ping darkstar it says this:
Pinging darkstar [172.16.142.1] with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

This is stupid because i can ping darkstar (192.168.1.15) and it works.

But i cant use the hostname.

So i tried flushing the dns.
ipconfig /flushdns

and it still does the same thing, I have no idea where it got this 172 B class network address from.

If I try it vice versa it still wont ping.

daz@darkstar:~$ ping dazlaptop
^C
daz@darkstar:~$ ping 192.168.1.16
PING 192.168.1.16 (192.168.1.16) 56(84) bytes of data.
64 bytes from 192.168.1.16: icmp_seq=1 ttl=128 time=1.48 ms
64 bytes from 192.168.1.16: icmp_seq=2 ttl=128 time=1.23 ms
^C
--- 192.168.1.16 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 1.231/1.355/1.480/0.129 ms

So it works Via IP, and for some reason samba works fine, but I have no clue why it wont let me flush the dns and let me use the hostname.

Also it only does this sometimes after the machines have been restarted.

Any ideaS?

You have no common DNS server to translate the name. It may be possible to add the IPs to the individual hosts file on each PC if you really need to use names. If you are just mapping you can use the IP\share....

I dont mind, i know how to add it to the linux one /etc/hosts but how do you add it in windows?

In the case of Windows XP is usually located under the C:windows system32driversetc folder

The windows host file is located in %systemroot%\system32\drivers\etc which translates to C:\WINDOWS\system32\drivers\etc\hosts on 32bit versions of windows.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.