From nobody Wed Jun 29 03:10:10 2022 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 6183587E98B for ; Wed, 29 Jun 2022 03:10:18 +0000 (UTC) (envelope-from hw@adminart.net) Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [81.169.146.163]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "*.smtp.rzone.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LXmfx2smjz3DCd for ; Wed, 29 Jun 2022 03:10:17 +0000 (UTC) (envelope-from hw@adminart.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1656472210; s=strato-dkim-0002; d=adminart.net; h=References:In-Reply-To:Date:To:From:Subject:Message-ID:Cc:Date:From: Subject:Sender; bh=aUNj3n6PiKGbZu9YNvdrKKBOTH3nMRIkjd1lfYHpB0A=; b=ml6Eaq3cY8ks4qszxodee1opAdJwLQgE/uG0TIYJAEDCUvCPcN7fm/bmQOx9tV+m77 rVZSvEcJx6dTMTpQfA/bNqVDjSidUBIomyYQNPk44V4m3/f8mDY7Y5WIBChKClUok6bg Xamdz1asqQ+upQxIzk/EHTj+jhejFcQXysx0r/i/YHkf2lvjrjN76WHPI++0/q6gs0i2 bh8LfzYFkMIKB+aCzFGru770T/TJpPML1q0DLGiJBqdEPLLffYSoAVuVObDRml7ACwKD 4Ahzlb9/FtHPurQV7sWkRQPWMVC5pDy46sMv7DqleTCSx1zR2R6E0nAdKtSs2xQzT/pd Z7GA== X-RZG-AUTH: ":O2kGeEG7b/pS1Ey9Rna9iAZFrfz26y6zbtmqiE/f0+UVPWzfkhbRoUzSCTTNnjIupuXQshKqSDswFYxQxxClR+7AkQj+sG7OF/WVQgGZZ3hmY9Si" X-RZG-CLASS-ID: mo00 Received: from [IPv6:2a09:8e40:1dba:3500:fa8d:b1f2:30b5:72c5] by smtp.strato.de (RZmta 47.46.0 AUTH) with ESMTPSA id h79331y5T3AAFNT (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Wed, 29 Jun 2022 05:10:10 +0200 (CEST) Message-ID: <1cf4e8fcbecb835506cdf3fc3a40d9ec5010a3e9.camel@adminart.net> Subject: Re: Two NICs in Single BOX and two separate network connection handling From: hw To: questions@freebsd.org Date: Wed, 29 Jun 2022 05:10:10 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.2 (3.44.2-1.fc36) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 X-Rspamd-Queue-Id: 4LXmfx2smjz3DCd X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=adminart.net header.s=strato-dkim-0002 header.b=ml6Eaq3c; dmarc=none; spf=none (mx1.freebsd.org: domain of hw@adminart.net has no SPF policy when checking 81.169.146.163) smtp.mailfrom=hw@adminart.net X-Spamd-Result: default: False [-3.30 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[adminart.net:s=strato-dkim-0002]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[81.169.146.163:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[adminart.net]; DKIM_TRACE(0.00)[adminart.net:+]; NEURAL_HAM_SHORT(-1.00)[-0.997]; RCVD_IN_DNSWL_NONE(0.00)[81.169.146.163:from]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; MLMMJ_DEST(0.00)[questions]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6724, ipnet:81.169.144.0/22, country:DE]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Tue, 2022-06-28 at 22:51 +0530, KK CHN wrote: > List, >=20 > Can some one shed some light on this? >=20 > I have a server=C2=A0 box=C2=A0 with two interface cards.=C2=A0 I want to= use the > scenario like this=C2=A0 >=20 > 1.=C2=A0 First NIC=C2=A0 card should be attached to a WAN link which will > handle all the internet traffic to and fro to=C2=A0 this machine. >=20 > 2.=C2=A0 Second, NIC will handle all my internal=C2=A0 =C2=A0LAN network = traffic > where this machine is connected to my=C2=A0 Local Area Network.=C2=A0 >=20 > Q1:=C2=A0 What are the configurations I need to make in the two NIC cards > to achieve the requirement specified in=C2=A0 =C2=A01 and 2.=C2=A0 >=20 > 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? >=20 > Any hints most welcome >=20 > Thank you. > Krish >=20 >=20 Configure each of the cards appropriately for the subnet they are connected to. Wich gateways you need to configure depends on how your network is set up. Seriously, you really need to clarify and give more information to get better answers ...