From owner-freebsd-questions@FreeBSD.ORG Thu Mar 27 02:29:30 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 BCEB837B401 for ; Thu, 27 Mar 2003 02:29:30 -0800 (PST) Received: from exchange.wan.no (exchange.wan.no [80.86.128.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED53C43FB1 for ; Thu, 27 Mar 2003 02:29:28 -0800 (PST) (envelope-from sten.daniel.sorsdal@wan.no) X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Thu, 27 Mar 2003 11:29:20 +0100 Message-ID: <0AF1BBDF1218F14E9B4CCE414744E70F1F3C8E@exchange.wanglobal.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Dual homed host routing problem Thread-Index: AcL0Sn3W6coBo2SgTZ2iUhTuCcMNmQAATiEw From: =?iso-8859-1?Q?Sten_Daniel_S=F8rsdal?= To: "Perica Veljanovski" , 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:29:32 -0000 > I'm running FreeBSD 4.7-RELEASE and I have trouble routing=20 > between two NIC's. On one side I have a 192.168.1.0/24=20 > network and on the other a 212.110.94.64/27 network on which=20 > I have mail and web servers, which the 192.168.1.0/24 hosts=20 > should be able to reach. >=20 > Here are the ifconfig and netstat -r outputs: > wb0: flags=3D8843 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=20 > ether 00:80:48:b5:0a:f3 > media: Ethernet autoselect (100baseTX ) > status: active > rl0: flags=3D8843 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=20 > ether 00:02:44:4f:95:8e > media: Ethernet autoselect (10baseT/UTP) > status: active >=20 > Routing tables > Internet: > Destination Gateway Flags Refs Use =20 > Netif Expire > default 212.110.94.65 UGSc 4 0 wb0 > localhost localhost UH 0 0 lo0 > 192.168.1 link#2 UC 1 =20 > 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 >=20 > and I have net.inet.ip.forwarding set to 1 >=20 > How do I get my box to route packets between the two=20 > interfaces 192.168.1.1 and 212.110.94.84? Log into 212.110.94.65 and tell it that 192.168.1.0/24 is behind = 212.110.94.84. If it's a BSD box you could do on .94.65; route add -net 192.168.1.0/24 = 212.110.94.84 - Sten