From owner-freebsd-questions Sun Nov 29 11:41:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA26545 for freebsd-questions-outgoing; Sun, 29 Nov 1998 11:41:22 -0800 (PST) (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 LAA26539 for ; Sun, 29 Nov 1998 11:41:21 -0800 (PST) (envelope-from dan@dpcsys.com) Received: from localhost (dan@localhost) by java.dpcsys.com (8.9.1a/8.9.1) with SMTP id LAA21949; Sun, 29 Nov 1998 11:41:57 -0800 (PST) Date: Sun, 29 Nov 1998 11:41:57 -0800 (PST) From: Dan Busarow To: "Henry v. Doorn" cc: freebsd-questions@FreeBSD.ORG Subject: Re: Installing a second networkinterface In-Reply-To: <000a01be1bc5$69376d60$2574ae83@catv6037.extern.kun.nl> Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/ALTERNATIVE; BOUNDARY="----=_NextPart_000_0007_01BE1BCD.CAFBD560" Content-ID: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. ------=_NextPart_000_0007_01BE1BCD.CAFBD560 Content-Type: TEXT/PLAIN; CHARSET=iso-8859-1 Content-ID: On Sun, 29 Nov 1998, Henry v. Doorn wrote: > I just started USING Free-BSD. I want to use the machine as a NAT. > Your FAQ's and Books give some hints and suggestions how to do this. > But what I did not find is information about installing an extra network- > interface for this. > I have installed 2 identical network cards. On setup one is activated, > how do I activate the second one. I thought because I use 2 identical > cards activating the second one cannot be to difficult. Edit /etc/rc.conf and add configuration details for the second nic there. Look for "network_interfaces", your first nic plus lo0 will be listed there, add the second nic (you can determine the names by looking at the output of dmesg. Since you are using identical cards the name should be the same as the first with the number increased by 1. So if you currently have network_interfaces="ed1 lo0" make it network_interfaces="ed1 ed2 lo0" Next find the ifconfig line corresponding to your first nic. ifconfig_ed1="inet 192.168.1.1 netmask 0xffffff00" and add another line for your second nic ifconfig_ed2="inet 172.16.1.1 netmask 0xffffff00" While you're in there set firewall_enable to YES and firewall_type to OPEN, you already build a new kernel with IPFIREWALL and IPDIVERT right? Dan -- Dan Busarow 949 443 4172 Dana Point Communications, Inc. dan@dpcsys.com Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82 ------=_NextPart_000_0007_01BE1BCD.CAFBD560-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message