LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-09-2005, 11:48 AM   #1
K_smolka
LQ Newbie
 
Registered: Mar 2004
Location: UK
Distribution: red hat 9.0
Posts: 19

Rep: Reputation: 0
hosts probs on Samba,


Somebody please help me before i stangle that bloody penguin!!!

Been working on setting up samba on my local lan. I have been reading a few step by step guides etc.

I can currently see my linux box from windows but i am unable to access it. I get a message saying network path not found.

One guide suggested i need to configure my etc/host file.

Could some one explain how to do this, ie do i need to add new host for each pc on the network and if so do i just use the pcs Ip address.
Could some one explain what this does!

Getting fustrated so any help would be most appreciated.

working with fedora redhat

thanks in advance

karl
 
Old 05-09-2005, 11:59 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,213

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
I'm not sure what /etc/hosts has to do with yoru problems, but it is easy enough to configure. It is a plain text file. Add the IP addresses and names of the hosts on your local lan, with a plain text editor. Her is mine as an example.

127.0.0.1 localhost
192.168.1.13 sluggy
192.168.1.11 mrburnie
192.168.1.15 snail
192.168.1.14 presto
192.168.1.12 drt_esa_princ_1

This file saves you from remembering the IP addresses of each box. For example, you could ping 192.168.1.11 -or- ping mrburnie. Either will work now on my lan.

I had trouble with Win XP home (broken version). I had to do some looking around on Microshats web to find a fix. I now have XP W98 sharing files.
 
Old 05-09-2005, 12:20 PM   #3
K_smolka
LQ Newbie
 
Registered: Mar 2004
Location: UK
Distribution: red hat 9.0
Posts: 19

Original Poster
Rep: Reputation: 0
i assume these are local ip address. One question dont local ip address change when you log on and off the network etc.

i have the list of local ip address
such as

192.168.1.101

if i am wrong what ip address do i want

thanks for your help its most appreciated

karl
 
Old 05-09-2005, 06:56 PM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,213

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Quote:
One question dont local ip address change when you log on and off the network etc.
Local addresses only change if you have a DHCP server assigning IP addresses. Routers can be configured to be DHCP servers, or you can configure a linux box to be a DHCP server. The lan will work with a DHCP server or you can assign IP addresses. I'm running DHCP, and my router is the server. It usually assigns the same IP address to the same MAC address, but there are no guarantees. The advantage to DHCP is, if you are plugging in different machines to a lan, the user doesn't have to know and assign an IP address to get it working. The new box will make a DHCP request, and the server assigns an available IP address.

It may be easier for you if the number of machines is small, and not changing to assign the IP addresses manually. That will get rid of the guess work until you resolve any other issues.

In linux, the easiest?? way to tell what your IP address is; at a console type /sbin/ifconfig example:

$ /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 000:B7:26:B3:78
inet addr:192.168.1.13 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2d0:b7ff:fe26:b378/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:314 errors:0 dropped:0 overruns:0 frame:0
TX packets:696 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:152306 (148.7 Kb) TX bytes:88023 (85.9 Kb)
Interrupt:11 Base address:0xe000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:185 errors:0 dropped:0 overruns:0 frame:0
TX packets:185 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:17448 (17.0 Kb) TX bytes:17448 (17.0 Kb)

The MAC address is the field HWaddr. This is burned into the card by the manufacturer. The field inet addr is the IP address my machine is currently using.

Hope this helps.
 
  


Reply



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
/etc/hosts, /etc/resolve.conf and /etc/host.conf config probs below_average Linux - Networking 1 12-08-2004 10:07 PM
Question about /etc/hosts and Samba gvaught Linux - Networking 12 12-17-2003 02:53 PM
127.0.0.1 Entry in Zone file and /etc/hosts, will this cause probs? mikeyt_333 Linux - Networking 7 12-02-2003 02:51 PM
More Samba probs... ziggamon Linux - Networking 24 06-26-2003 12:08 PM
samba-hosts allow problem? fowlerlfc Linux - Networking 2 07-09-2002 01:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:25 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