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 )
---------->
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
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 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.
Quick Links:
Do
you have a Linux Question?
Linux Home: Linux System Administration Hints and Tips