Simple routing, netork basics
Dan Kilbourne
bsd-lists at netophilia.net
Fri Dec 17 06:58:26 PST 2004
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
More information about the freebsd-questions
mailing list