Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 May 2020 10:18:17 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Brandon helsley <brandon.helsley@hotmail.com>
Cc:        Aryeh Friedman <aryeh.friedman@gmail.com>, Polytropon <freebsd@edvax.de>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: bsd install
Message-ID:  <20200506101817.5769bfea.freebsd@edvax.de>
In-Reply-To: <CY4PR19MB16554B11E6145F056718FA2DF9A70@CY4PR19MB1655.namprd19.prod.outlook.com>
References:  <CY4PR19MB1655820FA292B20DA336AA5BF9A70@CY4PR19MB1655.namprd19.prod.outlook.com> <20200505203456.8b85330a.freebsd@edvax.de> <CY4PR19MB1655334BCB7E5F814DEA58BCF9A70@CY4PR19MB1655.namprd19.prod.outlook.com> <20200505211848.b6d81e98.freebsd@edvax.de> <CY4PR19MB16556F76E06A213A6B4AC7D5F9A70@CY4PR19MB1655.namprd19.prod.outlook.com> <CAGBxaXmTBySzLPBcQrHkpbSPKRUry2NR3MQLg-9BksycGWUyZg@mail.gmail.com> <CY4PR19MB1655C91390A3FE0E8ECF2359F9A70@CY4PR19MB1655.namprd19.prod.outlook.com> <CAGBxaXkQ=_Eds9+VfrZh+CCibgxgp11PHHtd+p+kD5EivnfOAQ@mail.gmail.com> <CY4PR19MB16554B11E6145F056718FA2DF9A70@CY4PR19MB1655.namprd19.prod.outlook.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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.



DHCP
----

Let's say you network interface is bge0. Edit /etc/rc.conf
and add the following:

	ifconfig_bge0="DHCP"

Reboot.

That's it.




Manual
------

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"
	defaultrouter="192.168.123.1"
	
Edit /etc/resolv.conf

	nameserver 192.168.123.1



Again, allow me to point you to the relevant section of the
FreeBSD handbook where this topic is covered.

https://www.freebsd.org/doc/handbook/config-network-setup.html

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
networking. ;-)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20200506101817.5769bfea.freebsd>