Why can't I see my internal network in VM?

The name of the pictureThe name of the pictureThe name of the pictureClash 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:



Adapter 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).



The result of ifconfig



Why is the internal adapter not showing up?



EDIT: here's what I get if I run cat /etc/network/interfaces



interfaces file content







share|improve this question


















  • 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














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:



Adapter 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).



The result of ifconfig



Why is the internal adapter not showing up?



EDIT: here's what I get if I run cat /etc/network/interfaces



interfaces file content







share|improve this question


















  • 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












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:



Adapter 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).



The result of ifconfig



Why is the internal adapter not showing up?



EDIT: here's what I get if I run cat /etc/network/interfaces



interfaces file content







share|improve this question














I'm running a Lubuntu 16.04 (CLI) virtual machine with VirtualBox. I added a second network adapter with the following features:



Adapter 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).



The result of ifconfig



Why is the internal adapter not showing up?



EDIT: here's what I get if I run cat /etc/network/interfaces



interfaces file content









share|improve this question













share|improve this question




share|improve this question








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 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












  • 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







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










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





share|improve this answer
















  • 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










  • I just tried with enp0s8 and it works! Thanks :)
    – Robb1
    Nov 19 '17 at 8:06






  • 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










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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






























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





share|improve this answer
















  • 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










  • I just tried with enp0s8 and it works! Thanks :)
    – Robb1
    Nov 19 '17 at 8:06






  • 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














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





share|improve this answer
















  • 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










  • I just tried with enp0s8 and it works! Thanks :)
    – Robb1
    Nov 19 '17 at 8:06






  • 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












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





share|improve this answer












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






share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 19 '17 at 7:59









Mountainerd

400111




400111







  • 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










  • I just tried with enp0s8 and it works! Thanks :)
    – Robb1
    Nov 19 '17 at 8:06






  • 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












  • 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










  • I just tried with enp0s8 and it works! Thanks :)
    – Robb1
    Nov 19 '17 at 8:06






  • 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







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

















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay