From owner-freebsd-questions@FreeBSD.ORG Fri Dec 17 14:58:25 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC5CB16A4CE for ; Fri, 17 Dec 2004 14:58:25 +0000 (GMT) Received: from net.netophilia.net (ns.netophilia.net [66.96.216.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58FEB43D55 for ; Fri, 17 Dec 2004 14:58:25 +0000 (GMT) (envelope-from bsd-lists@netophilia.net) Received: from localhost (localhost.netophilia.net [127.0.0.1]) by net.netophilia.net (Postfix) with ESMTP id 4E6C515C81; Fri, 17 Dec 2004 09:58:23 -0500 (EST) Received: from net.netophilia.net ([127.0.0.1]) by localhost (net.netophilia.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 67261-03; Fri, 17 Dec 2004 09:58:10 -0500 (EST) Received: by net.netophilia.net (Postfix, from userid 1005) id 6FC0015C80; Fri, 17 Dec 2004 09:58:10 -0500 (EST) Date: Fri, 17 Dec 2004 09:58:10 -0500 From: Dan Kilbourne To: Florian Hengstberger Message-ID: <20041217145810.GC7529@netophilia.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: netophilia.net Visit: http://netophilia.net User-Agent: Mutt/1.5.6i X-Virus-Scanned: amavisd-new at netophilia.net cc: FreeBSD mailinglist Subject: Re: Simple routing, netork basics X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Dec 2004 14:58:26 -0000 Florian Hengstberger extolled: > Hi! > In a few days I'll get fast access to the internet via WLAN. > I have a wireless accesspoint connected to my (single) network card. > I have one single public static IP address from my ISP and > I'll assign it to this card. > Of course I want to give other people in my LAN also access > to the net, so I'll by a second network card, setting it up with > a local ip-address/netmask. > > A few questions arise: > > 1) I'll have to do some routing with my computer, is there a good > online tutorial you can recommend covering this rather simple case? I think http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/advanced-networking.html may help you out. > > 2) What's the easiest way to log the traffic to my ISP? > I don't want to exceed a certain download/upload limit. > How can I gain controll over this? MRTG/Cacti/cricket. All are available from ports, all do pretty much the same thing. My recommendation: if you are just interested in monitoring the machine itself, use cacti. If you want to also monitor other remote devices, use cricket. > > 3) I have to network cards: you can I be sure that the right > IP is assigned to the right (physical) network card using rc.conf? > I has to depend somehow on the position on the PCI-bus: > which one is detected first and assigned first or > due to which fact are the network-cards numbered? Easy way: 1) Plug a cable into one of the cards and get link. Leave the other one with no link. 2) Look at the output of 'ifconfig' - especially the 'media: ' line. a) Link == media: Ethernet autoselect (100baseTX ) b) No link == media: Ethernet autoselect (none) This will tell you which interface in FreeBSD is which physical interface. > > Thanks a lot > Florian -- ___ Dan