Static routing

826 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
826
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
16
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Static routing

  1. 1. Statinis maršrutizavimas
  2. 2. <ul><li>1. IOS Vartotojo režimas </li></ul>
  3. 3. <ul><li>Galimi du režimai: </li></ul><ul><li>Neprivilegijuotas </li></ul><ul><li>Privilegijuotas </li></ul><ul><li>Kai Jus jungiatės prie maršrutizatoriaus jus esate neprivilegi-juotame režime. </li></ul>Router>
  4. 4. 1.1 Komanda show neprivilegijuotame režime ribota. Jūs negalite redaguoti arba žiūrėti konfigū - racijas šitame režime; Jūs galite tik peržiūrėti maršrutizatoriaus statusą ir kita įvairia informacija. Router>? Execcommands: <1-99> Sessionnumbertoresume connect Openaterminalconnection disconnect Disconnectanexistingnetworkconnection enable Turnonprivilegedcommands exit ExitfromtheEXEC logout ExitfromtheEXEC ping Sendechomessages resume Resumeanactivenetworkconnection show Showrunningsysteminformation telnet Openatelnetconnection traceroute Traceroutetodestination Router> show ip route Codes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGP D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2 E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP i-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea *-candidatedefault,U-per-userstaticroute,o-ODR P-periodicdownloadedstaticroute Gateway of last resort is not set 172.20.0.0/24 is subnetted,1subnets C 172.20.2.0 is directly connected,FastEthernet0/1 S 192.168.1.0/24[1/0] via172.20.2.2
  5. 5. 1.2 Jei maršrutizatoriaus konfigūraciją reikęs keisti, tai reikia pereiti į administratoriaus (privilegijuotą) režimą. Naudokite šita komanda: <ul><li>Router> enable </li></ul><ul><li>Password: </li></ul><ul><li>Router# ( Privileged mode prompt ) </li></ul>
  6. 6. 1.3 Dabar galima keisti maršrutizatoriaus konfigūracija. Kad tai padaryti reikia įvesti komanda: configure terminal arba conf t Šita komanda galima įvesti jeigu Jūs esate privilegijuotame režime. <ul><li>Router# configureterminal </li></ul><ul><li>Enter configuration commands,one per line.End with Ctrl-Z </li></ul><ul><li>Router(config)# ( Konfigūravimorežimas) </li></ul>
  7. 7. 1.4 Kad išeiti iš konfigūravimo režimo, Jūs galite pasinaudoti komanda exit (ex) arba klavišų kombi-nacija Ctrl-Z . Kad išeiti iš privilegijuoto režimo galima pasinaudoti disable komanda. <ul><li>Router(config)#exit </li></ul><ul><li>Router#disable </li></ul><ul><li>Router> </li></ul>
  8. 8. <ul><li>2. Statinis maršrutizavimas </li></ul>
  9. 9. <ul><li>Statinis maršrutizavimas tai vartotojo nustatyti maršrutai, kurie priverčia paketus tarp šaltinio ir adresato nukelti pagal nurodyta kelia. Ta prireikia kai Cisco negali dinamiškai formuoti maršrutą adresatui. </li></ul><ul><li>ip route prefix mask { address | interface } </li></ul><ul><li>,kur </li></ul><ul><li>Prefix – IP route prefix adresato </li></ul><ul><li>Mask – P refix mask adresato </li></ul><ul><li>address – IP address kito mazgo , kuris gali buti panaudotas, kad pasiekti šita tinklą </li></ul><ul><li>Interface – network interface </li></ul>
  10. 10. 2.1 prisijungimas prie maršrutizatoriaus <ul><li>Įjungiam routerį. </li></ul><ul><li>Jeigu buvo anksčiau sukonfi-gūruotas, šalinam konfigūra-cijas: </li></ul><ul><li>Router> enable </li></ul><ul><li>Router# erase startup configuration </li></ul><ul><li>Router# reload </li></ul><ul><li>Atsisakom automatiškai konfigūruoti: </li></ul><ul><li>Would you like to enter the initial dialog? [yes]: no </li></ul><ul><li>Pokeliu sekundžių bus galima pradėti dirbti su maršrutizatorių. </li></ul>
  11. 11. 2.2. Pavyzdys 1 10.10.10.2/24 10.10.10.1/24 172.20.1.1/24 172.20.2.1/24 172.20.1.2/24 172.20.2.2/24 192.168.1.1/24 192.168.1.2/24 Router 0 > en able Router 0 # configure terminal Enter configuration commands,one per line. End with CNTL/Z. Router 0 (config)# ip route 172.20.2.0 255.255.255.0 172.20.1.2 Router 0 (config)# ip route 172.168.1.0 255.255.255.0 172.20.1.2
  12. 12. 2.2. Pavyzdys 1 10.10.10.2/24 10.10.10.1/24 172.20.1.1/24 172.20.2.1/24 172.20.1.2/24 172.20.2.2/24 192.168.1.1/24 192.168.1.2/24 Router1> en able Router1# configure terminal Enterconfigurationcommands,oneperline.EndwithCNTL/Z. Router1(config)# ip route 1 92.168.1.0 255.255.255.0 172.20. 2 .2 Router1(config)# ip route 10.10.10 .0 255.255.255.0 172 .2 0.1.1
  13. 13. 2.2pavyzdys 10.10.10.1/24 172.20.1.1/24 172.20.2.1/24 172.20.1.2/24 172.20.2.2/24 192.168.1.1/24 Router 2 > en able Router 2 # configure terminal Enterconfigurationcommands,oneperline.EndwithCNTL/Z. Router 2 (config)# ip route 1 72.20.1.0 255.255.255.0 172.20. 2 . 1 Router 2 (config)# ip route 10.10.10 .0 255.255.255.0 172 .2 0.2.1
  14. 14. CISCO: %Inconsistent address and mask... <ul><li>>Rašom: >ip route x.x.x.168 255.255.255.248 a2 >-ok >O jeigu: >ip route x.x.x.168 255.255.255.240 a2 >%Inconsistent address and mask... > >Ką daryti? Tikrinti save. Taisykle paprasta – potinklio adresas turi buti kartotinis jo dydžiui, t.y. 168 iš 8 dalijąsi , o iš 16 – ne ( o 160 tinka). </li></ul>
  15. 15. Lentele <ul><li>&quot;32&quot;,&quot;/32&quot;,&quot;255.255.255.255&quot;,&quot;0.0.0.0“ </li></ul><ul><li>&quot;31&quot;,&quot;/31&quot;,&quot;255.255.255.254&quot;,&quot;0.0.0.1“ </li></ul><ul><li>&quot;30&quot;,&quot;/30&quot;,&quot;255.255.255.252&quot;,&quot;0.0.0.3“ </li></ul><ul><li>&quot;29&quot;,&quot;/29&quot;,&quot;255.255.255.248&quot;,&quot;0.0.0.7“ </li></ul><ul><li>&quot;28&quot;,&quot;/28&quot;,&quot;255.255.255.240&quot;,&quot;0.0.0.15“ </li></ul><ul><li>&quot;27&quot;,&quot;/27&quot;,&quot;255.255.255.224&quot;,&quot;0.0.0.31“ </li></ul><ul><li>&quot;26&quot;,&quot;/26&quot;,&quot;255.255.255.192&quot;,&quot;0.0.0.63“ </li></ul><ul><li>&quot;25&quot;,&quot;/25&quot;,&quot;225.255.255.128&quot;,&quot;0.0.0.127” </li></ul><ul><li>&quot;24&quot;,&quot;/24&quot;,&quot;255.255.255.0&quot;,&quot;0.0.0.255“ </li></ul><ul><li>&quot;23&quot;,&quot;/23&quot;,&quot;255.255.254.0&quot;,&quot;0.0.1.255“ </li></ul><ul><li>&quot;22&quot;,&quot;/22&quot;,&quot;255.255.252.0&quot;,&quot;0.0.3.255“ </li></ul><ul><li>&quot;21&quot;,&quot;/21&quot;,&quot;255.255.248.0&quot;,&quot;0.0.7.255“ </li></ul><ul><li>&quot;20&quot;,&quot;/20&quot;,&quot;255.255.240.0&quot;,&quot;0.0.15.255“ </li></ul><ul><li>&quot;19&quot;,&quot;/19&quot;,&quot;255.255.224.0&quot;,&quot;0.0.31.255“ </li></ul><ul><li>&quot;18&quot;,&quot;/18&quot;,&quot;255.255.192.0&quot;,&quot;0.0.63.255“ </li></ul><ul><li>&quot;17&quot;,&quot;/17&quot;,&quot;255.255.128.0&quot;,&quot;0.0.127.255“ </li></ul><ul><li>“ 16&quot;,&quot;/16&quot;,&quot;255.255.0.0&quot;,&quot;0.0.255.255&quot; </li></ul><ul><li>&quot;15&quot;,&quot;/15&quot;,&quot;255.254.0.0&quot;,&quot;0.1.255.255“ </li></ul><ul><li>&quot;14&quot;,&quot;/14&quot;,&quot;255.252.0.0&quot;,&quot;0.3.255.255“ </li></ul><ul><li>&quot;13&quot;,&quot;/13&quot;,&quot;255.248.0.0&quot;,&quot;0.7.255.255“ </li></ul><ul><li>&quot;12&quot;,&quot;/12&quot;,&quot;255.240.0.0&quot;,&quot;0.15.255.255“ </li></ul><ul><li>&quot;11&quot;,&quot;/11&quot;,&quot;255.224.0.0&quot;,&quot;0.31.255.255“ </li></ul><ul><li>&quot;10&quot;,&quot;/10&quot;,&quot;255.192.0.0&quot;,&quot;0.63.255.255“ </li></ul><ul><li>“ 9&quot;,“ /9&quot;,&quot;255.128.0.0&quot;,&quot;0.127.255.255“ </li></ul><ul><li>“ 8&quot;,“ /8&quot;,&quot;255.0.0.0&quot;,&quot;0.255.255.255“ </li></ul><ul><li>“ 7&quot;,“ /7&quot;,&quot;254.0.0.0&quot;,&quot;1.255.255.255“ </li></ul><ul><li>“ 6&quot;,“ /6&quot;,&quot;252.0.0.0&quot;,&quot;3.255.255.255“ </li></ul><ul><li>“ 5&quot;,“ /5&quot;,&quot;248.0.0.0&quot;,&quot;7.255.255.255“ </li></ul><ul><li>“ 4&quot;,“ /4&quot;,&quot;240.0.0.0&quot;,&quot;15.255.255.255“ </li></ul><ul><li>“ 3&quot;,“ /3&quot;,&quot;224.0.0.0&quot;,&quot;31.255.255.255“ </li></ul><ul><li>“ 2&quot;,“ /2&quot;,&quot;192.0.0.0&quot;,&quot;63.255.255.255“ </li></ul><ul><li>“ 1&quot;,“ /1&quot;,&quot;128.0.0.0&quot;,&quot;127.255.255.255“ </li></ul><ul><li>“ 0&quot;,“ /0&quot;,&quot;0.0.0.0&quot;,&quot;255.255.255.255&quot;} </li></ul>
  16. 16. <ul><li>Q & A </li></ul>Denis Naugolnikov Šiaulių Universitetas Technologijos fakultetas [email_address] 2008

×