Networking Forums

Networking Forums > Computer Networking > Linux Networking > smb question

Reply
 
 
John Thomas Langton
Guest
Posts: n/a

 
      10-16-2003, 07:44 PM
So, I've got samba and debian and everything is working fine, but the
linux machine doesn't resolve windows names. I can use the smbclient
to access windows shares, but I just want to make sure I understand
this.

When I'm at my linux machine and to >ping "machinename" it says server
not found (although it can find the IP address). So, is there a way
to remedy this or is it that Windows uses their own name resolution
stuff and I just always have to use smbclient if I want to access a
windows machine from linux?

please respond to my email address: (E-Mail Removed)

thanks,
John
 
Reply With Quote
 
 
 
 
Allan Bruce
Guest
Posts: n/a

 
      10-16-2003, 10:05 PM

"John Thomas Langton" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> So, I've got samba and debian and everything is working fine, but the
> linux machine doesn't resolve windows names. I can use the smbclient
> to access windows shares, but I just want to make sure I understand
> this.
>
> When I'm at my linux machine and to >ping "machinename" it says server
> not found (although it can find the IP address). So, is there a way
> to remedy this or is it that Windows uses their own name resolution
> stuff and I just always have to use smbclient if I want to access a
> windows machine from linux?
>
> please respond to my email address: (E-Mail Removed)
>
> thanks,
> John


post to the group, reply to the group.

You need to add your windows machine(s) to the /etc/hosts file

HTH
Allan


 
Reply With Quote
 
Thorg Thorgussonne
Guest
Posts: n/a

 
      10-19-2003, 02:19 PM
On Thu, 16 Oct 2003 23:05:07 +0100, Allan Bruce wrote:

>
> "John Thomas Langton" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed) om...
>> So, I've got samba and debian and everything is working fine, but the
>> linux machine doesn't resolve windows names. I can use the smbclient
>> to access windows shares, but I just want to make sure I understand
>> this.
>>
>> When I'm at my linux machine and to >ping "machinename" it says server
>> not found (although it can find the IP address). So, is there a way
>> to remedy this or is it that Windows uses their own name resolution
>> stuff and I just always have to use smbclient if I want to access a
>> windows machine from linux?
>>
>> please respond to my email address: (E-Mail Removed)
>>
>> thanks,
>> John

>
> post to the group, reply to the group.
>
> You need to add your windows machine(s) to the /etc/hosts file
>
> HTH
> Allan


Is there a command line command which will detect and list various
machines on the network? I have my machine (Linux), 5 XP machines, 2 BeOS
boxes and 3 Apple PPCs (YD Linux). For some reason Lisa isn't working,
but that I think is a separate issue.

TIA

 
Reply With Quote
 
Allan Bruce
Guest
Posts: n/a

 
      10-19-2003, 04:15 PM

"Thorg Thorgussonne" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) s.com...
> On Thu, 16 Oct 2003 23:05:07 +0100, Allan Bruce wrote:
>
> >
> > "John Thomas Langton" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed) om...
> >> So, I've got samba and debian and everything is working fine, but the
> >> linux machine doesn't resolve windows names. I can use the smbclient
> >> to access windows shares, but I just want to make sure I understand
> >> this.
> >>
> >> When I'm at my linux machine and to >ping "machinename" it says server
> >> not found (although it can find the IP address). So, is there a way
> >> to remedy this or is it that Windows uses their own name resolution
> >> stuff and I just always have to use smbclient if I want to access a
> >> windows machine from linux?
> >>
> >> please respond to my email address: (E-Mail Removed)
> >>
> >> thanks,
> >> John

> >
> > post to the group, reply to the group.
> >
> > You need to add your windows machine(s) to the /etc/hosts file
> >
> > HTH
> > Allan

>
> Is there a command line command which will detect and list various
> machines on the network? I have my machine (Linux), 5 XP machines, 2 BeOS
> boxes and 3 Apple PPCs (YD Linux). For some reason Lisa isn't working,
> but that I think is a separate issue.
>
> TIA
>


You could ping your subnet, e.g. 192.168.0.255 and use a packet tracer to
see which replies come back, e.g. tcpdump, ethereal etc.
HTH
Allan


 
Reply With Quote
 
John Thomas Langton
Guest
Posts: n/a

 
      10-20-2003, 07:10 PM
