1 / 6

Connettersi al mondo esterno

Connettersi al mondo esterno. vconfig --eth2=tap,192.168.1.1,192.168.1.2. pc1. pc2. 192.168.1.2. r1. eth2. r2. HOST. eth0. tap. 192.168.1.1. IP reale. Esercizio. Modificare le routes in maniera tale da rendere accessibile il mondo esterno sia a pc1 che a pc2. Configurare il DNS.

ossie
Download Presentation

Connettersi al mondo esterno

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Connettersi al mondo esterno • vconfig --eth2=tap,192.168.1.1,192.168.1.2 pc1 pc2 192.168.1.2 r1 eth2 r2 HOST eth0 tap 192.168.1.1 IP reale Realizzato da Roberto Savino

  2. Esercizio • Modificare le routes in maniera tale da rendere accessibile il mondo esterno sia a pc1 che a pc2 Realizzato da Roberto Savino

  3. Configurare il DNS • Aggiungere al file /etc/resolv.conf il rigo: • nameserver 160.97.47.2 Realizzato da Roberto Savino

  4. Routing gerarchico • Che priorità nell’ordine di scelta nella tabella di routing? • Si da priorità ai route ‘più specifici’ cioè quelli che hanno valore di maschera più alto • Es. pacchetto destinato a 160.97.47.2 • 160.97.0.0/16 -> next hop: R2 • 160.97.47/24 -> next hop: R1 • Viene scelto il secondo route • A parità di maschera si sceglie il route con metrica (attuale) più bassa • A parità di metrica le singole implementazioni fanno scelte diverse (es. ordine di comparsa nella tabella) Realizzato da Roberto Savino

  5. ... ... Routing gerarchico (2) • Utile per fare tabelle di routing più snelle S 10.0.0.0/16 ....... R 10.0.1.0/24 10.0.2.0/24 L1-L2 Tabella di S 160.97.24.0/24 -> R 160.97.47.0/24 -> R OPPURE 160.97.0.0/16 -> R L3-L4 Realizzato da Roberto Savino

  6. ... ... Routing gerarchico (3) • Il route più specifico ha però la priorità S 10.0.0.0/16 ....... R 10.0.1.0/24 10.0.2.0/24 G L1-L2 Tabella di S 160.97.0.0/16 -> R 160.97.47.0/24 -> G VINCE G L3-L4 Realizzato da Roberto Savino

More Related