From owner-freebsd-questions Mon Sep 28 13:22:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA15213 for freebsd-questions-outgoing; Mon, 28 Sep 1998 13:22:23 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from java.dpcsys.com (java.dpcsys.com [206.16.184.7]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA15198 for ; Mon, 28 Sep 1998 13:22:17 -0700 (PDT) (envelope-from dan@dpcsys.com) Received: from localhost (dan@localhost) by java.dpcsys.com (8.8.7/8.8.2) with SMTP id NAA26223; Mon, 28 Sep 1998 13:21:49 -0700 (PDT) Date: Mon, 28 Sep 1998 13:21:49 -0700 (PDT) From: Dan Busarow Reply-To: Dan Busarow To: Leonardo Madrigal cc: freebsd-questions@FreeBSD.ORG Subject: Re: litle question In-Reply-To: <360FDD04.DBBD820@acnet.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 28 Sep 1998, Leonardo Madrigal wrote: > The fisrt nic have the ip 167.114.28.234 with netmask 255.255.255.192 > The seond nic will have the ip 167.114.17.101 with netmask > 255.255.255.224 > > > My cisco have to gateways, one its for the modem's access (isp) and the > gateway is 167.114.28.193,also > the first ip 167.114.28.234 use this gateway for its internet > connection. > The second gateway on the cisco its 167.114.17.97 for LAN connection. > > in my rc.conf i have > > ifconfig_vx0="inet 167.114.28.234 netmask 255.255.255.192" > defaultrouter="167.114.28.193" > gateway_enable="YES" > router_enable="YES" > > i think i have to write another line on the rc.conf to especify the ip > 167.114.17.101 to the second nic ifconfig_vx1="inet 167.114.17.101 netmask 255.255.255.224" > but which routes do i need in the server so the LAN can see the > 167.114.17.101 ethernet card > for firewall purposes? Set router_enable to router_enable="NO" The ifconfig's will set up the needed routes. You will need to tell the Cisco that it can reach 167.114.17.96/27 via 167.114.28.234 ip route 167.114.17.96 255.255.255.240 167.114.28.234 Dan -- Dan Busarow 949 443 4172 Dana Point Communications, a California corporation dan@dpcsys.com Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message