From owner-freebsd-net Sun Mar 11 10:23:42 2001 Delivered-To: freebsd-net@freebsd.org Received: from samar.sasi.com (samar.sasken.com [164.164.56.2]) by hub.freebsd.org (Postfix) with ESMTP id 9DECD37B718 for ; Sun, 11 Mar 2001 10:23:35 -0800 (PST) (envelope-from sseth@sasken.com) Received: from samar (samar.sasi.com [164.164.56.2]) by samar.sasi.com (8.9.3/8.9.3) with SMTP id XAA08520; Sun, 11 Mar 2001 23:53:17 +0530 (IST) Received: from suns3.sasi.com ([10.0.36.3]) by samar.sasi.com; Sun, 11 Mar 2001 23:53:16 +0000 (IST) Received: from localhost (sseth@localhost) by suns3.sasi.com (8.9.3/8.9.3) with ESMTP id XAA01429; Sun, 11 Mar 2001 23:53:20 +0530 (IST) Date: Sun, 11 Mar 2001 23:53:20 +0530 (IST) From: Satyajeet Seth To: Cc: Subject: Ping Problem Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi I have configured pseudo ethernet interfaces with the following requirements: 1. There is a ethernet interface fxp0 having MAC address MAC0. It also receives packets with destination MAC address MAC1 and MAC2. 2. The packets with destination MAC address MAC1 are sent to pseudo interface 1, nge0 and packets with destination MAC address MAC2 are sent to pseudo interface 2, nge1. This has been done using netgraph as follows: fxp0: <--> bpf <--> bpf <--> interface0 \ \ \ ------>interface1 \ \------------>interface2 I have used ng_eiface nodes impemented by Vitaly (available at http://www.riss-telecom.ru/~vitaly/) for interface1/2. I have set fxp0 in promiscuous mode. Could you suggest why I am unable to ping the pseudo ethernet interface IP addresses from any of the LAN machines? Is it because fxp0 is capable of sending packets only with its own MAC address and not MAC addresses of nge0 and nge1? My ifconfig settings and routing table entries are given below. pcs130# ifconfig -a fxp0: flags=8843 mtu 1500 inet 10.0.36.130 netmask 0xfffff000 broadcast 10.0.47.255 inet6 fe80::2d0:b7ff:febd:711%fxp0 prefixlen 64 scopeid 0x1 ether 00:d0:b7:bd:07:11 media: autoselect (100baseTX ) status: active supported media: autoselect 100baseTX 100baseTX 10baseT/UT P 10baseT/UTP lp0: flags=8810 mtu 1500 sl0: flags=c010 mtu 552 ppp0: flags=8010 mtu 1500 lo0: flags=8049 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 gif0: flags=8010 mtu 1280 gif1: flags=8010 mtu 1280 gif2: flags=8010 mtu 1280 gif3: flags=8010 mtu 1280 faith0: flags=8000 mtu 1500 nge0: flags=8843 mtu 1500 inet 10.0.137.157 netmask 0xffffffff broadcast 10.0.137.157 inet6 fe80::211:22ff:fe33:4455%nge0 prefixlen 64 scopeid 0xb ether 00:11:22:33:44:55 nge1: flags=8843 mtu 1500 inet 10.0.198.158 netmask 0xffffffff broadcast 10.0.198.158 inet6 fe80::2d0:b7ff:febd:711%nge1 prefixlen 64 scopeid 0xc ether 11:22:33:44:55:66 pcs130# netstat -rn Routing tables Internet: Destination Gateway Flags Netif Expire default 10.0.32.1 UGSc 0 0 fxp0 10.0.32/20 link#1 UC 0 0 fxp0 => 10.0.32.1 link#1 UHLW 1 0 fxp0 => 10.0.36.130 0:d0:b7:bd:7:11 UHLW 0 40 lo0 10.0.137.157/32 link#11 UC 0 0 nge0 => 10.0.198.158/32 link#12 UC 0 0 nge1 => 127.0.0.1 127.0.0.1 UH 0 4 lo0 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UH lo0 fe80::%fxp0/64 link#1 UC fxp0 fe80::%lo0/64 fe80::1%lo0 Uc lo0 fe80::%nge0/64 link#11 UC nge0 fe80::%nge1/64 link#12 UC nge1 ff01::/32 ::1 U lo0 ff02::%fxp0/32 link#1 UC fxp0 ff02::%lo0/32 fe80::1%lo0 UC lo0 ff02::%nge0/32 link#11 UC nge0 ff02::%nge1/32 link#12 UC nge1 Thanks Satya To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message