PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : nmblookup funktioniert aber ping nicht



waxolunist
04.07.06, 21:42
Hallo

Ein kleines Beispiel:
Ich habe 2 Linuxrecher. Auf beiden läuft Samba, einer ist der Master (Roland). Der andere heißt Mordred. Auf beiden funktioniert nmblookup und ich kann auf die Freigaben zugreifen. Beide sind in derselben Arbeitsgruppe, bei beiden ist die Firewall ausgeschaltet. Mache ich jedoch ein ping Mordred von Roland aus, bzw. umgekehrt, kommt ein unknown host zurück. Was muss ich tun, damit das auch funktioniert. Von einem anderen WindowsPC aus funktionierts übrigens.

Wenn jemand irgendwelche confs benötigt um mir zu helfen, dieses Problem zu lösen, so kommen die sofort. Aber ich denke, das dürfte nur ein Eintrag irgendwo sein, weiß aber nicht wo.

In der smb.conf auf Roland habe ich folgendes eingetragen:


wins support = Yes
name resolve order = lmhosts host wins bcast
winbind separator = /


Bitte um Hilfe.

mfg, Christian

kreol
04.07.06, 21:45
Wie lautet denn Dein Ping? Mit IP oder Rechnername? Poste die Fehlermeldung doch einfach im Wortlaut, am besten mit dem Befehl...

Schau auch mal in die /etc/hosts, ob die Rechner dort eingetragen sind.


Kreol

waxolunist
04.07.06, 21:54
Roland:~ # ping mordred
ping: unknown host mordred
Roland:~ # nmblookup mordred
querying mordred on 192.168.1.255
192.168.1.8 mordred<00>
Roland:~ # ping 192.168.1.8
PING 192.168.1.8 (192.168.1.8) 56(84) bytes of data.
64 bytes from 192.168.1.8: icmp_seq=1 ttl=64 time=0.277 ms
64 bytes from 192.168.1.8: icmp_seq=2 ttl=64 time=0.246 ms

--- 192.168.1.8 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.246/0.261/0.277/0.022 ms
Roland:~ #


In die Datei /etc/hosts will ich es eben nicht eintragen. Ich möchte dass er die Namensauflösung über einen Broadcast oder halt irgendwie mit nmbd macht. Unter Windows gehts ja auch ohne einen Eintrag in %WIN%/system32/driver/etc/hosts.

Gibts da eine nette Möglichkeit.

mfg, Christian

emba
05.07.06, 07:43
du könntest das mal probieren - weiß aber nicht, ob die wins_lib auch broadcasts unterstützt, wenn kein wins server eingetragen/erreichbar -> testen

greez

waxolunist
05.07.06, 08:03
Entschuldigung, ich werd jetzt nicht ganz schlau aus deinem Post. Das ist eben genau meine Frage, wo muss ich was eintragen, damit er die Namensauflösung via broadcast am Server (Roland) und der andere Rechner (Mordred) den Roland als WINS benutzt.

Herumprobiert und gegoogelt und die SuFu benutzt habe ich schon. Mir fehlt aber glaub ich eben der letzte Schritt.

emba
05.07.06, 09:51
http://de.samba.org/samba/docs/man/Samba3-HOWTO/integrate-ms-networks.html (NSS und wins abschnitt ist interessant für dich)

greez

waxolunist
05.07.06, 12:07
Also folgendes war nötig:

Eintrag in der /etc/nsswitch.conf

hosts: files dns wins

Eintrag in /etc/samba/smb.conf am Server (Roland)


wins support = Yes #auf den anderen No
name resolve order = lmhosts host wins bcast
wins server = 192.168.1.13
wins proxy = No
dns proxy = Yes


Danach musste ich allerdings neu starten da ein restart von smbd und nmbd nicht geholfen hat.

Welcher Prozess ist denn dafür eigentlich verantworlich? Hier meine Prozessliste:


