SUSE / openSUSE This Forum is for the discussion of Suse Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
01-08-2005, 04:53 AM
|
#1
|
Member
Registered: Jul 2004
Posts: 48
Rep:
|
Hostname/Routing problems with home network
Hi all,
I have recently installed SUSE and can't seem to get many bits to work that seemed to work fine the first time I installed it (I had to wipe and re-instal because I got hacked).
First of all, I have got apache up and running and it works fine if I enter my machines ip address in Internet Explorer/Firefox on another machine - but not when I enter http://linux/ Linux is the hostname of my linux box (at least thats what the command hostname tells me!) - but I doesn't seem to work. Any ideas?
Also, I used to be able to type ping ROBPC at the command line - which would ping the computer called ROBPC. Now that gives an error saying "Unknown host" but ping 192.168.0.4 (the computers IP) works fine.
I probably had these problems the first time I installed - and managed to sort them - I just can't remember how.
Thanks in advance
Robin
|
|
|
01-08-2005, 05:23 AM
|
#2
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
hi
u need to setup DNS or SNAT(not sure of it) for this
after all all how can other machines on ur network resolve UR name--->ipaddress???
regards
|
|
|
01-08-2005, 05:24 AM
|
#3
|
Member
Registered: Jul 2004
Posts: 48
Original Poster
Rep:
|
Right........but 1) How did it manage to work before and 2) How do I do that when I am using a router that uses DHCP?
Robin
|
|
|
01-08-2005, 05:38 AM
|
#4
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
one way it can work i think is
when u are a part of the same workgroup or domain
then u can access other machines with their hostname after they are cached by the machines i think
regards
|
|
|
01-08-2005, 05:39 AM
|
#5
|
Member
Registered: Jul 2004
Posts: 48
Original Poster
Rep:
|
I have made sure I am part of the same workgroup and domain as the other machines.
How do I make sure they cache me?
Robin
|
|
|
01-08-2005, 05:47 AM
|
#6
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
i believe u have configured samba
so what hostname of ur machine u see in ur workgroup/domain for ur machine??
regards
|
|
|
01-08-2005, 05:52 AM
|
#7
|
Member
Registered: Jul 2004
Posts: 48
Original Poster
Rep:
|
I have set samba up but can't seem to access my shares from my Windows machine.
The workgroup is set as home - which is the same as the workgroup for all my other computers.
Robin
|
|
|
01-08-2005, 06:05 AM
|
#8
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
i think that is the problem
haeb u set this option correclty in samba??
remote announce = 192.168.0.255 192.168.2.44
i have my network 192.168.0.0 so i have mentioned that
regards
|
|
|
01-08-2005, 06:08 AM
|
#9
|
Member
Registered: Jul 2004
Posts: 48
Original Poster
Rep:
|
I will try that.
I definitly didn't need that statement last time I installed.
What is the 192.168.2.44? Is that the IP of the machine I'm running the server on?
Robin
|
|
|
01-08-2005, 06:13 AM
|
#10
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
u can safely remove that 192.168.2 if ur network is different
the problem i think is that u can access from windows ur linux machine by IP address but not by hostname right???
|
|
|
01-08-2005, 06:19 AM
|
#11
|
Member
Registered: Jul 2004
Posts: 48
Original Poster
Rep:
|
Yep.
I can ping any other machine on my network (windows or linux) by its IP but not by its hostname - which leads me to suspect its not just samba at fault.
Samba doesn't seem to be working for accessing my linux shares from my windows machine. I have even copied over the config file from the backup of my old system and it still doesn't work!
Robin
|
|
|
01-08-2005, 06:22 AM
|
#12
|
Member
Registered: Jul 2004
Posts: 48
Original Poster
Rep:
|
I have just got samba working - the firewall was blocking the samba port!
Pinging machines via their IP address still won't work though!
Robin
|
|
|
01-08-2005, 06:23 AM
|
#13
|
Member
Registered: Jul 2004
Posts: 48
Original Poster
Rep:
|
P.S. Accessing the webserver via http://linux/ also works - but as I said - ping ROBPC doesn't!
Suprisingly smbclient -L ROBPC works - even though ping doesn't!
|
|
|
01-08-2005, 06:34 AM
|
#14
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
do u have any Firewall running???
|
|
|
01-08-2005, 07:39 AM
|
#15
|
Member
Registered: Jul 2004
Posts: 48
Original Poster
Rep:
|
I do have a firewall running on my linux box - but the ping doesn't work even if the firewall is completely off.
Robin
|
|
|
All times are GMT -5. The time now is 04:16 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|