Re: Kann lokale IP von em0 nicht pingen

From: Matthias Fechner <idefix(at)fechner.net>
Date: Sun, 23 Nov 2014 19:51:13 +0100

Hallo Gerhard und Lars,

Am 20.11.2014 09:20, schrieb Gerhard Brauer:
> Dann würde ich mir nochmal das Routing vornehmen, in Vergleich zu
> den Maschinen, bei denen es funktioniert.
> Schalter -r umgeht ja die Routingtabelle, mit -S im Prinzip auch
> (Fixierung auf eine NIC). Du hast IMHO keine Defaultroute gesetzt,
> wenn ich mich an deine Routingtabelle erinnere...

Hier nochmal die komplette Routing Tabelle:

Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.1.1 UGS 0 27876503 re0
127.0.0.1 link#3 UH 0 3737800 lo0
192.168.0.0/24 link#1 U 0 58759800 em0
192.168.0.251 link#1 UHS 0 2110828 lo0
192.168.1.0/24 link#2 U 0 169306 re0
192.168.1.2 link#2 UHS 0 0 lo0
192.168.200.1/32 192.168.200.5 UGS 0 14677 tun5
192.168.200.5 link#5 UH 0 0 tun5
192.168.200.6 link#5 UHS 0 0 lo0

> Schwer zu sagen, v.a. wenn es "nur" ICMP betrifft. Ich würde wohl
> mit tcpdump einen Dump ziehen und z.B. mit Wireshark schauen, welche
> der Karten, Protokollstacks,... denn nun bei einem Fehlschlag
> wirklich gefragt werden.

Ich habe die Firewall (pf) mit pfctl -d deaktiviert um sicher zu gehen,
das es nicht eine Regel ist, die ICMP blockt. Ich habe da keine drin,
aber nur um sicher zu sein. Standard bei pf ist ja sowieso alles durch
lassen.

Ping auf 192.168.0.251 geht nicht.
ssh auf 192.168.0.251 klappt.
telnet 192.168.0.251 80 klappt.

ping auf der zweiten Netzwerkkarte 192.168.1.2 klappt ohne Probleme.

Die beiden Netzwerkkarten sehen folgendermaßen aus:
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500

options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO>
        ether 00:1b:21:7b:34:68
        inet 192.168.0.251 netmask 0xffffff00 broadcast 192.168.0.255
        inet6 fe80::21b:21ff:fe7b:3468%em0 prefixlen 64 scopeid 0x1
        nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500

options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
        ether bc:5f:f4:0c:46:09
        inet6 fe80::be5f:f4ff:fe0c:4609%re0 prefixlen 64 scopeid 0x2
        inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255
        inet6 fd00::be5f:f4ff:fe0c:4609 prefixlen 64 autoconf
        inet6 2001:a60:122a:d001:be5f:f4ff:fe0c:4609 prefixlen 64 autoconf
        nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>

Ein arp auf 192.168.0.251 zeigt mir die MAC Adresse von der em0
Netzwerkkarte.

Meiner Meinung nach sollte das alles passen, aber es geht leider nicht.

Gruß
Matthias

-- 
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Sun 23 Nov 2014 - 19:51:31 CET

search this site