Unable to ping Hostname in Client
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:
127.0.0.1 localhost.localdomain localhost
#/etc/hosts.allow
ALL : 192.168.0. : ALLOW
# /etc/hosts.deny ALL : ALL
d:) /etc/resolv.conf domain gateway.sarwarjvd.biz
# /etc/sysconfig/network NETWORKING='yes'
Note: There is no domain install that's why i use HOSTNAME='gateway.sarwarjvd.biz' # /etc/sysconfig/network-scripts/ifcfg-eth0
a) ping 192.168.0.45 (response ok in local PC) -> (response
OK 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 ) ----------> 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 ----------> 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
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 so that I may ping hostname from client...without samba-server and dns installation. ----------> 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.
Have a Linux Problem
Linux Books
Linux Home: Linux System Administration Hints and Tips (c) www.gotothings.com All material on this site is Copyright.
|