Why can't I see my internal network in VM?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I'm running a Lubuntu 16.04 (CLI) virtual machine with VirtualBox. I added a second network adapter with the following features:
I then runt the following command on my terminal, to configure a DHCP server:
VBoxManage dhcpserver add --netname pomolab --ip 11.11.11.1 --netmask 255.255.255.0 --lowerip 11.11.11.3 --upperip 11.11.11.20 --enable
Now, if I run ifconfig
inside the guest machine I can see only the loopback interface and the NAT interface (Adapter 1).
Why is the internal adapter not showing up?
EDIT: here's what I get if I run cat /etc/network/interfaces
linux virtualbox virtual-machine network-interface
add a comment |Â
up vote
0
down vote
favorite
I'm running a Lubuntu 16.04 (CLI) virtual machine with VirtualBox. I added a second network adapter with the following features:
I then runt the following command on my terminal, to configure a DHCP server:
VBoxManage dhcpserver add --netname pomolab --ip 11.11.11.1 --netmask 255.255.255.0 --lowerip 11.11.11.3 --upperip 11.11.11.20 --enable
Now, if I run ifconfig
inside the guest machine I can see only the loopback interface and the NAT interface (Adapter 1).
Why is the internal adapter not showing up?
EDIT: here's what I get if I run cat /etc/network/interfaces
linux virtualbox virtual-machine network-interface
1
Did you already configure the interface to autostart? You may need to add something likeauto eth1 iface eth1 inet dhcp
in your /etc/network/interfaces file.
â Mountainerd
Nov 19 '17 at 7:50
@JoshuaBlair thanks for your answer. I added the content of the/etc/network/interfaces
file. Do you still think I should add your line of code?
â Robb1
Nov 19 '17 at 7:56
It doesn't look like your second adapter is configured. Added an answer below.
â Mountainerd
Nov 19 '17 at 8:00
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm running a Lubuntu 16.04 (CLI) virtual machine with VirtualBox. I added a second network adapter with the following features:
I then runt the following command on my terminal, to configure a DHCP server:
VBoxManage dhcpserver add --netname pomolab --ip 11.11.11.1 --netmask 255.255.255.0 --lowerip 11.11.11.3 --upperip 11.11.11.20 --enable
Now, if I run ifconfig
inside the guest machine I can see only the loopback interface and the NAT interface (Adapter 1).
Why is the internal adapter not showing up?
EDIT: here's what I get if I run cat /etc/network/interfaces
linux virtualbox virtual-machine network-interface
I'm running a Lubuntu 16.04 (CLI) virtual machine with VirtualBox. I added a second network adapter with the following features:
I then runt the following command on my terminal, to configure a DHCP server:
VBoxManage dhcpserver add --netname pomolab --ip 11.11.11.1 --netmask 255.255.255.0 --lowerip 11.11.11.3 --upperip 11.11.11.20 --enable
Now, if I run ifconfig
inside the guest machine I can see only the loopback interface and the NAT interface (Adapter 1).
Why is the internal adapter not showing up?
EDIT: here's what I get if I run cat /etc/network/interfaces
linux virtualbox virtual-machine network-interface
edited Nov 19 '17 at 15:48
Mountainerd
400111
400111
asked Nov 19 '17 at 7:28
Robb1
12518
12518
1
Did you already configure the interface to autostart? You may need to add something likeauto eth1 iface eth1 inet dhcp
in your /etc/network/interfaces file.
â Mountainerd
Nov 19 '17 at 7:50
@JoshuaBlair thanks for your answer. I added the content of the/etc/network/interfaces
file. Do you still think I should add your line of code?
â Robb1
Nov 19 '17 at 7:56
It doesn't look like your second adapter is configured. Added an answer below.
â Mountainerd
Nov 19 '17 at 8:00
add a comment |Â
1
Did you already configure the interface to autostart? You may need to add something likeauto eth1 iface eth1 inet dhcp
in your /etc/network/interfaces file.
â Mountainerd
Nov 19 '17 at 7:50
@JoshuaBlair thanks for your answer. I added the content of the/etc/network/interfaces
file. Do you still think I should add your line of code?
â Robb1
Nov 19 '17 at 7:56
It doesn't look like your second adapter is configured. Added an answer below.
â Mountainerd
Nov 19 '17 at 8:00
1
1
Did you already configure the interface to autostart? You may need to add something like
auto eth1 iface eth1 inet dhcp
in your /etc/network/interfaces file.â Mountainerd
Nov 19 '17 at 7:50
Did you already configure the interface to autostart? You may need to add something like
auto eth1 iface eth1 inet dhcp
in your /etc/network/interfaces file.â Mountainerd
Nov 19 '17 at 7:50
@JoshuaBlair thanks for your answer. I added the content of the
/etc/network/interfaces
file. Do you still think I should add your line of code?â Robb1
Nov 19 '17 at 7:56
@JoshuaBlair thanks for your answer. I added the content of the
/etc/network/interfaces
file. Do you still think I should add your line of code?â Robb1
Nov 19 '17 at 7:56
It doesn't look like your second adapter is configured. Added an answer below.
â Mountainerd
Nov 19 '17 at 8:00
It doesn't look like your second adapter is configured. Added an answer below.
â Mountainerd
Nov 19 '17 at 8:00
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
Whatever the name is of your second adapter it isn't in your interfaces file. You need to add it. Just add the lines and restart networking (change the adapter name to fit your environment):
auto enp0s8
iface enp0s8 inet dhcp
1
How to get what adapter name should I use? I tried witheth1
as you suggested earlier butifconfig
still shows the same output
â Robb1
Nov 19 '17 at 8:04
I just tried withenp0s8
and it works! Thanks :)
â Robb1
Nov 19 '17 at 8:06
1
No problem! FYI:ip addr
may show you your adapters or doing als /sys/class/net
may show you your adapters as well.
â Mountainerd
Nov 19 '17 at 8:07
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
Whatever the name is of your second adapter it isn't in your interfaces file. You need to add it. Just add the lines and restart networking (change the adapter name to fit your environment):
auto enp0s8
iface enp0s8 inet dhcp
1
How to get what adapter name should I use? I tried witheth1
as you suggested earlier butifconfig
still shows the same output
â Robb1
Nov 19 '17 at 8:04
I just tried withenp0s8
and it works! Thanks :)
â Robb1
Nov 19 '17 at 8:06
1
No problem! FYI:ip addr
may show you your adapters or doing als /sys/class/net
may show you your adapters as well.
â Mountainerd
Nov 19 '17 at 8:07
add a comment |Â
up vote
1
down vote
accepted
Whatever the name is of your second adapter it isn't in your interfaces file. You need to add it. Just add the lines and restart networking (change the adapter name to fit your environment):
auto enp0s8
iface enp0s8 inet dhcp
1
How to get what adapter name should I use? I tried witheth1
as you suggested earlier butifconfig
still shows the same output
â Robb1
Nov 19 '17 at 8:04
I just tried withenp0s8
and it works! Thanks :)
â Robb1
Nov 19 '17 at 8:06
1
No problem! FYI:ip addr
may show you your adapters or doing als /sys/class/net
may show you your adapters as well.
â Mountainerd
Nov 19 '17 at 8:07
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
Whatever the name is of your second adapter it isn't in your interfaces file. You need to add it. Just add the lines and restart networking (change the adapter name to fit your environment):
auto enp0s8
iface enp0s8 inet dhcp
Whatever the name is of your second adapter it isn't in your interfaces file. You need to add it. Just add the lines and restart networking (change the adapter name to fit your environment):
auto enp0s8
iface enp0s8 inet dhcp
answered Nov 19 '17 at 7:59
Mountainerd
400111
400111
1
How to get what adapter name should I use? I tried witheth1
as you suggested earlier butifconfig
still shows the same output
â Robb1
Nov 19 '17 at 8:04
I just tried withenp0s8
and it works! Thanks :)
â Robb1
Nov 19 '17 at 8:06
1
No problem! FYI:ip addr
may show you your adapters or doing als /sys/class/net
may show you your adapters as well.
â Mountainerd
Nov 19 '17 at 8:07
add a comment |Â
1
How to get what adapter name should I use? I tried witheth1
as you suggested earlier butifconfig
still shows the same output
â Robb1
Nov 19 '17 at 8:04
I just tried withenp0s8
and it works! Thanks :)
â Robb1
Nov 19 '17 at 8:06
1
No problem! FYI:ip addr
may show you your adapters or doing als /sys/class/net
may show you your adapters as well.
â Mountainerd
Nov 19 '17 at 8:07
1
1
How to get what adapter name should I use? I tried with
eth1
as you suggested earlier but ifconfig
still shows the same outputâ Robb1
Nov 19 '17 at 8:04
How to get what adapter name should I use? I tried with
eth1
as you suggested earlier but ifconfig
still shows the same outputâ Robb1
Nov 19 '17 at 8:04
I just tried with
enp0s8
and it works! Thanks :)â Robb1
Nov 19 '17 at 8:06
I just tried with
enp0s8
and it works! Thanks :)â Robb1
Nov 19 '17 at 8:06
1
1
No problem! FYI:
ip addr
may show you your adapters or doing a ls /sys/class/net
may show you your adapters as well.â Mountainerd
Nov 19 '17 at 8:07
No problem! FYI:
ip addr
may show you your adapters or doing a ls /sys/class/net
may show you your adapters as well.â Mountainerd
Nov 19 '17 at 8:07
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f405556%2fwhy-cant-i-see-my-internal-network-in-vm%23new-answer', 'question_page');
);
Post as a guest
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
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
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
1
Did you already configure the interface to autostart? You may need to add something like
auto eth1 iface eth1 inet dhcp
in your /etc/network/interfaces file.â Mountainerd
Nov 19 '17 at 7:50
@JoshuaBlair thanks for your answer. I added the content of the
/etc/network/interfaces
file. Do you still think I should add your line of code?â Robb1
Nov 19 '17 at 7:56
It doesn't look like your second adapter is configured. Added an answer below.
â Mountainerd
Nov 19 '17 at 8:00