Importing debian.ova once
(reset MAC address + name it server)
Importing again debian.ova
(reset MAC address + name it client)
- Click on server
- Click on settings
- Click on network
- Click on adapter 2
- Click on enable network
- Click on internal network
- OK
Do it again for the client
Boot server
Login : root Password : 1234
Edit /etc/network/interfaces
add these lines at the bottom :
auto eth1
iface eth1 inet static
address 192.168.102.4
netmask 255.255.255.0
And restart the network : /etc/init.d/networking restart
On server :
apt-get install isc-dhcp-server
Edit /etc/default/isc-dhcp-server and add :
INTERFACES="eth1"
Then edit /etc/dhcp/dhcpd.conf and add a subnetwork :
subnet 192.168.102.0 netmask 255.255.255.0 {
range 192.168.102.10 192.168.102.254;
}
Restart the DHCP server /etc/init.d/isc-dhcp-server restart
Edit /etc/network/interfaces on the client and add these lines :
auto eth1
iface eth1 inet dhcp
And restart the network : /etc/init.d/networking restart
On the client : ifconfig should return an address in the range configured on the server.
On the server /var/lib/dhcp/dhcpd.leases should contain your client lease.