• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[ungelöst] Internetzugang mit Linux-Rechner als Router

Einmal ping auf Ausgangsseite WIN-Client "ping 87.101.31.231".
Einmal ping auf GW "ping 87.101.31.1".
Einmal ping auf DNS-Server "ping 87.101.31.249".
 
Hm...

Code:
hinoarashi@ubuntu:~$ ping -c 1 87.101.31.231
PING 87.101.31.231 (87.101.31.231) 56(84) bytes of data.

--- 87.101.31.231 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms


hinoarashi@ubuntu:~$ ping -c 1 87.101.31.1
PING 87.101.31.1 (87.101.31.1) 56(84) bytes of data.

--- 87.101.31.1 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms


hinoarashi@ubuntu:~$ ping -c 1 87.101.31.249
PING 87.101.31.249 (87.101.31.249) 56(84) bytes of data.

--- 87.101.31.249 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
 

framp

Moderator
Teammitglied
So wie ich das sehe hast Du wohl den NameServer nicht richtig oder gar nicht gesetzt.

Hast Du mein obiges Posting (... Wenn es dann immer noch nicht geht poste mal auf phpci.com die Ausgabe von dem Script hier ausgeführt auf der LinuxBox ...) gelesen?
 
Nameserver war eingetragen.
Post hatte ich gelesen, aber da ging es ja noch um die andere Variante.

Code:
collectNWData.sh V0.6e-1
--- Welcher Netzwerkverbindungtyp soll getestet werden?
--- (2) Kabellose Verbindung (WLAN)
--- Welche Netzwerktopologie liegt vor?
--- (1) WLAN access point <---> LinuxClient
--- Auf welchem Rechner wird das Script ausgeführt?
--- (1) LinuxClient
!!! CND0180I: Das System kann die externe IP nicht 195.135.220.3 pingen
!!! CND0150E: Es könnte ein Problem mit der default gateway definition 192.168.0.1 am Interface eth1 vorliegen.
!!! CND0230W: IPV6 ist eingeschaltet.
--- 1 Fehler gefunden.
--- 1 Warnungen gefunden
==================================================================================================
==================================================================================================
*** uname -a 
Linux ubuntu 2.6.24-19-generic #1 SMP Wed Jun 18 14:43:41 UTC 2008 i686 GNU/Linux
==================================================================================================
*** cat /etc/SuSE-release 
cat: /etc/SuSE-release: No such file or directory
==================================================================================================
*** cat /etc/resolv.conf | /bin/grep -v "^#" | /bin/grep -v "^$" 
search mshome.net
nameserver 87.101.31.249
==================================================================================================
*** cat /etc/hosts | grep -v "^#" | /bin/grep -v "^$" | /bin/grep -v "::" 
127.0.0.1 localhost
127.0.1.1 ubuntu
==================================================================================================
*** cat /proc/sys/net/ipv4/ip_forward 
0
==================================================================================================
*** /sbin/iptables -t nat -L 
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination         

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
==================================================================================================
*** /sbin/route -n 
Kernel-IP-Routentabelle
Ziel            Router          Genmask         Flags Metric Ref    Use Iface
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth1
0.0.0.0         192.168.0.1     0.0.0.0         UG    100    0        0 eth1
==================================================================================================
*** /usr/sbin/arp -n 
Adresse Hardware-Typ Hardware-Adresse Optionen Maske Schnittstelle
192.168.0.1              ether   00:90:96:8F:33:80   C                     eth1
192.168.0.2              ether   00:1C:9A:11:91:7E   C                     eth1
==================================================================================================
*** /sbin/ifconfig 
eth0      Link encap:Ethernet  Hardware Adresse 00:00:f0:7b:3c:7d  
          UP BROADCAST MULTICAST  MTU:1500  Metrik:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:22 

