Computing.Net > Forums > Linux > Unable to ping hostname in client

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Unable to ping hostname in client

Reply to Message Icon

Name: sarwar
Date: January 28, 2005 at 23:43:54 Pacific
OS: LINUX
CPU/Ram: 256
Comment:

I am facing problem, the problem is I install Suse 9.1 personal, and configure it. I have cable connection, the gateway is : 192.168.0.2 from cable net provider

Following configuration made on Suse is follows:

# /etc/hosts

127.0.0.1 localhost.localdomain localhost
192.168.0.45 gateway.sarwarjvd.biz gateway sarwarjvd
192.168.0.48 ABC

#/etc/hosts.allow
ipop3d : ALLOW : ALL
in.ftpd : 192.168.0. : ALL
in.ftpd : DENY : ALL

ALL : 192.168.0. : ALLOW
ALL : ALL : DENY

# /etc/hosts.deny

ALL : ALL
in.ftpd : DENY : ALL

d:) /etc/resolv.conf

domain gateway.sarwarjvd.biz
nameserver 192.168.0.2

# /etc/sysconfig/network

NETWORKING='yes'
FORWARD_IPV4='yes'
HOSTNAME='gateway.sarwarjvd.biz'
GATEWAY='192.168.0.2'
GATEWAYDEV='eth0'

Note: There is no domain install that's why i use HOSTNAME='gateway.sarwarjvd.biz'

# /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE='eth0'
IPADDR='192.168.0.45'
NETMASK='255.255.255.0'
NETWORK='192.168.0.0'
BROADCAST='192.168.0.255'
ONBOOT='yes'

a) ping 192.168.0.45 (response ok in local PC) -> (response OK in client PC)
b) ping main (response ok in local PC) -> (response NO in client PC) why?
c) ping gateway.sarwarjvd.biz (response ok in local PC) -> (response NO in client PC)

Secondly when i start samba service it start ping the aliases = 'gateway' only not hostname why?

Kindly help me how can i ping host name in client pc without samba (windows 98 / xp / linux )



Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: January 31, 2005 at 09:32:03 Pacific
Reply:

I am not sure exactly what you mean by "(response ok in local PC) -> (response OK in client PC)" etc. What computers do you have in your network? What's local and client PC? Can you ping your router OK via IP? Is your router acting as a DNS and/or DHCP server? Is your router blocking pings? It looks as though you have a NAT connection so you shouldn't have to worry too much about your hosts.allow/deny files. You could try changing "domain gateway.sarwarjvd.biz" to "domain ." in resolv.conf


0

Response Number 2
Name: sarwar
Date: February 1, 2005 at 23:42:56 Pacific
Reply:

Thanks for reply,

The main point is i am using LAN connection. via cable net.

He (cable provider) - assign IP (192.168.0.45 ~ 50) -> 0.45 is my IP and the rest (45~50) for clients.

The problem is, there is no domain. that's why i use hostname "gateway.sarwarjvd.biz"

for example if i use DNS the setting would be:

# /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.0.45 gateway.sawarjvd.biz gateway

here the 2 window Pc & one Liux PC - > redhat 7.3 (clients)

so the hostname will be "gateway" instead of "gateway.sarwarjvd.biz"

Pls. tell what setting i need to change sothat i may ping hostname from client...without samba-server and dns installation.



0

Response Number 3
Name: 3Dave
Date: February 2, 2005 at 01:35:05 Pacific
Reply:

Without a samba server or a DNS server you will have to use hosts files. As in *nix, windoze can use host files too, I think they are kept under c:\windows\system32\drivers\etc\. Create the file with all the IP and hostnames in and copy it to each machine on the network. You will then have to check that windoze refers to the hosts file first before trying to resolve any names via your IPs DNS servers.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Unable to ping hostname in client

Unable to telnet or ftp into my linux www.computing.net/answers/linux/unable-to-telnet-or-ftp-into-my-linux-/7122.html

Unable to ping to and from Linux www.computing.net/answers/linux/unable-to-ping-to-and-from-linux/9316.html

Unable to access SAMBA Shares www.computing.net/answers/linux/unable-to-access-samba-shares/25514.html