Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
vms:webdev:start [2014/10/30 14:12] admin [Setup Network Adapters] |
vms:webdev:start [2014/10/30 14:16] admin [Setup Network Adapters] |
||
---|---|---|---|
Line 42: | Line 42: | ||
This will indicate the allocated DHCP address for your VM, here 10.0.7.61. | This will indicate the allocated DHCP address for your VM, here 10.0.7.61. | ||
- | From there you might want to use a terminal emulator to access the VM as it will usually be easier to use than the standard VM screen that has no scroll back and copy/paste functionality for example. | + | From there you might want to use a terminal emulator to access the VM as it will usually be easier to use than the standard VM screen that has no scroll back or copy/paste functionality for example. |
- | Let's now fix the secondary (local) IP address, to this purpose, let's modify the // /etc/network/interfaces // file: | + | Let's now fix the secondary (local) IP address. To this purpose, let's modify the // /etc/network/interfaces // file to make it look like what follows: |
<code> | <code> | ||
> nano /etc/network/interfaces | > nano /etc/network/interfaces | ||
+ | # This file describes the network interfaces available on your system | ||
+ | # and how to activate them. For more information, see interfaces(5). | ||
+ | |||
+ | # The loopback network interface | ||
+ | auto lo | ||
+ | iface lo inet loopback | ||
+ | |||
+ | # The primary network interface | ||
+ | allow-hotplug eth0 | ||
+ | iface eth0 inet dhcp | ||
+ | |||
+ | # Alias for static inner interface | ||
+ | auto eth1 | ||
+ | iface eth1 inet static | ||
+ | name static alias LAN card | ||
+ | address 172.20.20.2 | ||
+ | netmask 255.255.255.0 | ||
+ | broadcast 172.20.20.255 | ||
+ | network 172.20.20.0 | ||
</code> | </code> | ||
----- | ----- | ||
It is now time to [[apache|install the HTTP Server (Apache2)]]. | It is now time to [[apache|install the HTTP Server (Apache2)]]. |