From owner-freebsd-net Sat Feb 17 5:48: 4 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 C92E437B491 for ; Sat, 17 Feb 2001 05:47:58 -0800 (PST) Received: from samar (samar.sasi.com [164.164.56.2]) by samar.sasi.com (8.9.3/8.9.3) with SMTP id TAA27061 for ; Sat, 17 Feb 2001 19:17:52 +0530 (IST) Received: from suns3.sasi.com ([10.0.36.3]) by samar.sasi.com; Sat, 17 Feb 2001 19:17:51 +0000 (IST) Received: from localhost (sseth@localhost) by suns3.sasi.com (8.9.3/8.9.3) with ESMTP id TAA23244 for ; Sat, 17 Feb 2001 19:17:50 +0530 (IST) Date: Sat, 17 Feb 2001 19:17:50 +0530 (IST) From: Satyajeet Seth To: Subject: Using netgraph to implement pseudo interfaces 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 wished to implement pseudo 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 a pseudo interface 1 and packets with destination MAC address MAC2 are sent to pseudo interface 2. 3. The packets addressed to MAC0 should be sent to sent to fxp0. I plan to design a netgraph as follows: iface1 / fxp0 <-> bpf \ iface2 fxp0, iface1, iface2, bpf are nodes of type ng_ether, ng_iface, ng_iface and ng_bpf respectively. The packets with destination addresses MAC1 and MAC2 are sent to interfaces iface1 and iface2 respectively by bpf. Remaining are sent to fxp0. Could you suggest some pitfalls/improvements in the above scheme? I am using FreeBSD 4.0. Thanks Satya To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message