Next Previous Contents

5. Etoimazontas ta arxeia diamorfwshs.

SHMEIWSH: Orismenes dianomes, opws h Debian, xrhsimopoioun diaforetika arxeia diamorfwshs. Ean exete mia synh8ismenh egkatastash kai de briskete ta rc.inet* arxeia, koitajte gia (diaforetika) arxeia ston /etc/init.d katalogo.

Prwta apo ola 8ymh8eite na krathsete ena antigrafo olwn twn arxeiwn poy 8a allajete.

#cp rc.inet1 rc.inet1.BACKUP 

Twra, efoson den to exete kanei hdh, prepei na dialejete IP diey8unseis gia ta dyo mhxanhmata. Sta paradeigmata moy 8a xrhsimopoihsw IP diey8unseis sthn kanonikh xxx.xxx.xxx.xxx morfh.

Sto arxeio /etc/rc.d/inet1.rc kai sta dyo mhxanhmata pros8este (kalutera sto telos toy arxeioy):


/sbin/route add -net ${NETWORK} netmask ${NETMASK}

Opoy ta NETWORK kai NETMASK 8a prepei na dhlw8oun nwritera. Ean den jerete pws na to kanete ayto, diabaste to NET-2-HOWTO.

Ean meta apo thn entolh route deite kati san:

SIOCADDRT: network unreachable

tote xrhsimopoihste to parakatw:


/sbin/route add -net ${NETWORK} netmask ${NETMASK} dev plip1  

opoy, ws synh8ws, 8a prepei na xrhsimopoihsete to onoma poy anafer8hke sta mynhmata toy pyrhna (deite parapanw).

Mporeite na parablecete aytes tis metablhtes mono stis parakatw periptwseis:

Ean syndeete ta dyo mhxanhmata se apomonwmeno diktyo mporeite na xrhsimopoihsete opoiadhpote IP dieu8ynsh, px 200.0.0.1 kai 200.0.0.2 antistoixa. Se ayth thn periptwsh mporeite me asfaleia na balete NETWORK="200.0.0.0" kai NETMASK="255.255.255.0".

SHMEIWSH: 200.0.0.1 kai 200.0.0.2 einai mono gia paradeigma. De synistw na tis xrhsimopoihsete, afou mporei na einai diey8unseis pragmatikwn ypologistwn sto internet.

Sas synistw na xrhsimopoihsete diey8unseis metaju twn synolwn "idiwtikwn diey8unsewn":

          10.0.0.0        -   10.255.255.255
          172.16.0.0      -   172.31.255.255
          192.168.0.0     -   192.168.255.255

Sto arxeio /etc/hosts kai sta dyo mhxanhmata prepei na pros8esete tis IP diey8unseis twn mhxanhmatwn poy 8a synde8oun mesw PLIP. Sto paradeigma moy pros8etw ta parakatw:


200.0.0.1       one             # this is the "one" IP address
200.0.0.2       two             # this is the "two" IP address

Opoy one kai two einai ta onomata poy exete epilejei gia toys dyo ypologistes.

Ean 8elete na energopoihsete to NFS, ektos apo to na to pros8esete kata th diamorfwsh toy pyrhna, prepei na pros8esete sto /etc/exports thn perigrafh twn katalogwn poy 8elete na ejagete. Sto paradeigma moy, gia na mporesw na prosarthsw ton katalogo /usr, prepei na proste8ei h parakatw grammh:


 /usr                          two (ro)

Gia perissoteres plhrofories sxetika me to NFS, diabaste ta sxetika eggrafa; mh moy anaferete problhmata me to NFS afou de 8a mporesw na boh8hsw.

Epanekkinhste to susthma.


Next Previous Contents