From owner-freebsd-net@FreeBSD.ORG Thu Aug 11 13:44:24 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A837D16A41F for ; Thu, 11 Aug 2005 13:44:24 +0000 (GMT) (envelope-from donatas@lrtc.net) Received: from mail.lrtc.lt (pegasus.lrtc.lt [217.9.240.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id C8A7C43D45 for ; Thu, 11 Aug 2005 13:44:23 +0000 (GMT) (envelope-from donatas@lrtc.net) Received: (qmail 21174 invoked from network); 11 Aug 2005 13:43:58 -0000 Received: from p2p-241-242-ird.vln0.lrtc.net (HELO donatas) (d.gendvilas@[217.9.241.242]) (envelope-sender ) by mail.lrtc.lt (qmail-ldap-1.03) with SMTP for ; 11 Aug 2005 13:43:58 -0000 Message-ID: <026001c59e7a$c6ca69c0$9f90a8c0@donatas> From: "Donatas" To: Date: Thu, 11 Aug 2005 16:44:20 +0300 Organization: AB Lietuvos Radijo ir Televizijos Centras MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Content-Type: text/plain; charset="iso-8859-4" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: routing problem X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Donatas List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Aug 2005 13:44:24 -0000 please see the scheme below: user1---[usa]-------->machine1 machine2 vlan1(default gw) = vlan1---------------->em0(USA) ?<--------------- = -=3D-=3D-=3D-=3D--> (zebra,ospf) = =20 user2=3D=3D[europe]=3D=3D=3D>vlan2(ospf,zebra) = vlan2=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D>em1(EUROPE) = ?<=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I've encountered a serious problem. I must differentiate USA and EUROPE = subnets into two different vlans between two different machies. First = machine gets USA traffic to em0 and EUROPE traffic to em1. When user1 = tries to reach USA IP, he does not gets any routes via ospf, so he = passes through machine's1default gw via vlan1. When user2 tries to reach = EUROPE IP he get's ospf routes from vlan2 and goes out via that vlan2. = The problem is with inbound traffic. How can machine2 divert inbound USA = traffic to vlan1, and inbound EUROPE traffic to vlan2?The problem should = be solved in IP level only. Zebra(ospf) is unable to do that and I = cannot change vlan or interface structure because of certain reasons:( Thanks for any ideas. bsd5.4