freebsd at edvax.de
Wed May 6 08:23:27 UTC 2020
On Tue, 5 May 2020 23:56:35 +0000, Brandon helsley wrote:
> I'm a complete noob, I don't understand any of this.
First you need to know what you're dealing with. :-)
First of all, _what_ is your system connected to? A router or
something like that? One that goes to your ISP, or one that
encloses you into a local network? Then find out if that
device offers DHCP, i. e., if it will assign you a local IP
if you ask for it.
Then find out the name of your network interface you use to
connect. Check the output of
# ifconfig -a
as it will be one of those entries. For every entry, you can
use "man <entry>" to find out what it is. BEside a "lo0" interface
you'll probably only have one or two others. One has an
attribute like "media: Ethernet" and "status: connected".
That's the one you need to configure.
Depending on if you can have DHCP (automatic) or need to
configure things manually - in this case, ask your installation
about _what_ you have to set up -, go to work.
Let's say you network interface is bge0. Edit /etc/rc.conf
and add the following:
Get all information you need: my IP, my gateway, my resolver.
Let's assume bge0 again, and your IP is 192.168.123.100, the
gateway's address is 192.168.123.1, and it also acts as a name
server (name resolution) with the same IP 192.168.123.1. Edit
/etc/rc.conf and add:
ifconfig_bge0="inet 192.168.123.100 netmask 0xffffff00"
Again, allow me to point you to the relevant section of the
FreeBSD handbook where this topic is covered.
Keep in mind: You don't have to deal with most things anyway
if you can use DHCP, but it doesn't hurt to know the basics of
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions