Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
samba/network help, can't ping samba server
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Drewgrange
Guru
Guru


Joined: 29 Mar 2003
Posts: 483
Location: Ohio, US

PostPosted: Sat Apr 05, 2003 2:28 am    Post subject: samba/network help, can't ping samba server Reply with quote

my /etc/hosts file contains 192.168.0.2 (this computers IP)

When I try to ping my samba server

ping GentooLinuxServer
ping: unknown host GentooLinuxServer

I can ping localhost, 192.168.0.2 and my routers address, 192.168.0.1, but none of the other computers on the network.

I also can't see any of the other computers on the network using lisa, which I'm almost certain is configured correctly.
Back to top
View user's profile Send private message
Mpemba Effect
Apprentice
Apprentice


Joined: 18 Sep 2002
Posts: 156

PostPosted: Sat Apr 05, 2003 12:00 pm    Post subject: Reply with quote

How does your machine know that "GentooLinuxServer" is 192.168.0.2? The answer is .. it doesn't. You have to tell your machine that "GentooLinuxServer" resolves to 192.168.0.2 This is in your /etc/hosts file. Which you'll write

Code:
192.168.0.2       GentooLinuxServer
Back to top
View user's profile Send private message
Drewgrange
Guru
Guru


Joined: 29 Mar 2003
Posts: 483
Location: Ohio, US

PostPosted: Sat Apr 05, 2003 1:56 pm    Post subject: Reply with quote

Thanks! I can now ping that, and by adding my brothers laptop to /etc/hosts I can now ping that as well (but for some reason couldn't before, even by ip address?) Maybe its a deal with the firewall. And now I can see my own computer in smb://, which is progress :)

Should localhost be this computers ip address, or the routers address?
Back to top
View user's profile Send private message
Mpemba Effect
Apprentice
Apprentice


Joined: 18 Sep 2002
Posts: 156

PostPosted: Sat Apr 05, 2003 3:19 pm    Post subject: Reply with quote

localhost and also 127.0.0.1 are loopback IP's and is the IP address of the local machine. Example, pinging localhost or 127.0.0.1 is the same as pinging yourself. So obviously if your on 192.168.0.1 you'll be pinging 192.168.0.1 and if your on your brothers machine and typed it you'll be ping that :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum