From owner-freebsd-questions@FreeBSD.ORG Thu Mar 27 02:35:43 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 131BB37B404 for ; Thu, 27 Mar 2003 02:35:43 -0800 (PST) Received: from mintaka.wcom.co.uk (mintaka.wcom.co.uk [193.131.254.155]) by mx1.FreeBSD.org (Postfix) with ESMTP id A968643FCB for ; Thu, 27 Mar 2003 02:35:41 -0800 (PST) (envelope-from Philip.Payne@uk.uu.net) Received: from mintaka.wcom.co.uk ([166.59.190.30]) by mintaka.wcom.co.uk with esmtp (Exim 4.12) id 18yUjR-00069W-00; Thu, 27 Mar 2003 10:35:37 +0000 Received: from vardar (vardar [170.127.79.101]) by mintaka.wcom.co.uk (4.0.1.37) with ESMTP id KAA23383; Thu, 27 Mar 2003 10:35:09 GMT Received: from ukcamgate1.cbg.uk.corp.eu.uu.net ([62.191.1.65]) by vardar with esmtp (Exim 4.10.11) id 18yUin-00075i-00; Thu, 27 Mar 2003 10:34:58 +0000 Received: by ukcamgate1.cbg.uk.corp.eu.uu.net with Internet Mail Service (5.5.2653.19) id ; Thu, 27 Mar 2003 10:35:18 -0000 Message-ID: <36D04A8168B2D41182250008C7E6F8780374F5DE@ukcamexch2.cbg.uk.corp.eu.uu.net> From: Philip Payne To: "'Perica Veljanovski'" , freebsd-questions@freebsd.org Date: Thu, 27 Mar 2003 10:35:14 -0000 X-Mailer: Internet Mail Service (5.5.2653.19) MIME-Version: 1.0 (Generated by NET-TEL Mailguard SMTP version 4.0.1.40) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Score: -7.1 (-------) X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/) *18yUjR-00069W-00*pJQWKzNRQfw* X-Spam-Status: No, hits=-3.2 required=5.0 tests=QUOTED_EMAIL_TEXT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Subject: RE: Dual homed host routing problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Mar 2003 10:35:46 -0000 > I'm running FreeBSD 4.7-RELEASE and I have trouble routing between two > NIC's. On one side I have a 192.168.1.0/24 network and on the > other a 212.110.94.64/27 > network on which I have mail and web servers, which the 192.168.1.0/24 > hosts should be able to reach. > > Here are the ifconfig and netstat -r outputs: > wb0: flags=8843 mtu 1500 > inet 212.110.94.84 netmask 0xffffffe0 broadcast 212.110.94.95 > inet6 fe80::280:48ff:feb5:af3%wb0 prefixlen 64 scopeid 0x1 > ether 00:80:48:b5:0a:f3 > media: Ethernet autoselect (100baseTX ) > status: active > rl0: flags=8843 mtu 1500 > inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 > inet6 fe80::202:44ff:fe4f:958e%rl0 prefixlen 64 scopeid 0x2 > ether 00:02:44:4f:95:8e > media: Ethernet autoselect (10baseT/UTP) > status: active > > Routing tables > Internet: > Destination Gateway Flags Refs Use > Netif Expire > default 212.110.94.65 UGSc 4 0 wb0 > localhost localhost UH 0 0 lo0 > 192.168.1 link#2 UC 1 > 0 rl0 > 192.168.1.255 ff:ff:ff:ff:ff:ff UHLWb 1 45 rl0 > 212.110.94.64/27 link#1 UC 8 0 wb0 > > and I have net.inet.ip.forwarding set to 1 > > How do I get my box to route packets between the two > interfaces 192.168.1.1 > and 212.110.94.84? It may not be the actual dual-homed boxes issue. For this to work completely, the devices on the two networks you mention must also have the correct routing. So, devices on 192.168.1.0/24 must have a route for 212.110.94.64/27 via 192.168.1.1... most probably a default route as I assume the devices on 192.168.1.0/24 are reaching the net via this box. In addition, any device on 212.110.94.64/27 that is supposed to reach 192.168.1.0/24 devices must route 192.186.1.0/24 via 212.110.94.84.