From owner-freebsd-net@FreeBSD.ORG Tue Apr 6 16:20:02 2004 Return-Path: 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 D0F5B16A4CE for ; Tue, 6 Apr 2004 16:20:02 -0700 (PDT) Received: from tequila.4you.lt (tequila.4you.lt [212.122.68.216]) by mx1.FreeBSD.org (Postfix) with SMTP id E0E6A43D31 for ; Tue, 6 Apr 2004 16:20:01 -0700 (PDT) (envelope-from hugle@vkt.lt) Received: (qmail 54252 invoked by uid 0); 6 Apr 2004 23:20:19 -0000 Received: from hugle@vkt.lt by tequila by uid 82 with qmail-scanner-1.20rc1 (. Clear:RC:1:. Processed in 1.239293 secs); 06 Apr 2004 23:20:19 -0000 Received: from unknown (HELO vkt-dell) (213.226.136.201) by tequila.4you.lt with SMTP; 6 Apr 2004 23:20:17 -0000 Date: Wed, 7 Apr 2004 02:18:52 +0300 From: hugle X-Mailer: The Bat! (v2.01) X-Priority: 3 (Normal) Message-ID: <34300782252.20040407021852@vkt.lt> To: freebsd-isp@freebsd.org, freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: got two GATEWAYS! X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hugle List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2004 23:20:02 -0000 Hello all. I currently have 2 different gateways.. one deafult x.x.x.161 (ip on my NIC is x.x.x.162(fxp1)) and x.x.x.141 (ip on my NIC is x.x.x.142 (using vlan0)) I'm currently running NAT using IPNAT, by map fxp1 from 192.168.1.8 ! to 192.168.0.0/16 -> x.x.x.162/32 portmap tcp auto all works fine how do i map for example ip 1.100 map vlan0 from 192.168.1.100 ! to 192.168.0.0/16 -> x.x.x.142/32 portmap tcp auto doesn't do the trick.. need somehow to add gateway for x.x.x.142/30 default gw for it would be x.x.x.141 tried route add -net x.x.x.142/32 x.x.x.141 add net x.x.x.142: gateway x.x.x.141 no luck.. the same ;[ when pinging gateway 2 (VLAN) PING x.x.x.141 (x.x.x.141): 56 data bytes 64 bytes from x.x.x.141: icmp_seq=0 ttl=255 time=0.832 ms 64 bytes from x.x.x.141: icmp_seq=1 ttl=255 time=0.818 ms it's ok PING gw2 local IP: PING x.x.x.142 (x.x.x.142): 56 data bytes 36 bytes from x.x.x.141: Redirect Host(New addr: x.x.x.142) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 23b6 0 0000 fd 01 6cdc x.x.x.142 x.x.x.142 64 bytes from x.x.x.142: icmp_seq=0 ttl=253 time=1.489 ms 36 bytes from x.x.x.141: Redirect Host(New addr: x.x.x.142) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 23fd 0 0000 fd 01 6c95 x.x.x.142 x.x.x.142 64 bytes from x.x.x.142: icmp_seq=1 ttl=253 time=1.732 ms not really ok?:) (it's after route add -net x.x.x.142/32 x.x.x.141) -- Best regards,Hugle