Static routing
Upcoming SlideShare
Loading in...5
×
 

Static routing

on

  • 655 views

 

Statistics

Views

Total Views
655
Views on SlideShare
655
Embed Views
0

Actions

Likes
0
Downloads
11
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Static routing Static routing Presentation Transcript

  • Statinis maršrutizavimas
    • 1. IOS Vartotojo režimas
    • Galimi du režimai:
    • Neprivilegijuotas
    • Privilegijuotas
    • Kai Jus jungiatės prie maršrutizatoriaus jus esate neprivilegi-juotame režime.
    Router>
  • 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
  • 1.2 Jei maršrutizatoriaus konfigūraciją reikęs keisti, tai reikia pereiti į administratoriaus (privilegijuotą) režimą. Naudokite šita komanda:
    • Router> enable
    • Password:
    • Router# ( Privileged mode prompt )
  • 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.
    • Router# configureterminal
    • Enter configuration commands,one per line.End with Ctrl-Z
    • Router(config)# ( Konfigūravimorežimas)
  • 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.
    • Router(config)#exit
    • Router#disable
    • Router>
    • 2. Statinis maršrutizavimas
    • 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.
    • ip route prefix mask { address | interface }
    • ,kur
    • Prefix – IP route prefix adresato
    • Mask – P refix mask adresato
    • address – IP address kito mazgo , kuris gali buti panaudotas, kad pasiekti šita tinklą
    • Interface – network interface
  • 2.1 prisijungimas prie maršrutizatoriaus
    • Įjungiam routerį.
    • Jeigu buvo anksčiau sukonfi-gūruotas, šalinam konfigūra-cijas:
    • Router> enable
    • Router# erase startup configuration
    • Router# reload
    • Atsisakom automatiškai konfigūruoti:
    • Would you like to enter the initial dialog? [yes]: no
    • Pokeliu sekundžių bus galima pradėti dirbti su maršrutizatorių.
  • 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
  • 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
  • 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
  • CISCO: %Inconsistent address and mask...
    • >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).
  • Lentele
    • &quot;32&quot;,&quot;/32&quot;,&quot;255.255.255.255&quot;,&quot;0.0.0.0“
    • &quot;31&quot;,&quot;/31&quot;,&quot;255.255.255.254&quot;,&quot;0.0.0.1“
    • &quot;30&quot;,&quot;/30&quot;,&quot;255.255.255.252&quot;,&quot;0.0.0.3“
    • &quot;29&quot;,&quot;/29&quot;,&quot;255.255.255.248&quot;,&quot;0.0.0.7“
    • &quot;28&quot;,&quot;/28&quot;,&quot;255.255.255.240&quot;,&quot;0.0.0.15“
    • &quot;27&quot;,&quot;/27&quot;,&quot;255.255.255.224&quot;,&quot;0.0.0.31“
    • &quot;26&quot;,&quot;/26&quot;,&quot;255.255.255.192&quot;,&quot;0.0.0.63“
    • &quot;25&quot;,&quot;/25&quot;,&quot;225.255.255.128&quot;,&quot;0.0.0.127”
    • &quot;24&quot;,&quot;/24&quot;,&quot;255.255.255.0&quot;,&quot;0.0.0.255“
    • &quot;23&quot;,&quot;/23&quot;,&quot;255.255.254.0&quot;,&quot;0.0.1.255“
    • &quot;22&quot;,&quot;/22&quot;,&quot;255.255.252.0&quot;,&quot;0.0.3.255“
    • &quot;21&quot;,&quot;/21&quot;,&quot;255.255.248.0&quot;,&quot;0.0.7.255“
    • &quot;20&quot;,&quot;/20&quot;,&quot;255.255.240.0&quot;,&quot;0.0.15.255“
    • &quot;19&quot;,&quot;/19&quot;,&quot;255.255.224.0&quot;,&quot;0.0.31.255“
    • &quot;18&quot;,&quot;/18&quot;,&quot;255.255.192.0&quot;,&quot;0.0.63.255“
    • &quot;17&quot;,&quot;/17&quot;,&quot;255.255.128.0&quot;,&quot;0.0.127.255“
    • “ 16&quot;,&quot;/16&quot;,&quot;255.255.0.0&quot;,&quot;0.0.255.255&quot;
    • &quot;15&quot;,&quot;/15&quot;,&quot;255.254.0.0&quot;,&quot;0.1.255.255“
    • &quot;14&quot;,&quot;/14&quot;,&quot;255.252.0.0&quot;,&quot;0.3.255.255“
    • &quot;13&quot;,&quot;/13&quot;,&quot;255.248.0.0&quot;,&quot;0.7.255.255“
    • &quot;12&quot;,&quot;/12&quot;,&quot;255.240.0.0&quot;,&quot;0.15.255.255“
    • &quot;11&quot;,&quot;/11&quot;,&quot;255.224.0.0&quot;,&quot;0.31.255.255“
    • &quot;10&quot;,&quot;/10&quot;,&quot;255.192.0.0&quot;,&quot;0.63.255.255“
    • “ 9&quot;,“ /9&quot;,&quot;255.128.0.0&quot;,&quot;0.127.255.255“
    • “ 8&quot;,“ /8&quot;,&quot;255.0.0.0&quot;,&quot;0.255.255.255“
    • “ 7&quot;,“ /7&quot;,&quot;254.0.0.0&quot;,&quot;1.255.255.255“
    • “ 6&quot;,“ /6&quot;,&quot;252.0.0.0&quot;,&quot;3.255.255.255“
    • “ 5&quot;,“ /5&quot;,&quot;248.0.0.0&quot;,&quot;7.255.255.255“
    • “ 4&quot;,“ /4&quot;,&quot;240.0.0.0&quot;,&quot;15.255.255.255“
    • “ 3&quot;,“ /3&quot;,&quot;224.0.0.0&quot;,&quot;31.255.255.255“
    • “ 2&quot;,“ /2&quot;,&quot;192.0.0.0&quot;,&quot;63.255.255.255“
    • “ 1&quot;,“ /1&quot;,&quot;128.0.0.0&quot;,&quot;127.255.255.255“
    • “ 0&quot;,“ /0&quot;,&quot;0.0.0.0&quot;,&quot;255.255.255.255&quot;}
    • Q & A
    Denis Naugolnikov Šiaulių Universitetas Technologijos fakultetas [email_address] 2008