Date: Fri, 17 Dec 2004 09:58:10 -0500 From: Dan Kilbourne <bsd-lists@netophilia.net> To: Florian Hengstberger <e0025265@student.tuwien.ac.at> Cc: FreeBSD mailinglist <freebsd-questions@freebsd.org> Subject: Re: Simple routing, netork basics Message-ID: <20041217145810.GC7529@netophilia.net> In-Reply-To: <i8v22i.bokq5o@webmail.tuwien.ac.at> References: <i8v22i.bokq5o@webmail.tuwien.ac.at>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <full-duplex>) b) No link == media: Ethernet autoselect (none) This will tell you which interface in FreeBSD is which physical interface. > > Thanks a lot > Florian -- ___ Dan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041217145810.GC7529>