On 2021-08-27 18:49, Michael wrote:
On Friday, 27 August 2021 17:39:27 BST Matt Connell (Gmail) wrote:
On Fri, 2021-08-27 at 16:52 +0200, p...@xvalheru.org wrote:
> Hello,
>
> Installed Gentoo into VirtualBox and I want to have two network
> interfaces (on different networks with IP ranges) one with static IP and
> another with IP retrieved by DHCP. Currenlty, I do have the DHCP, but
> failing to setup additional static IP. Please, could someone point me to
> what to do?

Here's where I would start:
https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Networking

The handbook is good for more than just the installation process, I've
learned over the years.

Also have a look at:

https://wiki.gentoo.org/wiki/Handbook:AMD64/Networking/Modular

which explains how to configure your /etc/conf.d/net file. However, most
helpful is the well commented netifrc example file itself:

/usr/share/doc/netifrc-0.7.3/net.example.bz2

In there you can see how to configure with a static IP or dhcp each interface in turn. Copy that to your /etc/conf.d/net and edit it as you see fit. Ask
if you get stuck on anything specific.

This works for me (/etc/conf.d/net):
dhcpcd_enp0s3=""
config_enp0s8="192.168.56.13/24"

Thanks

Pat


----------------------------------------
Freehosting PIPNI - http://www.pipni.cz/


Reply via email to