Page 1 of 1
networking questions
Posted: 2. Apr 2017, 18:02
by jaswheel
Trying to setup 3 guests - using them for CEH training
Host: windows 10 - laptop
Guests: Ubuntu - Kali - Windows 10
I am wanting to setup each of the guests with two NICs, expected outcome is for them to have Internet and Intranet communication
- the first NIC to use NAT so they can get to the internet
- the second NIC to be a private network 192.168.2.0 subnet
I have all the guests configured with 2 Network Adapters
Inside Ubuntu I keep the first one configured with NAT
Once I enable the second, I configure it to use 192.168.2.3 IP 255.255.255.0 Subnet
Internet connection no longer works
Inside my Kali
I configure first NIC to use NAT
I change the second NIC to be static IP - and everytime I update the second NIC< the settings on the first NIC also change (and vice versa)
any way to get this working?
Thanks
Re: networking questions
Posted: 2. Apr 2017, 18:22
by socratis
Have you tried leaving the defaults? Neither the static IPs, nor the 192.168.2.0/24 are defaults for the adapters. Leave them at their defaults and start changing one parameter at a time so you will know what fails...
And when you say "private network" I assume you mean the VirtualBox "Internal network", right?
Re: networking questions
Posted: 2. Apr 2017, 18:25
by jaswheel
yes, private to the virtualbox guests only
I will try the dhcp, but I think I tried that already and the internal nic received no IP because of no dhcp server
Re: networking questions
Posted: 2. Apr 2017, 18:49
by jaswheel
still not working completely
the Ubuntu machine - settings seem fine, however it's difficult to tell if the internal network is working
I cannot seem to disable the IPV6 - and when I do an ifconfig it continues to display an IPV6 address and no IPV4 address
the Kali machine - once I enable the second NIC, even if I leave them both to DHCP - I no longer get Internet
I am also unable to disable the IPV6 internal, every change I made to NIC 2 also updates the settings on NIC1...not sure why this happens.
Re: networking questions
Posted: 2. Apr 2017, 20:09
by socratis
This is something that you have to troubleshoot within your guests. I think that it was in Kali, that if you enable one adapter it disables the others, a real pain. I almost
troubleshot that one...
As far as Ubuntu, I have mine configured with 4 NICs and I have no problem at all. I want to see the output (for both your guests) of:
If you have a problem with a guest in VirtualBox, it doesn't necessarily make it a VirtualBox problem. You might have better luck if you treat it as a native problem with the OS (of the guest).
Re: networking questions
Posted: 3. Apr 2017, 02:16
by jaswheel
I realize it may not be an issue with Virtualbox, the only reason I started here is because there seem to be a lot of people that know virtualbox and kali/Ubuntu. And, because it doesn't seem to work for both of my guest machines, leads me to believe I'm doing something wrong in Virtualbox.
Below is the output from my Ubuntu machine. I had to configure static IP for the IPV4, considering there is no DHCP server on my "internal" network, it would never pull an IP address. I cannot browse the internet when setup this way.
Code: Select all
jaswheel@jaswheel-ubuntu:~$ ifconfig -a
enp0s3 Link encap:Ethernet HWaddr 08:00:27:6c:fe:37
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::8101:eb17:eadf:2460/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3067 errors:0 dropped:0 overruns:0 frame:0
TX packets:1421 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2647804 (2.6 MB) TX bytes:151006 (151.0 KB)
enp0s8 Link encap:Ethernet HWaddr 08:00:27:e0:8a:d0
inet addr:192.168.2.3 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::defb:eb7c:e7c2:653d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:146 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:14744 (14.7 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:817 errors:0 dropped:0 overruns:0 frame:0
TX packets:817 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:77424 (77.4 KB) TX bytes:77424 (77.4 KB)
Below is the output when I have both NICs set to DHCP. There is no IPV4 address, not even a non-routable IP. With this config, I can browse the internet from the guest.
Code: Select all
jaswheel@jaswheel-ubuntu:~$ ifconfig -a
enp0s3 Link encap:Ethernet HWaddr 08:00:27:6c:fe:37
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::8101:eb17:eadf:2460/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7412 errors:0 dropped:0 overruns:0 frame:0
TX packets:3217 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7284657 (7.2 MB) TX bytes:475396 (475.3 KB)
enp0s8 Link encap:Ethernet HWaddr 08:00:27:e0:8a:d0
inet6 addr: fe80::defb:eb7c:e7c2:653d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:105 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:17938 (17.9 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:648 errors:0 dropped:0 overruns:0 frame:0
TX packets:648 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:69669 (69.6 KB) TX bytes:69669 (69.6 KB)