LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 01-08-2005, 04:53 AM   #1
robintw
Member
 
Registered: Jul 2004
Posts: 48

Rep: Reputation: 15
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
 
Old 01-08-2005, 05:23 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
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
 
Old 01-08-2005, 05:24 AM   #3
robintw
Member
 
Registered: Jul 2004
Posts: 48

Original Poster
Rep: Reputation: 15
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
 
Old 01-08-2005, 05:38 AM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
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
 
Old 01-08-2005, 05:39 AM   #5
robintw
Member
 
Registered: Jul 2004
Posts: 48

Original Poster
Rep: Reputation: 15
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
 
Old 01-08-2005, 05:47 AM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
i believe u have configured samba
so what hostname of ur machine u see in ur workgroup/domain for ur machine??

regards
 
Old 01-08-2005, 05:52 AM   #7
robintw
Member
 
Registered: Jul 2004
Posts: 48

Original Poster
Rep: Reputation: 15
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
 
Old 01-08-2005, 06:05 AM   #8
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
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
 
Old 01-08-2005, 06:08 AM   #9
robintw
Member
 
Registered: Jul 2004
Posts: 48

Original Poster
Rep: Reputation: 15
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
 
Old 01-08-2005, 06:13 AM   #10
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
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???
 
Old 01-08-2005, 06:19 AM   #11
robintw
Member
 
Registered: Jul 2004
Posts: 48

Original Poster
Rep: Reputation: 15
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
 
Old 01-08-2005, 06:22 AM   #12
robintw
Member
 
Registered: Jul 2004
Posts: 48

Original Poster
Rep: Reputation: 15
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
 
Old 01-08-2005, 06:23 AM   #13
robintw
Member
 
Registered: Jul 2004
Posts: 48

Original Poster
Rep: Reputation: 15
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!
 
Old 01-08-2005, 06:34 AM   #14
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
do u have any Firewall running???
 
Old 01-08-2005, 07:39 AM   #15
robintw
Member
 
Registered: Jul 2004
Posts: 48

Original Poster
Rep: Reputation: 15
I do have a firewall running on my linux box - but the ping doesn't work even if the firewall is completely off.

Robin
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Firewall routing by hostname - possible? jread Linux - Networking 3 09-16-2005 11:34 AM
network/routing(?) problems jaleskin Linux - Networking 1 09-08-2003 11:47 AM
Redhat 8 Home network Problems bandit12 Linux - Newbie 4 03-03-2003 06:41 AM
Home Network Routing Problem? scobapro Linux - Networking 7 01-03-2003 02:10 PM
Redhat 7.3 and ADSL routing to home network, help required. Danners Linux - Networking 4 11-21-2002 04:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 04:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration