Kali Virtualbox (on macOS) won't connect to internet over NAT
up vote
0
down vote
favorite
I am currently running Kali as a virtualbox on my Mac. I want to have it set up so that the VM can access the internet, as well as being connected to the host OS (so I can connect over SSH, etc.)
Currently, Adapter 2
is host only, and is working fine. I can SSH into Kali from my host OS. Adapter 1
is set up as a NAT, but it is not working and so I cannot connect to the internet.
When I do ping google.com
, I get:
ping: google.com: Name or service not known
On Kali I have the following settings in /etc/network/interfaces
:
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet static
address 10.0.2.15
netmask 255.255.255.0
gateway 10.0.2.2
allow-hotplug eth1
iface eth1 inet static
address 192.168.100.101
netmask 255.255.255.0
eth1
is the Adapter 2 (Host-Only)
Also, the results of route -n
are:
Does my issue lie in the addresses I have given eth0
? Where have I gone wrong?
networking macos virtualbox kali-linux
add a comment |
up vote
0
down vote
favorite
I am currently running Kali as a virtualbox on my Mac. I want to have it set up so that the VM can access the internet, as well as being connected to the host OS (so I can connect over SSH, etc.)
Currently, Adapter 2
is host only, and is working fine. I can SSH into Kali from my host OS. Adapter 1
is set up as a NAT, but it is not working and so I cannot connect to the internet.
When I do ping google.com
, I get:
ping: google.com: Name or service not known
On Kali I have the following settings in /etc/network/interfaces
:
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet static
address 10.0.2.15
netmask 255.255.255.0
gateway 10.0.2.2
allow-hotplug eth1
iface eth1 inet static
address 192.168.100.101
netmask 255.255.255.0
eth1
is the Adapter 2 (Host-Only)
Also, the results of route -n
are:
Does my issue lie in the addresses I have given eth0
? Where have I gone wrong?
networking macos virtualbox kali-linux
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am currently running Kali as a virtualbox on my Mac. I want to have it set up so that the VM can access the internet, as well as being connected to the host OS (so I can connect over SSH, etc.)
Currently, Adapter 2
is host only, and is working fine. I can SSH into Kali from my host OS. Adapter 1
is set up as a NAT, but it is not working and so I cannot connect to the internet.
When I do ping google.com
, I get:
ping: google.com: Name or service not known
On Kali I have the following settings in /etc/network/interfaces
:
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet static
address 10.0.2.15
netmask 255.255.255.0
gateway 10.0.2.2
allow-hotplug eth1
iface eth1 inet static
address 192.168.100.101
netmask 255.255.255.0
eth1
is the Adapter 2 (Host-Only)
Also, the results of route -n
are:
Does my issue lie in the addresses I have given eth0
? Where have I gone wrong?
networking macos virtualbox kali-linux
I am currently running Kali as a virtualbox on my Mac. I want to have it set up so that the VM can access the internet, as well as being connected to the host OS (so I can connect over SSH, etc.)
Currently, Adapter 2
is host only, and is working fine. I can SSH into Kali from my host OS. Adapter 1
is set up as a NAT, but it is not working and so I cannot connect to the internet.
When I do ping google.com
, I get:
ping: google.com: Name or service not known
On Kali I have the following settings in /etc/network/interfaces
:
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet static
address 10.0.2.15
netmask 255.255.255.0
gateway 10.0.2.2
allow-hotplug eth1
iface eth1 inet static
address 192.168.100.101
netmask 255.255.255.0
eth1
is the Adapter 2 (Host-Only)
Also, the results of route -n
are:
Does my issue lie in the addresses I have given eth0
? Where have I gone wrong?
networking macos virtualbox kali-linux
networking macos virtualbox kali-linux
edited Dec 1 '17 at 23:33
flolilolilo
1,4281520
1,4281520
asked Dec 1 '17 at 23:07
CJWilliams
12
12
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
I found your post while looking for an answer to my own question. I believe you’ll need to install the appropriate firmware to connect via wireless. My install prompted that I required some non-free firmware for networking. Perhaps this will help.
New contributor
1
(1) Where does the question say anything about wireless? (It’s talking about interfaceseth0
andeth1
.) (2) You believe that firmware is the solution to a problem with a virtual machine?
– Scott
Nov 15 at 5:28
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
I found your post while looking for an answer to my own question. I believe you’ll need to install the appropriate firmware to connect via wireless. My install prompted that I required some non-free firmware for networking. Perhaps this will help.
New contributor
1
(1) Where does the question say anything about wireless? (It’s talking about interfaceseth0
andeth1
.) (2) You believe that firmware is the solution to a problem with a virtual machine?
– Scott
Nov 15 at 5:28
add a comment |
up vote
0
down vote
I found your post while looking for an answer to my own question. I believe you’ll need to install the appropriate firmware to connect via wireless. My install prompted that I required some non-free firmware for networking. Perhaps this will help.
New contributor
1
(1) Where does the question say anything about wireless? (It’s talking about interfaceseth0
andeth1
.) (2) You believe that firmware is the solution to a problem with a virtual machine?
– Scott
Nov 15 at 5:28
add a comment |
up vote
0
down vote
up vote
0
down vote
I found your post while looking for an answer to my own question. I believe you’ll need to install the appropriate firmware to connect via wireless. My install prompted that I required some non-free firmware for networking. Perhaps this will help.
New contributor
I found your post while looking for an answer to my own question. I believe you’ll need to install the appropriate firmware to connect via wireless. My install prompted that I required some non-free firmware for networking. Perhaps this will help.
New contributor
New contributor
answered Nov 15 at 5:16
Alpha1Om3ga
1
1
New contributor
New contributor
1
(1) Where does the question say anything about wireless? (It’s talking about interfaceseth0
andeth1
.) (2) You believe that firmware is the solution to a problem with a virtual machine?
– Scott
Nov 15 at 5:28
add a comment |
1
(1) Where does the question say anything about wireless? (It’s talking about interfaceseth0
andeth1
.) (2) You believe that firmware is the solution to a problem with a virtual machine?
– Scott
Nov 15 at 5:28
1
1
(1) Where does the question say anything about wireless? (It’s talking about interfaces
eth0
and eth1
.) (2) You believe that firmware is the solution to a problem with a virtual machine?– Scott
Nov 15 at 5:28
(1) Where does the question say anything about wireless? (It’s talking about interfaces
eth0
and eth1
.) (2) You believe that firmware is the solution to a problem with a virtual machine?– Scott
Nov 15 at 5:28
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1273560%2fkali-virtualbox-on-macos-wont-connect-to-internet-over-nat%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown