From 8bad4c041b3fa583444bce5b39ae09f74251e4aa Mon Sep 17 00:00:00 2001 From: "al0115@student.uni-lj.si" Date: Fri, 13 Feb 2015 21:49:49 +0000 Subject: pop git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@274 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- .../tasks/isc_dhcp_live_boot/howtos/en/index.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'kpov_judge/tasks') diff --git a/kpov_judge/tasks/isc_dhcp_live_boot/howtos/en/index.html b/kpov_judge/tasks/isc_dhcp_live_boot/howtos/en/index.html index 4bd9780..63d2463 100644 --- a/kpov_judge/tasks/isc_dhcp_live_boot/howtos/en/index.html +++ b/kpov_judge/tasks/isc_dhcp_live_boot/howtos/en/index.html @@ -68,7 +68,7 @@ računalnik, ter v VirtualBoxu Settings -> Network
Internal Network

slika-04

So, now we have two network interfaces!
In VirtuaBox -we can define multiple Internal Networks, however, for our need's two +we can define multiple Internal Networks, however, for our needs two will suffice. We save the settings and restart simpleArbiterGW.

What we must do now, is to assign both interfaces IP addresses. We do this by setting theinterfacesfile located at/etc/network.

@@ -91,7 +91,7 @@ will suffice. We save the settings and restart simpleArbiterGW.

Server!

Setting up DHCP Server

-

We download simpleArbiterDhcp.vdi ter zaženemo VirtualBox. Ko je datoteka prenesena v VirtualBoxu izberemo New ter v polje Name vpišemo DHCP Server.
Ustrezno nastavimo tudi Memory size (1gb pomnilnika nam bo zadostovalo). Spodaj izberemo še "Use an existing virtual hard drive file" ter izberemo naš simpleArbiterDhcp in pritisnimo Create.

+

We download simpleArbiterDhcp.vdi and start VirtualBox. After the file had been dowloaded we select New in VirtualBoxu and unde rthe Name tag write DHCP Server.
We set the Memory size accordingly(1gb of memory should be sufficient). We also select "Use an existing virtual hard drive file" and select the simpleArbiterDhcp and press Create.


slika-10

We run DHCP Server virtual machine and login using "root" ad username and "kaboom" as password.

@@ -105,7 +105,7 @@ Server!

We got it! We install DHCP server using apt-get install isc-dhcp-server

slika-14

We see a bunch of errors. Why? Bacause, we have no internet access!
- We need to specify the Gateway for our inteface. Our Gateway bo seveda IP našega simpleArbiter navideznega računalnika.
To naredimo s pomočjo ukaza route add default gw 192.168.251.1 eth0

+ We need to specify the Gateway for our inteface. Our Gateway will be set as IP of our simpleArbiter virtual machine.
We do this using theroute add default gw 192.168.251.1 eth0 command

slika-15

Try pinging Google's DNS server at 8.8.8.8, to check if now have internet access.
We do this using the ping 8.8.8.8 command.

@@ -127,14 +127,14 @@ Server!

slika-20

Then we configure DHCP server, so it would serve IPs a a certain subnet. We add the following lines:

slika-21 -

(subnet) We set the subnet and the IP range, which the DHCP server should use, and which file it should serve.

Some PXEs are so unintelligent, that you should specify where they should get the files from and to do that you specify next-server
(IP from which it will be served from, in our case simpleArbiter), we also specify gateway, which, in our case is also simpleArbiter.

Ker bi radi, da v primeru zagona navideznega računalnika BootableClient B serviramo drugo datoteko, to naredimo tako da definiramo nek dodaten host na sledeč način:
(host special) Pod hardware ethernet zapišemo MAC naslov našega BootableClient B katerega bo imel, dodelimo mu nek statičen ip naslov ter povemo še iz kje se naj datoteka live-ISO zažene.

-

We save the settings and kill terthe process with ubijemo named dnsmasqusingkilall dnsmasq.

+

(subnet) We set the subnet and the IP range, which the DHCP server should use, and which file it should serve.

Some PXEs are so unintelligent, that you should specify where they should get the files from and to do that you specify next-server
(IP from which it will be served from, in our case simpleArbiter), we also specify gateway, which, in our case is also simpleArbiter.

Since we would like, that in the case of BootableClient B another file to be served, we do it by defining a special host like this:
(host special) Under hardware ethernet we specifiy MAC address of our BootableClient B, we assign it a static ip and where the file live-ISO is located.

+

We save the settings and kill the process named dnsmasqusingkilall dnsmasq.

slika-22 -

Sledi restart našega DHCP strežnika, da bo deloval z novimi nastavitvami, to naredimo z ukazom service isc-dhcp-server restart
DHCP server is now ready! We supply BootableClientA and BootableClientB and test them!

+

We restart our DHCP server, to apply the new settings. This is done using service isc-dhcp-server restart
command. DHCP server is now ready! We supply BootableClientA and BootableClientB and test them!

-

Postavitev BootableClient A

-

We open VirtualBox and select New, for the y +

Setting up BootableClient A

+

We open VirtualBox and select New, for the Name field we specify BootableClient A and for the Hard drive we select Do not add a virtual @@ -144,7 +144,7 @@ We want the computer to be on Internal network so vse select our A and select
Settings->Network where we change Adapter 1 to Internal Network.

slika-23 -

We also wan our computer to boot through network, so +

We also want our computer to boot through the network, so underBoot Ordertab select Network.
We save the setting by clicking OK

slika-24 -- cgit v1.2.1