eth1      Link encap:Ethernet  Hardware Adresse 00:15:00:11:29:ea  
          inet Adresse:192.168.0.3  Bcast:192.168.0.255  Maske:255.255.255.0
          inet6-Adresse: fe80::215:ff:fe11:29ea/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST MULTICAST  MTU:1500  Metrik:1
          RX packets:8098 errors:0 dropped:58 overruns:0 frame:0
          TX packets:166 errors:0 dropped:0 overruns:0 carrier:1
          Kollisionen:0 Sendewarteschlangenlänge:1000 
          RX bytes:345738 (337.6 KB)  TX bytes:119535 (116.7 KB)
          Interrupt:18 Basisadresse:0x6000 Speicher:c8000000-c8000fff 

lo        Link encap:Lokale Schleife  
          inet Adresse:127.0.0.1  Maske:255.0.0.0
          inet6-Adresse: ::1/128 Gültigkeitsbereich:Maschine
          UP LOOPBACK RUNNING  MTU:16436  Metrik:1
          RX packets:1496 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1496 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0 
          RX bytes:212851 (207.8 KB)  TX bytes:212851 (207.8 KB)

==================================================================================================
*** pingTests 
Ping of 195.135.220.3 failed
Ping of www.suse.de failed
==================================================================================================
*** /usr/bin/lspci -nn | /bin/egrep '(Ethernet|Network).*controller' 
06:05.0 Ethernet controller [0200]: Broadcom Corporation BCM4401-B0 100Base-TX [14e4:170c] (rev 02)
06:07.0 Network controller [0280]: Intel Corporation PRO/Wireless 2200BG Network Connection [8086:4220] (rev 05)
==================================================================================================
*** /usr/sbin/lsusb 
Bus 005 Device 001: ID 0000:0000  
Bus 004 Device 001: ID 0000:0000  
Bus 003 Device 001: ID 0000:0000  
Bus 002 Device 001: ID 0000:0000  
Bus 001 Device 001: ID 0000:0000  
==================================================================================================
*** /sbin/lsmod | /usr/bin/sort 
ac                      6916  0 
ac97_bus                3072  1 snd_ac97_codec
af_packet              23812  0 
agpgart                34760  2 drm,intel_agp
ata_generic             8324  0 
ata_piix               19588  8 
b44                    28432  0 
battery                14212  0 
bitblit                 6784  1 fbcon
bluetooth              61156  4 rfcomm,l2cap
button                  9232  0 
cdrom                  37408  1 sr_mod
container               5632  0 
cpufreq_conservative     8712  0 
cpufreq_ondemand        9740  1 
cpufreq_powersave       2688  0 
cpufreq_stats           7104  0 
cpufreq_userspace       5284  0 
dock                   11280  0 
drm                    82452  3 radeon
ehci_hcd               37900  0 
evdev                  13056  8 
ext3                  136712  1 
fan                     5636  0 
fat                    54556  1 vfat
fbcon                  42912  0 
font                    9472  1 fbcon
freq_table              5536  3 speedstep_centrino,cpufreq_stats,cpufreq_ondemand
fuse                   50580  3 
ieee1394               93752  2 sbp2,ohci1394
ieee80211              35528  1 ipw2200
ieee80211_crypt         7040  1 ieee80211
intel_agp              25492  0 
iptable_filter          3840  0 
iptable_nat             8324  0 
ip_tables              14820  2 iptable_nat,iptable_filter
ipv6                  267780  12 
ipw2200               146120  0 
isofs                  36388  1 
iTCO_vendor_support     4868  1 iTCO_wdt
iTCO_wdt               13092  0 
jbd                    48404  1 ext3
joydev                 13120  0 
l2cap                  25728  13 rfcomm
libata                159344  3 ata_piix,ata_generic,pata_acpi
loop                   18948  0 
lp                     12324  0 
mbcache                 9600  1 ext3
mii                     6400  1 b44
mmc_block              14980  0 
mmc_core               51460  2 mmc_block,sdhci
Module                  Size  Used by
nf_conntrack           66752  3 iptable_nat,nf_nat,nf_conntrack_ipv4
nf_conntrack_ipv4      19080  2 iptable_nat
nf_nat                 20396  1 iptable_nat
nls_cp437               6656  0 
nls_iso8859_1           4992  0 
ohci1394               33584  0 
output                  4736  1 video
parport                37832  3 ppdev,parport_pc,lp
parport_pc             36260  0 
pata_acpi               8320  0 
pci_hotplug            30880  1 shpchp
pcmcia                 40876  0 
pcmcia_core            40596  3 pcmcia,yenta_socket,rsrc_nonstatic
pcspkr                  4224  0 
ppdev                  10372  0 
processor              36872  2 thermal
psmouse                40336  0 
radeon                124192  2 
rfcomm                 41744  2 
rsrc_nonstatic         13696  1 yenta_socket
sbp2                   24072  0 
sbs                    15112  0 
sbshc                   7680  1 sbs
scsi_mod              151436  5 sbp2,sg,sr_mod,sd_mod,libata
sdhci                  19076  0 
sd_mod                 30720  8 
serio_raw               7940  0 
sg                     36880  0 
shpchp                 34452  0 
snd                    56996  17 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_dummy,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
snd_ac97_codec        101028  1 snd_intel8x0
snd_intel8x0           35356  3 
snd_mixer_oss          17920  1 snd_pcm_oss
snd_page_alloc         11400  2 snd_intel8x0,snd_pcm
snd_pcm                78596  3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_pcm_oss            42144  0 
snd_rawmidi            25760  1 snd_seq_midi
snd_seq                54224  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_seq_device          9612  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd_seq_dummy           4868  0 
snd_seq_midi            9376  0 
snd_seq_midi_event      8320  2 snd_seq_oss,snd_seq_midi
snd_seq_oss            35584  0 
snd_timer              24836  2 snd_pcm,snd_seq
softcursor              3072  1 bitblit
soundcore               8800  1 snd
speedstep_centrino      9152  0 
sr_mod                 17956  1 
ssb                    34308  1 b44
thermal                16796  0 
tileblit                3456  1 fbcon
udf                    88612  0 
uhci_hcd               27024  0 
usbcore               146028  3 ehci_hcd,uhci_hcd
vfat                   14464  0 
video                  19856  0 
xfs                   571416  5 
x_tables               16132  2 iptable_nat,ip_tables
yenta_socket           27276  1 
==================================================================================================
*** catMyConfig 
ls: Zugriff auf /etc/sysconfig/network/ifcfg-[earwd]* nicht möglich: No such file or directory
==================================================================================================
*** /sbin/iwconfig | /bin/sed "s/\(Encryption key:\)\([^o][^f][^f][^ ]*\)\(.*\)/\1@@ @@@-@@@@-@@@@-@@@@-@@@@-@@@@@@@\3/" 
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      IEEE 802.11b  ESSID:"Internet"  
          Mode:Ad-Hoc  Frequency:2.462 GHz  Cell: 86:60:5B:BC:A3:2D   
          Bit Rate:11 Mb/s   Tx-Power=20 dBm   Sensitivity=8/0  
          Retry limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=84/100  Signal level=-46 dBm  Noise level=-85 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:58   Missed beacon:0

