From 3fbcd5310f9b132d4f757de80b6a9178c9a8159b Mon Sep 17 00:00:00 2001 From: "al0115@student.uni-lj.si" Date: Mon, 15 Dec 2014 23:19:54 +0000 Subject: nekkii git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@86 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- .../tasks/isc_dhcp_live_boot/howtos/si/index.html | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/kpov_judge/tasks/isc_dhcp_live_boot/howtos/si/index.html b/kpov_judge/tasks/isc_dhcp_live_boot/howtos/si/index.html index e4cf33d..3b53422 100644 --- a/kpov_judge/tasks/isc_dhcp_live_boot/howtos/si/index.html +++ b/kpov_judge/tasks/isc_dhcp_live_boot/howtos/si/index.html @@ -187,18 +187,16 @@ SimpleArbiterGW. href="http://www.polz.si/media/uploads/kpov/virtualke/simpleArbiterGW.vdi">simpleArbiterGW.vdi and then run VirtualBox. After the file is downloaded, choose the New option in VirtualBoxu and set simpleArbiterGW in the Name -field.
Memory size should be set accordingly (1gb will suffice). -Spodaj -izberemo še "Use an existing virtual hard drive file" ter izberemo naš simpleArbiterGW.vdi in pritisnimo Create.

+field.
Memory size should be set accordingly (1gb will suffice). Then choose "Use an existing virtual hard drive file" and select simpleArbiterGW.vdi clicking Create.


slika-02

We start our virtual machines simpleArbiterGW using the following login credentials; username: "root", password: "kaboom".

- Prvo računalnik od NAT-a, kateri je vgrajen v VirtualBox dobi nek naslov (v našem primeru 10.0.2.15).
(Da to preverimo uporabimo ukaz ifconfig) Preko tega IP naslova in vmesnika eth0 smo povezani v internet.

+ At the start, the computer on NAt get's it's IP(in our case 10.0.2.15).
(to check this useifconfig) We now use this address and eth0 interface to access the internet.

slika-03

However, we would like this machine to have 2 -interfaces! One on NAT(we already have this one), and the other one on Internal Network,
preko katerega bomo komunicirali z DHCP Strežnikom ter ostalimi računalniki, ki bodo v našem Internal Network-u.

+interfaces! One on NAT(we already have this one), and the other one on Internal Network,
throuh which we will communicate wiht the DHCP Server and other machines on our Internal Network.

We add a new interface, by turning off the virtual machine, select our machine in VirtualBox and select računalnik, ter v VirtualBoxu Settings -> Network
@@ -209,8 +207,8 @@ Internal Network

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

- Zdaj moramo oba omrežna vmesnika nastaviti tako, da bosta imela nek naslov. Uredimo datoteko interfaces v imeniku - /etc/network.

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

slika-05

Eth0 was already handled by and integrated DHCP, so eth0 had been assigned an IP).
We have to set up the other network interface. If we don't know it's name, we find it out using ifconfig -a.

@@ -219,12 +217,12 @@ will suffice. We save the settings and restart simpleArbiterGW.

Now we would like to assign an IP naslov to Eth1.
Ifconfig could be used, but rebooting the machine would reset the settings. Which is not ideal :)
So configuring /etc/network/interfaces would be a better idea.

- Izmislimo si eno naključno lokalno omrežje oz naslov lokalnega omrežja ter nastavimo eth1. + Let's make up a random local network or a local area network or local area network address and assign it to eth1.

slika-07 -

Shranimo konfiguracijsko datoteko. Moj računalnik še nima IP-ja na eth1 zato uporabim ukaz ifup eth1

+

We save the config file. Our machine still has no IP on eth1 so we use the ifup eth1 command

slika-08
-

Now ew use the ifconfig command, to see whether and ip is assigned to eth1 interface

+

Now we use the ifconfig command, to see whether and ip is assigned to eth1 interface

slika-09

We can see the IP is set. Now let's set up the DHCP Server!

-- cgit v1.2.1