Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
|
 |
11-05-2005, 05:33 AM
|
#1
|
LQ Newbie
Registered: Nov 2005
Posts: 19
Rep:
|
SAMBA configuration
hi,
i have posted this problem in over 10 different forums but no reply yet received. plz help me here. if i am not clear with what my problem is plz reply so that i can explain what else details are required.
my pc is connected in a LAN
recently i have started using Linux. i have configured my samba so that i can share my files.
My PC ip address is 10.100.96.44.
here is few lines from my samba conf file.
workgroup = MYGROUP
netbios name = MYPCNAME
i am able to access other PC's which are in my subnet (10.100.96.*) with the NETBIOS name but to access other PC's i should use their ip address (eg. 10.100.97.*)
Also PC's in my subnet can access my system with my NETBIOS name (MYPCNAME) but systems in other subnet can't.
when i was using windows i was able to access all PC's (regradless of which subnet they are in) with their netbios names.
our lan uses Dynamic IP addressing.
please can someone help me with what my smb.conf file should contain to access all PC's with their netbios names?
thank u
PS: when i enter ipconfig in windows i get the following details.
"
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix :
IP Address : 10.100.96.44
Subnet MAsk : 255.255.255.0
Default Gateway : 10.100.96.4
"
may be this would help in determining what my smb.conf should contain
- Fedora core 4 (64 bit)
- AMD 64
|
|
|
11-06-2005, 11:06 AM
|
#2
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
To communicate outside your local network or into another workgoup, you need a WINS server to resolve names to ip numbers.
Also, samba doesn't find/browse..
The smbclient & nmblookup programmes do this.
You can setup samba to be a wins server with the "wins support = yes" option,
then tell the dhcp server to supply a wins address to everybody.
|
|
|
11-06-2005, 11:29 AM
|
#3
|
LQ Newbie
Registered: Nov 2005
Posts: 19
Original Poster
Rep:
|
i have already enabled the wins support.
i am posting my smb.conf file here. please suggest necessary changes.
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2005/10/31 22:05:16
# Global parameters
[global]
workgroup = DA-IICT
netbios name = STEALTH
server string = AI inside I outside
log file = /var/log/samba/%m.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
hosts allow = 10.100.95. 10.100.96. 127.
dns proxy = No
wins support = yes
name resolve order = wins lmhosts hosts bcast
ldap ssl = no
winbind uid = 16777216-33554431
winbind gid = 16777216-33554431
cups options = raw
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
|
|
|
11-06-2005, 11:37 AM
|
#4
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
Just do the dhcp server additions to tell everyone to use the wins server..
|
|
|
11-06-2005, 05:38 PM
|
#5
|
LQ Newbie
Registered: Nov 2005
Posts: 19
Original Poster
Rep:
|
i am a newbie to linux so can you please tell me how to add that dhcp thing
|
|
|
11-06-2005, 11:14 PM
|
#6
|
Member
Registered: May 2004
Posts: 552
Rep:
|
Below is an example dhcpd (ISC) configuration file,
the line "option netbios-name-servers 192.168.77.1;"
is the one for WINS.
Code:
authoritative;
ddns-update-style ad-hoc;
default-lease-time 14400;
max-lease-time 172800;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.77.255;
option routers 192.168.77.1;
option domain-name-servers 192.168.77.1;
option netbios-name-servers 192.168.77.1;
option domain-name "foo.com";
subnet 192.168.77.0 netmask 255.255.255.0 {
range 192.168.77.128 192.168.77.254;
}
Last edited by randyding; 11-06-2005 at 11:17 PM.
|
|
|
11-07-2005, 06:04 AM
|
#7
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
That would depend on whether the network's dhcp server is Linux or a M$ variety..
Better to ask the network admin to make the changes..
|
|
|
11-07-2005, 09:47 AM
|
#8
|
LQ Newbie
Registered: Nov 2005
Posts: 19
Original Poster
Rep:
|
thnk u. i am on to it. will reply as soon as it gets over.
thanks again 4 ur help
|
|
|
11-08-2005, 11:35 AM
|
#9
|
Member
Registered: Oct 2003
Location: Karachi, PAKISTAN
Distribution: Redhat, Fedora, Open BSD, FreeBSD, SlackWare
Posts: 115
Rep:
|
what happen is your problem rectify???????
Reply. plzzz
Rizwan.
|
|
|
11-08-2005, 03:23 PM
|
#10
|
LQ Newbie
Registered: Nov 2005
Posts: 19
Original Poster
Rep:
|
hi rizwan
i kinda didnt try it out yet.
i learnt from my administrator that my sytem should act as a WINS server and others should connect to my PC while i forward my requests to the college WINS server.
so i didnt try out the dhcp thing.
|
|
|
All times are GMT -5. The time now is 09:10 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
|
|