Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jun 2022 19:35:53 +0200
From:      infoomatic <infoomatic@gmx.at>
To:        questions@freebsd.org
Subject:   Re: Two NICs in Single BOX and two separate network connection handling
Message-ID:  <040e4cfd-3b7f-d764-7808-b0a1b6874cc0@gmx.at>
In-Reply-To: <CAKgGyB-_ctBbSmKLXR%2BEC=EwAQXHjioP%2BE16G4rh%2BvA2_jYnXQ@mail.gmail.com>
References:  <CAKgGyB-_ctBbSmKLXR%2BEC=EwAQXHjioP%2BE16G4rh%2BvA2_jYnXQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 28.06.22 19:21, KK CHN wrote:
> Q1:=C2=A0 What are the configurations I need to make in the two NIC card=
s
> to achieve the requirement specified in=C2=A0 =C2=A01 and 2.

setup your network cards with ifconfig, see
https://docs.freebsd.org/en/books/handbook/config/#config-network-setup,
especially 12.5.2


> Q2. What will be the=C2=A0 gateway configurations=C2=A0 needed to add to
> achieve=C2=A0 these two use cases in a single box?

on your interface connected to the LAN, either have dhcpd running so
your client computers get their IPv4 address and the default gateway as
well as nameserver. Or configure your clients with static IP addresses
and manual gateway/nameserver configuration, see answer to Q1.

You also want your machine to do network address translation, see
https://docs.freebsd.org/en/books/handbook/advanced-networking/
especially 32.2.2 and
https://docs.freebsd.org/en/books/handbook/firewalls/ especially 31.3.1
and 31.3.2.1




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?040e4cfd-3b7f-d764-7808-b0a1b6874cc0>