From owner-freebsd-questions@FreeBSD.ORG Wed Jun 6 08:01:35 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 93C2716A400 for ; Wed, 6 Jun 2007 08:01:35 +0000 (UTC) (envelope-from mapsware@prodigy.net.mx) Received: from smtp.prodigy.net.mx (nlpproxy07.prodigy.net.mx [148.235.52.27]) by mx1.freebsd.org (Postfix) with ESMTP id 6DDCA13C46A for ; Wed, 6 Jun 2007 08:01:35 +0000 (UTC) (envelope-from mapsware@prodigy.net.mx) Received: from smtp.prodigy.net.mx (nlpproxy07 [148.235.52.27]) by smtp.prodigy.net.mx (iPlanet Messaging Server 5.2 HotFix 2.05 (built Mar 3 2005)) with ESMTP id <0JJ7007FJCUBFN@smtp.prodigy.net.mx>; Wed, 06 Jun 2007 02:01:25 -0500 (CDT) Received: from morena (dsl-189-165-52-86.prod-infinitum.com.mx [189.165.52.86]) by smtp.prodigy.net.mx(iPlanet Messaging Server 5.2 HotFix 2.05 (built Mar 3 2005)) with ESMTP id <0JJ7007IYCUAA8@smtp.prodigy.net.mx>; Wed, 06 Jun 2007 02:01:23 -0500 (CDT) Date: Wed, 06 Jun 2007 00:01:22 -0700 From: Martin Alejandro Paredes Sanchez In-reply-to: <4664FAAA.70608@adventnet.com> To: freebsd-questions@freebsd.org Message-id: <200706060001.22676.mapsware@prodigy.net.mx> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable Content-disposition: inline User-Agent: KMail/1.9.6 X-imss-version: 2.047 X-imss-result: Passed X-imss-scanInfo: M:B L:E SM:2 X-imss-tmaseResult: TT:1 TS:-7.6670 TC:04 TRN:33 TV:3.6.1039(15220.003) X-imss-scores: Clean:100.00000 C:0 M:0 S:0 R:0 X-imss-settings: Baseline:3 C:3 M:3 S:3 R:3 (0.0000 0.0000) References: <4663AE7D.2090607@adventnet.com> <46641657.4000906@cs.okstate.edu> <4664FAAA.70608@adventnet.com> Subject: Re: Configure ipaddress and route entries in /etc/rc.conf file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 08:01:35 -0000 El Lun 04 Jun 2007, bsenthil escribi=F3: > Yes, It working fine.. Thanks for your help.. > > inetd_enable=3D"YES" > hostname=3D"test.abc.com" > ifconfig_fxp0=3D"inet 192.168.110.14 netmask 255.255.255.0" > ifconfig_fxp1=3D"inet 192.168.111.14 netmask 255.255.255.0" > hostname=3D"test.abc.com" > static_routes=3D"net1 net2" > > route_net1=3D"-net 10.1.1.1/24 *fxp0*" (Error ...) > > I am not configure any default router entries . But i want to redirect > all 10.1.1.1/24 packets through fxp0. short answer: route_net1=3D"-net 10.1.1.0/24 192.168.110.1" Replace the ip 192.168.110.1 with the router in the LAN 192.168.110.0/24 Long answer: so, you are connected to 2 LANs: 192.168.110.0/24 192.168.111.0/24 And there exist another LAN 10.1.1.0/24 when you configure the interface fxp0: ifconfig_fxp0=3D"inet 192.168.110.14 netmask 255.255.255.0" You are adding an entry in the routing table like this: "-net 192.168.110.0/24 192.168.110.14" Since you want to transmit all the trafic to the LAN 10.1.1.0/24 by the=20 interface fxp0 (connected to the LAN 192.168.110.0/24), there should exist= =20 some connection betwen these 2 LANs (controled by a router), all you have t= o=20 say is that the LAN 10.1.1.0/24 is reached by the router 192.168.110.X route_net1=3D"-net 10.1.1.0/24 192.168.110.X" maps