==================================================================================================
*** /bin/grep -i radio /var/log/boot.msg | /usr/bin/tail -n 5 
/bin/grep: /var/log/boot.msg: No such file or directory
==================================================================================================
*** /bin/grep -i firmware /var/log/messages* | /usr/bin/tail -n 5 
/var/log/messages:Jul 22 20:32:39 ubuntu kernel: [   91.715110] ipw2200: Firmware error detected.  Restarting.
==================================================================================================
*** ls -ls /lib/firmware 
insgesamt 4
4 drwxr-xr-x 4 root root 4096 2008-07-21 15:16 2.6.24-19-generic
==================================================================================================
*** ps aux | /bin/grep wpa_supplicant | /bin/grep -v grep 
==================================================================================================
*** /bin/grep NETWORKMANAGER /etc/sysconfig/network/config | /bin/grep -v "^#" 
/bin/grep: /etc/sysconfig/network/config: No such file or directory
==================================================================================================
*** /bin/grep -i persistent /etc/sysconfig/network/config | /bin/grep -v "^#" | /bin/grep -v "^$" 
/bin/grep: /etc/sysconfig/network/config: No such file or directory
==================================================================================================
*** /bin/egrep 'eth|ath|wlan|ra' /etc/udev/rules.d/*net_persistent* /etc/udev/rules.d/70-persistent-net* | /bin/grep -v ":#" | grep -v ":$" 
/bin/egrep: /etc/udev/rules.d/*net_persistent*: No such file or directory
/etc/udev/rules.d/70-persistent-net.rules:SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:f0:7b:3c:7d", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
/etc/udev/rules.d/70-persistent-net.rules:SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:15:00:11:29:ea", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
==================================================================================================
*** /bin/egrep -r 'eth[0-10]|ath[0-10]|wlan[0-10]|ra[0-10]' /etc/modprobe.*|/bin/egrep -v '#|blacklist' 
==================================================================================================
*** detectFirmwareMessages 
Jul 22 20:32:39 ubuntu kernel: [   91.715110] ipw2200: Firmware error detected.  Restarting.
Jul 22 20:32:39 ubuntu kernel: [  199.036064] ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
Jul 22 20:32:45 ubuntu dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/eth1 for sub-path eth1.dbus.get.host_name
Jul 22 20:32:45 ubuntu dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/eth1 for sub-path eth1.dbus.get.nis_domain
Jul 22 20:32:45 ubuntu dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/eth1 for sub-path eth1.dbus.get.nis_servers
---------------------------------------------------------------------------
==================================================================================================
*** detectAPs 
ESSID:"Internet" Encryption key:off Quality=71/100 Signal level=-57 dBm
 

framp

Moderator
Teammitglied
Fein. Mit der Ausgabe kann man relativ schnell sehen was bei Dir los/configuriert ist.

1) Du hängst erfolgreich am AP
2) Du hast eine IP
3) Du hast einen DNS
4) Die default route stimmt
5) Du kannst nicht extern pingen :???:

Kannst Du mal die Ausgabe von
Code:
traceroute www.suse.de
posten?
 
Tja... Merkwürdige Situation hier...

Code:
traceroute to www.suse.de (195.135.220.3), 30 hops max, 40 byte packets
 1  192.168.0.1 (192.168.0.1)  1.337 ms  5.047 ms  5.649 ms
 2  host-87-101-21-1.proxnet.pl (87.101.21.1)  8.143 ms  8.752 ms  21.281 ms
 3  bgp-core.proxnet.pl (87.101.31.249)  498.209 ms  1001.894 ms  1225.373 ms
 4  host89251599.3s.pl (89.25.159.9)  501.923 ms * *
 5  * * *
 6  * xe-3-2-0.fra20.ip.tiscali.net (89.149.187.49)  303.846 ms xe-2-0-0.fra20.ip.tiscali.net (89.149.186.73)  105.960 ms
 7  xe-0-0-0-2.nbg10.core-backbone.com (77.67.64.102)  87.252 ms  87.841 ms  143.967 ms
 8  xe-0-0-0-0.nbg20.core-backbone.com (81.95.15.167)  144.678 ms  145.181 ms  145.659 ms
 9  suse-uplink.core-backbone.com (81.95.15.78)  146.422 ms *  147.171 ms
10  * * *
11  * * *
12  * * *
13  * * *
14  * * *
15  * * *
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *
 
framp schrieb:
Fein. Mit der Ausgabe kann man relativ schnell sehen was bei Dir los/configuriert ist.

1) Du hängst erfolgreich am AP
2) Du hast eine IP
3) Du hast einen DNS
4) Die default route stimmt
5) Du kannst nicht extern pingen
@framp Vielleicht sollte man sich die Beiträge mal genau durchlesen und nicht immer wieder von vorne anfangen! Da gab es schon die folgende Ausgabe:
Code:
hinoarashi@ubuntu:$ ping -c 1 www.heise.de
PING www.heise.de (193.99.144.85) 56(84) bytes of data.

--- www.heise.de ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
Mit ein bisschen Übung hätte man an der Ausgabe auch ohne Script erkannt das der Nameserver erreichbar ist, der Windows-Client mit NAT die DNS-Abfrage durchleitet, dafür auch die Wlan-Verbindung funktionieren muss und das ping nicht extern weitergeleitet wird.

Aber zurück zum eigentlichen Problem. Da ich deinen DNS-Server und GW anpingen kann, stelle ich erstmal fest das beide auf ein ping antworten. Da die Namensauflösung funktioniert muss NAT bzw Masquerading auf dem WIN-Client auch funktionieren, sonst hätte der DNS-Server die Antwort an das GW geschickt da die Zieladresse (192.168.0.3) in einem anderen Subnetz liegt und das GW hätte das Paket einfach verworfen, das er keine passende Route besitzt. Zweitens beiden Aufbauten
Netz<--->Win-Client<--->Linux und Netz<--->Linux<--->Win-Client
zeigen exakt das gleiche Fehlerbild. Damit schließe ich auch aus, das das Problem auf Firewall- oder Rounting-Einstellungen zurück zu führen ist. Es wäre ja denkbar, das bei Windows DNS-Abragen per Umleitung auf einen internen Proxy aufgelöst werden, aber NAT doch nicht aktiviert ist. Bei Linux hätte ein entsprechender DNS-Proxy aber manuell aufgesetzt werden müssen, um das gleich Fehlerbild zu erzeugen. Davon hättest du doch was erzählt?

Da bleibt eigentlich nur die Vermutung, das das Problem im externen Netz liegt. Vor sehr lange Zeit habe ich mal was von Filtern gehört, die trotz NAT verhindern können das mehrere Clients sich eine Internetleitung teilen. Irgendwo im Datenpakert soll selbst ein ping kleine Unterschiede je nach Betriebsystem oder Softwareversion haben. Auf dieser Ebene setzen diese Filter wahrscheinlich an.

Aber ehrlich gesagt mir fällt dazu wirklich nichts mehr ein, für weitere Diagnosen müsste man mit einem
Packet-Sniffer nachschauen ob die Pakete vom Win-Client wirklich geroutet werden und keine Antworten zurückkommen.
 
Ich habe auch schon gedacht, dass eventuell so ein Filter oder ähnliches vorliegen könnte, der die gemeinsame Internetnutzung verhindert.
Jedoch finde ich es sehr merkwürdig, dass es mit meinem SmartPhone (Nokia E65) problemlos funktioniert...

Naja, wenn euch noch was einfällt, ich bin ganz Ohr.
 
Hier steht:
*** /bin/grep -i firmware /var/log/messages* | /usr/bin/tail -n 5
/var/log/messages:Jul 22 20:32:39 ubuntu kernel: [ 91.715110] ipw2200: Firmware error detected. Restarting.

Hier sieht man den Fehler der ausgegeben wird. Die Firmware wird nicht richtig erkannt und darauf hin wird versucht dies neuzustarten.....

Alternativ kann man das auch mit NDISWRAPPER zum laufen bringen.....

Ach noch was:
*** /usr/sbin/lsusb
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

Kannst du mir verraten wieso das alles "nullen" sind...... :???:

LG SUSEDJAlex
 
SUSEDJAlex schrieb:
Hier steht:
*** /bin/grep -i firmware /var/log/messages* | /usr/bin/tail -n 5
/var/log/messages:Jul 22 20:32:39 ubuntu kernel: [ 91.715110] ipw2200: Firmware error detected. Restarting.

Hier sieht man den Fehler der ausgegeben wird. Die Firmware wird nicht richtig erkannt und darauf hin wird versucht dies neuzustarten.....

Alternativ kann man das auch mit NDISWRAPPER zum laufen bringen.....

Komisch nur das ich über's Netzwerk Daten tauschen konnte und nun hier über WLAN ins Netz kann.

SUSEDJAlex schrieb:
Ach noch was:
*** /usr/sbin/lsusb
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

Kannst du mir verraten wieso das alles "nullen" sind...... :???:

LG SUSEDJAlex

Wenn nichts angeschlossen ist, werden eben nullen dargestellt, klingt für mich sinnvoll.
 
Oben