Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id EE27D780FD3 for <~alpine/users@lists.alpinelinux.org>; Sun, 21 Feb 2021 12:10:09 +0000 (UTC) Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4Dk3zG389DzFs96 for <~alpine/users@lists.alpinelinux.org>; Sun, 21 Feb 2021 04:10:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1613909402; bh=4Aua3GpRiSmxBEYObeI6sYs2Luypj+m2Ir0OXU9DxVY=; h=To:References:From:Subject:Date:In-Reply-To:From; b=Cm1F40a27iH/+IgQwMF25tkKZJOYdHICty5Nt8WqVtM6zdhYDyu6liqTMjZJxKLbW D8fkf3i2Hru4RPwNhgePz5M2OwhKvbhw5S3vFDmsXGuNJGI5+NQHRJeO2OSkf/fDQA C2mNNDacFNSY2/MW3wg8Ug6eFSMIXIKDikqTGQ2U= X-Riseup-User-ID: 22A2CD8D6D2F5DDD63BB855E3E15E5969291FD17D83F5E1875792C826CF5B3BA Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4Dk3zF6hbCz5vMt for <~alpine/users@lists.alpinelinux.org>; Sun, 21 Feb 2021 04:09:59 -0800 (PST) To: ~alpine/users@lists.alpinelinux.org References: From: donoban Subject: Re: Orig eth0 was bridged, changed to NAT, but dhcp not working Message-ID: <229c8ae0-9566-3fad-e5b9-b63173847b98@riseup.net> Date: Sun, 21 Feb 2021 13:09:50 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="bMwejAKBAam6TIkDJ41zIARvcMHt96od1" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --bMwejAKBAam6TIkDJ41zIARvcMHt96od1 Content-Type: multipart/mixed; boundary="teRrNKQu1VC0QmQNPq3CmzVLmUhiRTxk6"; protected-headers="v1" From: donoban To: ~alpine/users@lists.alpinelinux.org Message-ID: <229c8ae0-9566-3fad-e5b9-b63173847b98@riseup.net> Subject: Re: Orig eth0 was bridged, changed to NAT, but dhcp not working References: In-Reply-To: --teRrNKQu1VC0QmQNPq3CmzVLmUhiRTxk6 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hi, On 2/21/21 10:18 AM, Banibrata Dutta wrote: > Have Alpine 3.13 installed in an Oracle Virtualbox VM as a guestOS. It > was originally setup with a single bridged LAN interface configured as > eth0 with dhcp. However post installation, I had changed the interface > settings to have eth0 setup with static-IP. The guestOS has a second > interface (of type Host-Only, from Virtualbox standpoint) configured as= > eth1, which I use to login to the VM. >=20 > Later, I realized that from within this guestOS, I needed to access a > VPN setup in the host, and read a FAQ indicating that in such cases, > Virtualbox network type of NAT should be used. However, after I changed= > the network type from bridged to NAT, and configured eth0 to take > IP/config thru dhcp, I can no longer get an IP address assigned to eth0= =2E=C2=A0 I don't think NAT is the right choice for connecting to a VPN server on the host. Or do you mean to a remote VPN server? When you said "configured as eth1, which I use to login to the VM.", did you mean a ssh connection? If yes the same setup and interface that work fine for the ssh connection should work too for a VPN connection (to the host). The problem could be your host setup, =C2=BFis the VPN server listening on that interface? =C2=BFdo you have some kind of firewall whic= h could be blocking INPUT connections to the host? I will try to go back and restore direct communication between your Host and guest. NAT configuration is fine if you want to connect the Guest to the Internet without manual routing configuration. --teRrNKQu1VC0QmQNPq3CmzVLmUhiRTxk6-- --bMwejAKBAam6TIkDJ41zIARvcMHt96od1 Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEznLCgPSfWTT+LPrmFBMQ2OPtCKUFAmAyTY4FAwAAAAAACgkQFBMQ2OPtCKXq FRAAk1wcYfH62mc0uIRyg71v3fuwBXMwmRYa/Uuq1tvL8iIEm47kg82XFcLuRHj3KjeVklqjmpD+ wDelVuf6PO2zdy/Kl8i6vYdef8qurt8aweekNl9vguOSdId+2p07WHJ6UQhkxAWcAdOMGDquCzhj wRrMQWvhG5fq+uv4bvfON8I9JPmWO5xdzn+Asa2SCs6pG615NUb/r9ZM9Oi0YLdV1noiQhBtyKA5 3t191Mdx8ePOrE5u2ECH8d0P1jViJswfQVkZmpOgJbgYv5RY1HbG3SWw8DMUlgOhGUOLmlDqTLJX W3f9Zujk/ogVqNs8ophAJdf6x7MuWl//ytgRCi8ji4k7Hd+ndxkPDKFIkltuM3bMjctzgn7KRuSS oW+HOqI5Xyd0tQOsEGaz2hNMgDaqhKbQT+IjrkH/e1ixbDQo+kvZ4ggWOaVbokhYfi99Gmpsqcmq pTSRizTzlU1IH4Ey/VlX4HCPZH/u7B9vZFSlQxrliH+1ttRBh8WWbToWvJxpjwT4oGy8gkSjNrFG ER+vvyHzR6xCEKWo8R4AqGLvA0L8/OgoKRbQILuFA4THbR+6GlzyMdr7tjpMRjJicFIahx8FxMzO 9ROt31Kk/+hZW8Y42Rl5saWP5TQd9Vg7ll0S/3dfR0NtZ2KwUSif6adl9Bi03HXwmhytyIz1CzrZ qZQ= =xPWI -----END PGP SIGNATURE----- --bMwejAKBAam6TIkDJ41zIARvcMHt96od1--