From owner-freebsd-isp Wed Jun 14 10:20:30 2000 Delivered-To: freebsd-isp@freebsd.org Received: from freesbee.wheel.dk (freesbee.wheel.dk [193.162.159.97]) by hub.freebsd.org (Postfix) with ESMTP id 19C8A37C26B for ; Wed, 14 Jun 2000 10:20:25 -0700 (PDT) (envelope-from jesper@skriver.dk) Received: by freesbee.wheel.dk (Postfix, from userid 1001) id 1E1123E50; Wed, 14 Jun 2000 19:20:19 +0200 (CEST) Date: Wed, 14 Jun 2000 19:20:19 +0200 From: Jesper Skriver To: CNNet Cc: freebsd-isp@FreeBSD.ORG Subject: Re: Routing with Freebsd Message-ID: <20000614192019.A2080@skriver.dk> References: <4.3.2.7.2.20000614111227.00ad9b80@cnnet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <4.3.2.7.2.20000614111227.00ad9b80@cnnet.com>; from cnnet@cnnet.com on Wed, Jun 14, 2000 at 11:13:10AM -0600 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, Jun 14, 2000 at 11:13:10AM -0600, CNNet wrote: > Hi could someone help me with a routing problem. I have to network cards in > a freebsd 4 machine this is my rc.conf file: > > # This file now contains just the overrides from /etc/defaults/rc.conf > # please make all changes to this file. > > # -- sysinstall generated deltas -- # > gateway_enable="YES" > network_interfaces="ed0 lo0" > ifconfig_ed0="inet 207.229.6.9 netmask 255.255.255.0" > defaultrouter="207.229.6.9" > hostname="ua3.foo.com" > ifconfig_ed2="inet 192.168.1.45 netmask 255.255.255.0" > network_interfaces="ed2 ed0 lo0" > defaultrouter="207.229.6.9" > hostname="private.foo.com" > router_enable="YES" > > What am I doing wrong, i have a internal network that will point to > 192.168.1.45 as there gateway. > > The gateway to the 207.299.6.9 class is 207.229.6.1 > > Basicall all internal ips will go to this machine and this machine lets > them out on the internet You will need to do NAT, the Internet doesn't have a route back to your internal network. /Jesper -- Jesper Skriver, jesper(at)skriver(dot)dk - CCIE #5456 Work: Network manager @ AS3292 (Tele Danmark DataNetworks) Private: Geek @ AS2109 (A much smaller network ;-) One Unix to rule them all, One Resolver to find them, One IP to bring them all and in the zone to bind them. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message