Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
virtualbox [2015/07/29 09:45] steve [Networking] |
virtualbox [2015/08/18 16:44] steve [Gentoo] |
||
---|---|---|---|
Line 34: | Line 34: | ||
This will give the IP address (should end with .1), the broadcast and netmask as well. On the guest, set the configuration for the local network IP address to something in that same subdomain, and you should be able to log in just fine. | This will give the IP address (should end with .1), the broadcast and netmask as well. On the guest, set the configuration for the local network IP address to something in that same subdomain, and you should be able to log in just fine. | ||
+ | |||
+ | Here's an example on Ubuntu for ''eth1'' in ''/etc/network/interfaces'': | ||
+ | |||
+ | <code> | ||
+ | auto eth1 | ||
+ | iface eth1 inet static | ||
+ | address 192.168.56.10 | ||
+ | netmask 255.255.255.0 | ||
+ | </code> | ||
+ | |||
+ | Also, an example for ''enp0s8'' in ''/etc/conf.d/net'': | ||
+ | |||
+ | <code> | ||
+ | config_enp0s8="192.168.56.20 netmask 255.255.255.0 | ||
+ | </code> | ||
==== Gentoo ==== | ==== Gentoo ==== | ||
Line 46: | Line 61: | ||
<code> | <code> | ||
/etc/init.d/modules restart | /etc/init.d/modules restart | ||
+ | </code> | ||
+ | |||
+ | Setup the network address manually for the local vboxnet0 network. | ||
+ | |||
+ | Add to ''/etc/conf.d/net'': | ||
+ | |||
+ | <code> | ||
+ | config_enp0s8="192.168.56.2 netmask 255.255.255.0" | ||
</code> | </code> |