"Allan Bruce" <(E-Mail Removed)> wrote in message news:<bmn4kp$nr0$(E-Mail Removed)>...
> "John Thomas Langton" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed) om...
> > So, I've got samba and debian and everything is working fine, but the
> > linux machine doesn't resolve windows names. I can use the smbclient
> > to access windows shares, but I just want to make sure I understand
> > this.
> >
> > When I'm at my linux machine and to >ping "machinename" it says server
> > not found (although it can find the IP address). So, is there a way
> > to remedy this or is it that Windows uses their own name resolution
> > stuff and I just always have to use smbclient if I want to access a
> > windows machine from linux?
> >
> > please respond to my email address: (E-Mail Removed)
> >
> > thanks,
> > John

>
> post to the group, reply to the group.
>
> You need to add your windows machine(s) to the /etc/hosts file
>
> HTH
> Allan


Thanks. The only problem I see with that is my network is using dhcp
thus the machines have changing ip addresses. I think in the
etc/hosts file you have to specify the ip thus I'd be updating this
file everyday. Let me know if you have any other ideas.

Also, if you could point me to a resource that might be able to point
out the difference between networking with windows and linus (i.e. why
linux would automatically see another linux machine but not a windows
machine...or is that the case?)

thanks,
John
 
Reply With Quote
 
Allan Bruce
Guest
Posts: n/a

 
      10-20-2003, 10:28 PM

"John Thomas Langton" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> "Allan Bruce" <(E-Mail Removed)> wrote in message

news:<bmn4kp$nr0$(E-Mail Removed)>...
> > "John Thomas Langton" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed) om...
> > > So, I've got samba and debian and everything is working fine, but the
> > > linux machine doesn't resolve windows names. I can use the smbclient
> > > to access windows shares, but I just want to make sure I understand
> > > this.
> > >
> > > When I'm at my linux machine and to >ping "machinename" it says server
> > > not found (although it can find the IP address). So, is there a way
> > > to remedy this or is it that Windows uses their own name resolution
> > > stuff and I just always have to use smbclient if I want to access a
> > > windows machine from linux?
> > >
> > > please respond to my email address: (E-Mail Removed)
> > >
> > > thanks,
> > > John

> >
> > post to the group, reply to the group.
> >
> > You need to add your windows machine(s) to the /etc/hosts file
> >
> > HTH
> > Allan

>
> Thanks. The only problem I see with that is my network is using dhcp
> thus the machines have changing ip addresses. I think in the
> etc/hosts file you have to specify the ip thus I'd be updating this
> file everyday. Let me know if you have any other ideas.


In that case, what is acting as your dhcp server? This could be resolved by
making lookups to the dhcp server, or by setting up a dns server (a bit
overkill perhaps)

>
> Also, if you could point me to a resource that might be able to point
> out the difference between networking with windows and linus (i.e. why
> linux would automatically see another linux machine but not a windows
> machine...or is that the case?)
>


Not sure of any off-hand, lookup wins resolution in google for the windows
side. Both machines handle networking similarly, just with some subtle
differences. The name resolution should be an easy problem to solve, can I
ask why you are using dhcp? I have found it a lot easier to allocate static
IPs and this will solve your hostname problem.
Allan


 
Reply With Quote
 
James Knott
Guest
Posts: n/a

 
      10-21-2003, 01:08 AM
John Thomas Langton wrote:

> Thanks. The only problem I see with that is my network is using dhcp
> thus the machines have changing ip addresses. I think in the
> etc/hosts file you have to specify the ip thus I'd be updating this
> file everyday. Let me know if you have any other ideas.
>


If the dhcp server is within your control, you could try setting very long
or even permanent leases.

> Also, if you could point me to a resource that might be able to point
> out the difference between networking with windows and linus (i.e. why
> linux would automatically see another linux machine but not a windows
> machine...or is that the case?)
>


We need some more info here, protocol, domain, workgroup etc.

--

Fundamentalism is fundamentally wrong.

To reply to this message, replace everything to the left of "@" with
james.knott.
 
Reply With Quote
 
Sachin
Guest
Posts: n/a

 
      10-21-2003, 12:02 PM
Try to make entry according to the mac address so that each clients

so both the problem of dhcp and hosts entry will work

try to add entry of each machine in the host file of linux, windows etc
 
Reply With Quote
 
John Thomas Langton
Guest
Posts: n/a

 
      10-23-2003, 11:13 PM
"Allan Bruce" <(E-Mail Removed)> wrote in message news:<bn1nfq$aa5$(E-Mail Removed)>...
> "John Thomas Langton" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed) om...
> > "Allan Bruce" <(E-Mail Removed)> wrote in message