UID PID PPID C STIME TTY TIME CMD
root 1 0 0 12:26 ? 00:00:02 init [5]
root 2 1 0 12:27 ? 00:00:00 [migration/0]
root 3 1 0 12:27 ? 00:00:00 [ksoftirqd/0]
root 4 1 0 12:27 ? 00:00:00 [events/0]
root 5 1 0 12:27 ? 00:00:00 [khelper]
root 6 1 0 12:27 ? 00:00:00 [kthread]
root 8 6 0 12:27 ? 00:00:00 [kblockd/0]
root 35 1 0 12:27 ? 00:00:00 [kapmd]
root 53 6 0 12:27 ? 00:00:00 [pdflush]
root 54 6 0 12:27 ? 00:00:00 [pdflush]
root 56 6 0 12:27 ? 00:00:00 [aio/0]
root 55 1 0 12:27 ? 00:00:00 [kswapd0]
root 262 6 0 12:27 ? 00:00:00 [cqueue/0]
root 263 6 0 12:27 ? 00:00:00 [kseriod]
root 301 6 0 12:27 ? 00:00:00 [kpsmoused]
root 688 6 0 12:27 ? 00:00:00 [reiserfs/0]
root 764 1 0 12:27 ? 00:00:03 /sbin/udevd --daemon
root 1183 6 0 12:27 ? 00:00:00 [khubd]
root 1187 1 0 12:27 ? 00:00:00 [shpchpd_event]
root 1852 1 0 12:27 ? 00:00:00 /sbin/syslog-ng
root 1855 1 0 12:27 ? 00:00:00 /sbin/klogd -c 1 -x -x
100 1888 1 0 12:27 ? 00:00:00 /usr/bin/dbus-daemon --system
root 1893 1 0 12:27 ? 00:00:00 /sbin/resmgrd
root 1913 1 0 12:27 ? 00:00:03 /usr/sbin/hald --daemon=yes --re
root 2335 1913 0 12:27 ? 00:00:02 hald-addon-storage
root 2513 1 0 12:27 ? 00:00:00 /sbin/dhcpcd -C -H -D -K -N -t 9
mdnsd 2642 1 0 12:27 ? 00:00:00 /usr/sbin/mdnsd -f /etc/nss_mdns
root 2693 6 0 12:27 ? 00:00:00 [kauditd]
root 2707 1 0 12:27 ? 00:00:00 /sbin/auditd
root 2723 1 0 12:27 ? 00:00:00 /usr/sbin/nmbd -D -s /etc/samba/
root 2724 2723 0 12:27 ? 00:00:00 /usr/sbin/nmbd -D -s /etc/samba/
nobody 2730 1 0 12:27 ? 00:00:00 /sbin/portmap
root 2924 1 0 12:27 ? 00:00:00 /usr/sbin/powersaved -d -v 3
root 2970 1 0 12:27 ? 00:00:00 /usr/sbin/vsftpd
root 2978 1 0 12:27 ? 00:00:00 /usr/sbin/smbd -D -s /etc/samba/
root 2981 1 0 12:27 ? 00:00:00 /usr/sbin/sshd -o PidFile=/var/r
lp 2999 1 0 12:27 ? 00:00:01 /usr/sbin/cupsd
root 3001 2978 0 12:27 ? 00:00:00 /usr/sbin/smbd -D -s /etc/samba/
root 3005 1 0 12:28 ? 00:00:00 /opt/gnome/sbin/gdm
root 3012 1 0 12:28 ? 00:00:00 startpar -f -- xdm
ntp 3023 1 0 12:28 ? 00:00:00 /usr/sbin/ntpd -p /var/lib/ntp/v
root 3030 3005 0 12:28 ? 00:00:00 /opt/gnome/sbin/gdm
root 3033 3030 0 12:28 tty7 00:00:06 /usr/X11R6/bin/X :0 -audit 0 -au
root 3044 1 0 12:28 ? 00:00:00 /usr/sbin/nscd
root 3127 1 0 12:28 ? 00:00:00 /usr/lib/postfix/master
postfix 3137 3127 0 12:28 ? 00:00:00 pickup -l -t fifo -u
postfix 3138 3127 0 12:28 ? 00:00:00 qmgr -l -t fifo -u
root 3188 1 0 12:28 ? 00:00:00 /usr/sbin/cron
sterzl_c 3208 3030 0 12:28 ? 00:00:01 /opt/gnome/bin/gnome-session
root 3232 1 0 12:28 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc
wwwrun 3235 3232 0 12:28 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc
wwwrun 3236 3232 0 12:28 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc
wwwrun 3237 3232 0 12:28 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc
wwwrun 3238 3232 0 12:28 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc
wwwrun 3239 3232 0 12:28 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc
sterzl_c 3345 1 0 12:28 ? 00:00:00 dbus-daemon --fork --print-pid 8
sterzl_c 3346 1 0 12:28 ? 00:00:00 /usr/bin/dbus-launch --sh-syntax
sterzl_c 3351 1 0 12:28 ? 00:00:03 /opt/gnome/lib/GConf/2/gconfd-2
root 3432 1 0 12:28 tty1 00:00:00 /sbin/mingetty --noclear tty1
root 3433 1 0 12:28 tty2 00:00:00 /sbin/mingetty tty2
root 3434 1 0 12:28 tty3 00:00:00 /sbin/mingetty tty3
root 3435 1 0 12:28 tty4 00:00:00 /sbin/mingetty tty4
root 3436 1 0 12:28 tty5 00:00:00 /sbin/mingetty tty5
root 3437 1 0 12:28 tty6 00:00:00 /sbin/mingetty tty6
sterzl_c 3470 1 0 12:28 ? 00:00:00 /opt/gnome/bin/gnome-keyring-dae
sterzl_c 3472 1 0 12:28 ? 00:00:00 /opt/gnome/lib/bonobo/bonobo-act
sterzl_c 3474 1 0 12:28 ? 00:00:01 /opt/gnome/lib/control-center-2.
sterzl_c 3481 1 0 12:28 ? 00:00:00 /opt/gnome/bin/metacity --sm-cli
sterzl_c 3494 1 0 12:28 ? 00:00:03 gnome-panel --sm-client-id defau
sterzl_c 3496 1 0 12:28 ? 00:00:08 nautilus --no-default-window --s
sterzl_c 3501 1 0 12:28 ? 00:00:00 /opt/gnome/sbin/gnome-vfs-daemon
sterzl_c 3503 1 0 12:28 ? 00:00:00 resapplet
sterzl_c 3512 1 0 12:28 ? 00:00:00 nm-applet
sterzl_c 3513 1 0 12:28 ? 00:00:00 gnome-volume-manager --sm-disabl
sterzl_c 3514 1 0 12:28 ? 00:00:00 gnome-power-manager --sm-disable
sterzl_c 3516 1 0 12:28 ? 00:00:01 /opt/gnome/lib/gnome-applets/gno
sterzl_c 3530 1 0 12:29 ? 00:00:00 gnome-screensaver
root 2675 1 0 12:28 ? 00:00:18 zmd /usr/lib/zmd/zmd.exe --sleep
wwwrun 3872 3232 0 12:47 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc
root 3927 2981 0 13:01 ? 00:00:00 sshd: root@pts/0
root 3930 3927 0 13:01 pts/0 00:00:00 -bash
root 3978 3930 0 13:04 pts/0 00:00:00 ps -ef


Ist es dieser: /usr/sbin/nscd
oder dieser: /usr/sbin/mdnsd -f /etc/nss_mdns