From owner-freebsd-net@FreeBSD.ORG Wed Sep 27 08:25:05 2006 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 E199716A407 for ; Wed, 27 Sep 2006 08:25:05 +0000 (UTC) (envelope-from marko.lerota@claresco.hr) Received: from mxout2.iskon.hr (mxout2.iskon.hr [213.191.128.81]) by mx1.FreeBSD.org (Postfix) with SMTP id 0FF2043D5F for ; Wed, 27 Sep 2006 08:25:02 +0000 (GMT) (envelope-from marko.lerota@claresco.hr) Received: (qmail 18390 invoked from network); 27 Sep 2006 10:25:00 +0200 X-Remote-IP: 213.191.142.124 Received: from unknown (HELO mx.iskon.hr) (213.191.142.124) by mxout2.iskon.hr with SMTP; 27 Sep 2006 10:25:00 +0200 Received: (qmail 25853 invoked from network); 27 Sep 2006 10:25:00 +0200 X-Remote-IP: 213.191.139.213 Received: from tirnanog.iskon.hr (213.191.139.213) by mx.iskon.hr with SMTP; 27 Sep 2006 10:25:00 +0200 Received: (qmail 20408 invoked by uid 1001); 27 Sep 2006 08:24:53 -0000 To: freebsd-net@freebsd.org Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEWgnbRLVpRNVY9jMRPh s21jSlEyNVX45Mv4zI+sbUclFAtMVpT8V0lFAAACZ0lEQVR4nG3Tv2vbQBQHcFMogWyeNeVK BLXGl5j6xnABOaNTuXFGmWpwtw519yj4soW6AatT4GKD3+aDZrl/rt/Tr9qlGiz7Pn7v3bsf HVc/NrIiSfElqH53GgijcCqzk/+AmBF5cN0DsFlIRGMh/oHuqxkTM6VlzB4EoZEs2aSZOASb EQJYZpweQshE697GTDndBXtgp9LIT9+OpDGHEfb9knk+nx+jfN1JCVZMCl6XwFm0a2EXztZD 3s4fj47ZbKI2VeBmJImeEfGLJ+M9sDPilX7IB5rN6sdfcGhuoHU+LC4nxfnI7YOJtdb95Gb+ fbgJ2uJ2ZgaA++f5ZzBqNCCYfMTd5q0BfBVNqm7I8gUjQ+YtXotRW6PH9AEj+dKs/KuNQAl5 o/NY+QkonW8aQAl0oXMYPvRiXIM4pRJifbXytnhTA8alBx/jefG2ar3DBlt34/PXz9M+nMVN iNaPUdCApJc2ItejOmLGoK1qQLV9pJmXBnL10DYoBA5aHNfj8ZNwZa5O4CzgTJeilKJmrQJs IHIt1/7/Sg2p3iq/Hz0/5W05rq4M9aN2B5FLohUP4ylVyfxhEIjAs8J4PhIJ9U+CEroogib5 BXAf7bB4vkfAzgPFt1tM9sJZAOH+lCexhwswuNtim4QTZdokqo4o89LkH7V6iFxICeqfp+Wh fmUuGPunLj2Meti6Cn4DjJ/UReROqR+aqawAi/JkfgKE64rrfkhjU8MtT8ivR4S5n6Yo08A7 HvgAlHDWRSGlNSDxwK9HtXy4FS2I60EdUIJM+Ut9OZNJG4CpbEQW1VBQoQoPuBw2EVa4P0u0 TgzQF+VoAAAAAElFTkSuQmCC Organization: *BSD Users - Fanatics Dept. X-Request-PGP: X-GNUPG-Fingerprint: CF5E 6862 2777 A471 5D2E 0015 8DA6 D56D 17E5 2A51 From: Marko Lerota Date: Wed, 27 Sep 2006 10:24:53 +0200 Message-ID: <86d59h4syy.fsf@sparrow.local> User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: problem with routnig X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Sep 2006 08:25:06 -0000 I have gateway machine that doesn't work. Here is a setup: rc.conf ################################################################# defaultrouter="192.168.1.1" gateway_enable="YES" network_interfaces="xl0 fxp0" ifconfig_xl0="inet 192.168.1.70 netmask 255.255.255.0" ifconfig_fxp0="inet 192.168.2.71 netmask 255.255.255.0" static_routes="lan2" route_lan2="-net 192.168.2.0 -netmask 255.255.255.0 -iface xl0" ################################################################ The hosts on network 192.168.2.0/24 are connected to fxp0 and they can't go anywhere. I can't find the problem. I tried with following static route but it didn't help route_lan2="-net 192.168.2.0 -netmask 255.255.255.0 192.168.1.1" here is netstat Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.1.1 UGS 0 1 xl0 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.1 link#1 UC 0 0 xl0 192.168.1.1 00:09:f3:78:48:2e UHLW 2 0 xl0 1197 192.168.1.67 00:17:31:bc:0a:3d UHLW 1 26 xl0 1192 192.168.2 link#2 UC 0 0 fxp0 192.168.2.64 00:0d:60:fd:7c:2f UHLW 1 3 fxp0 1192 This is FreeBSD 6.1-RELEASE #0 -- One cannot sell the earth upon which the people walk Tacunka Witco