LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-15-2003, 11:21 AM   #1
deadlock
Member
 
Registered: Apr 2003
Distribution: Red Hat
Posts: 65

Rep: Reputation: 15
Winbind working, but cannot ping network


I have been setting up a Fedora box in preparation for using it as a PostgreSQL DB server on the company network.

So far I have got SAMBA and WINBIND working so that I can access the shared folders from anyone on the network. So far, so good.

What I cannot seem to do is see any of the machines on the network from the terminal.

System Menu/Network Servers works OK. The box is visible from Network Neighbourhood.

I just cannot ping/traceroute from the terminal.

We do not have an inhouse DNS, but the WINS server should be doing the job shouldnt it?

Samba has the WINS Server address registered.

Any help???

Dan
 
Old 12-15-2003, 11:39 AM   #2
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
Can you post your smb.conf?

Here is an article at onlamp...this may help somewhat.

http://www.onlamp.com/pub/a/onlamp/excerpt/samba_chap7/
 
Old 12-15-2003, 11:53 AM   #3
deadlock
Member
 
Registered: Apr 2003
Distribution: Red Hat
Posts: 65

Original Poster
Rep: Reputation: 15
Thanks

Here is the global section of the code - don't think the shares makes any difference:
Code:
[global]
	workgroup = MFP&MFA
	server string = postgres server
	security = DOMAIN
	password server = *
	log file = /var/log/samba/%m.log
	max log size = 50
	name resolve order = wins lmhosts bcast
	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
	os level = 0
	local master = No
	domain master = No
	dns proxy = No
	wins server = 193.112.230.238
	ldap ssl = no
	idmap uid = 10000-20000
	idmap gid = 10000-20000
	winbind separator = +
	winbind cache time = 10
	hosts allow = 193.112.230., 192.168.1., 192.168.2., 127.
Cheers

Dan
 
Old 12-15-2003, 12:25 PM   #4
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
Looks good. What about /etc/nsswitch.conf
 
Old 12-15-2003, 03:27 PM   #5
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
It sounds like you have two issues.
1) You cannot browse for computes from the linux box
2) You cannot ping

Question: Are you running any firewall?
What is the output from:
iptable -L -n;
netstat -r -n;
 
Old 12-16-2003, 03:01 AM   #6
deadlock
Member
 
Registered: Apr 2003
Distribution: Red Hat
Posts: 65

Original Poster
Rep: Reputation: 15
Browsing is OK I think - I can get to Windows PCs from "Network Servers" on the System Menu. although I do need to give a system password to open them (smbusers??)

iptables is not running at the moment as I am behind the corperate firewall and only using a test machine.

netstat gives :
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
193.112.230.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
0.0.0.0         193.112.230.3   0.0.0.0         UG        0 0          0 eth0
/etc/nsswitch.conf
Code:
passwd:     files winbind
shadow:     files
group:      files winbind
hosts:      files dns
bootparams: nisplus [NOTFOUND=return] files
ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files
netgroup:   files
publickey:  nisplus
automount:  files
aliases:    files nisplus
Thanks, Dan
 
Old 12-16-2003, 04:49 AM   #7
beyer42
Member
 
Registered: Dec 2003
Location: San Jose
Distribution: Redhat WS 3
Posts: 410

Rep: Reputation: 30
The route -n output looks good. verify that you can ping 193.112.230.3
and 193.112.230.238. Also run ifconfig to see if the interfaces are up.
try changing hosts entry in nsswitch.conf to files wins
taking out dns. if you do use a dns server then add a
nameserver entry in /etc/resolv.conf (man resolv.conf)

Hope this helps.
 
Old 12-16-2003, 05:50 AM   #8
deadlock
Member
 
Registered: Apr 2003
Distribution: Red Hat
Posts: 65

Original Poster
Rep: Reputation: 15
Thumbs up

Sorted.

Changing DNS for WINS in /etc/nsswitch./conf made the local servers appear, but unfortunately killed the internet connection, despite having resolv.conf properly setup.

However, adding WINS to the existing hosts line works. So the setting in nsswitch.conf is as follows:
Code:
hosts:      files wins dns
So thanks for all the help. Off now to play with postgres...

Dan
 
  


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
can ping network computer, cannot ping google.com (help needed) ben_build#2.1.0 Linux - Wireless Networking 23 11-07-2010 12:55 PM
winbind --with-winbind-auth-challenge paul_mat Linux - Networking 0 09-27-2005 01:19 AM
Can ping network but can't ping any internet ip when I hard set the ip Streme Linux - Wireless Networking 4 04-13-2004 09:18 AM
Ping not working??? talkinggoat Linux - Networking 1 01-02-2004 01:15 AM
ping not working in Man 9.0/9.1 CIO_BlackRainbo Linux - Distributions 2 06-23-2003 01:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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