> news:<bmn4kp$nr0$(E-Mail Removed)>...
> > > "John Thomas Langton" <(E-Mail Removed)> wrote in message
> > > news:(E-Mail Removed) om...
> > > > So, I've got samba and debian and everything is working fine, but the
> > > > linux machine doesn't resolve windows names. I can use the smbclient
> > > > to access windows shares, but I just want to make sure I understand
> > > > this.
> > > >
> > > > When I'm at my linux machine and to >ping "machinename" it says server
> > > > not found (although it can find the IP address). So, is there a way
> > > > to remedy this or is it that Windows uses their own name resolution
> > > > stuff and I just always have to use smbclient if I want to access a
> > > > windows machine from linux?
> > > >
> > > > please respond to my email address: (E-Mail Removed)
> > > >
> > > > thanks,
> > > > John
> > >
> > > post to the group, reply to the group.
> > >
> > > You need to add your windows machine(s) to the /etc/hosts file
> > >
> > > HTH
> > > Allan

> >
> > Thanks. The only problem I see with that is my network is using dhcp
> > thus the machines have changing ip addresses. I think in the
> > etc/hosts file you have to specify the ip thus I'd be updating this
> > file everyday. Let me know if you have any other ideas.

>
> In that case, what is acting as your dhcp server? This could be resolved by
> making lookups to the dhcp server, or by setting up a dns server (a bit
> overkill perhaps)
>
> >
> > Also, if you could point me to a resource that might be able to point
> > out the difference between networking with windows and linus (i.e. why
> > linux would automatically see another linux machine but not a windows
> > machine...or is that the case?)
> >

>
> Not sure of any off-hand, lookup wins resolution in google for the windows
> side. Both machines handle networking similarly, just with some subtle
> differences. The name resolution should be an easy problem to solve, can I
> ask why you are using dhcp? I have found it a lot easier to allocate static
> IPs and this will solve your hostname problem.
> Allan


Thanks very much for everyone's feedback and help!

Alan, could you point me to what I should look at for making lookups
to the dhcp server? Right now I'm using a linksys router, so that
might pose problems.
I use dhcp because my network is always changing, people show up with
laptops and wirelessly connect.

I think DNS would be overkill, although educational. I might try the
mac adresses in the hosts file as well, although I've never heard of
that.

From my reading thus far (and please correct me if I'm wrong), windows
networking is different from linux in that it is based on an archaic
protocol started by IBM called NetBIOS. Everyone has wanted to be
compatable, and so though the hardware it was written for is no
longer, the protocol remains. WINS is for inter-subnet negotiation of
the protocol. SMB is just for one subnet. And I don't think linux
uses this at all, that's why you have to download samba to do windows
networking. I think linux has no abstraction above tcp/ip, so you can
use dns, or something like ssh, but there is no "network neighborhood"
like thing for linux.

Again, please correct me if I'm wrong.

thanks,
John
 
Reply With Quote
 
John Thomas Langton
Guest
Posts: n/a

 
      10-23-2003, 11:23 PM
James Knott <(E-Mail Removed)> wrote in message news:<lG%kb.417740$(E-Mail Removed) .cable.rogers.com>...
> John Thomas Langton wrote:
>
> > Thanks. The only problem I see with that is my network is using dhcp
> > thus the machines have changing ip addresses. I think in the
> > etc/hosts file you have to specify the ip thus I'd be updating this
> > file everyday. Let me know if you have any other ideas.
> >

>
> If the dhcp server is within your control, you could try setting very long
> or even permanent leases.
>
> > Also, if you could point me to a resource that might be able to point
> > out the difference between networking with windows and linus (i.e. why
> > linux would automatically see another linux machine but not a windows
> > machine...or is that the case?)
> >

>
> We need some more info here, protocol, domain, workgroup etc.


Sorry. I was talking about a few windows machines sharing a
workgroup, with no domain controller. My last post about the
differences between linux networking and windows networking (that I
have recently learned) are most relevant for that kind of setup. I
think the differences are similar for a domain but am not sure of the
details. Please correct me if I'm wrong, and feel free to add info.

thanks
John
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Skip the PW question: I got that, question now about "Home" Tim Wilson Network Routers 1 12-31-2005 04:01 AM
Switch Question - restate previous question w/no subject SEAN J Windows Networking 2 11-30-2005 02:42 PM
Dell 2300 TrueMobile router question/ general wireless question Craig Wireless Internet 2 01-11-2004 06:26 PM



1 2 3 4 5 6 7 8 9 10 11