.
.
.
.
Local and Wide Area Networks Laboratory 4
Static Routes
Routing Information Protocol
1. 2. 3. 4.
Static Routing Routing Information Protocol
2
Static Routes
Dynamic Routing Protocol
Static routes
Static Route Static Route
Cisco Router
Router(config)# ip route network-address subnet-mask Next-Hop-ip-address Router(config)# ip route network-address subnet-mask exit-interface
Dynamic Routing Protocols (
)
Interface
Dynamic Routing
Protocols
5 December 2012
1/12
Local & Wide Area Networks Laboratory
.
Software System
.
.
Router Cisco IOS Version
IOS
.
Internetwork Operating
3 Router Delay Port
Router (Routing Table)
(Class) Interior Gateway Protocols (IGP) Exterior Gateway Protocols (EGP) Interior Gateway Protocols Distance Vector Link State
2
2
Routing Protocol
Distance Vector Routing Protocol Hop : Bandwidth :
Bandwidth Bandwidth
Delay : Delay
5 December 2012
Delay Router
2/12
Local & Wide Area Networks Laboratory
.
Load :
.
.
.
Load (Reliability)
MTU : 1500
Packet
Bandwidth Delay Bandwidth Delay
Hop
Load
Distance Vector Static Route Bandwidth Distance Vector RIP Version 1
RIP Version 1, 2 , IGRP
EIGRP
Cisco Router
router rip
RIP network network-address
passive-interface interface-type interface-number
Network Address RIP Interface Update RIP
default-information originate
RIP Static routes
5 December 2012
3/12
Local & Wide Area Networks Laboratory
.
.
.
1 Static Routes 1.1
.
1
1 1.2
Pc X, Pc Y
1.3
Host
IP address
Subnet Mask
Pc X Pc Y Pc Z
10.0.[x].2 172.16.[y].2 192.168.[z].2
255.255.255.0 255.255.255.0 255.255.255.0
Pc Z Default Gateway 10.0.[x].1 172.16.[y].1 192.168.[z].1
startup-config Router>enable Router#show startup-config
startup-config
Router>enable Router#erase startup-config Router#reload
Restart 5 December 2012
initial configuration dialog 4/12
no
Local & Wide Area Networks Laboratory
.
1.4
Interface type
.
.
.
Serial
1.5
Router#show controllers Serial 0/0 Router#show controllers Serial 0/1
1.5 Router name Udon Bangkok Phuket
Interface Fa0/0 S0/0 Fa0/0 S0/0 S0/1 Fa0/0 S0/1
Interface Type -
Network ID
IP address
10.0.[x].0/24 172.17.[x].0/24 172.16.[y].0/24 172.18.[z].0/24 172.17.[x].0/24 192.168.[z].0/24 172.18.[z].0/24
10.0.[x].1/24 172.17.[x].1/24 172.16.[y].1/24 172.18.[z].1/24 172.17.[x].2/24 192.168.[z].1/24 172.18.[z].2/24
1.6
host name
IP Address interface
Udon
1.7
host name
IP Address interface
Bangkok
1.8
host name
IP Address interface
Phuket
5 December 2012
5/12
1.5
1.5
1.5
Local & Wide Area Networks Laboratory
.
.
.
.
1.9
Interface ____________________________________________________________ _____Ethernet 0/0 is_______________________; line protocol is_____________________________ Internet address is____________________________________________________________________ Serial 0/0 is______________________________; line protocol is______________________________ Internet address is____________________________________________________________________ Serial 0/1 is______________________________; line protocol is______________________________ Internet address is____________________________________________________________________ 1.10 _____Ethernet Serial 1.10.1 Router _________________________________________________________________ 1.10.2 ping Interface Router name Interface IP address ping ( / ) Udon
Bangkok
Phuket
1.10.3
Fa0/0
10.0.[x].1/24
S0/0
172.17.[x].1/24
Fa0/0
172.16.[y].1/24
S0/0
172.18.[z].1/24
S0/1
172.17.[x].2/24
Fa0/0
192.168.[z].1/24
S0/1
172.18.[z].2/24
ping _____________________________________________________________________________ _____________________________________________________________________________
1.11
show ip interface brief
1.12
show ip interface Serial 0/0
1.13
show ip route
5 December 2012
6/12
(Serial
0/1)
Local & Wide Area Networks Laboratory
.
1.14
.
static route Udon default route route summarization)
.
(
.
2
1.14.1
ping Udon Pc Y Pc Z _____________________________________________________________________________ _____________________________________________________________________________ 1.14.2 ping Pc X Pc Y Pc Z _____________________________________________________________________________ _____________________________________________________________________________ 1.15 1.14 static route Bangkok ( 2 default route route summarization)
1.15.1
ping Bangkok Pc X Pc Z _____________________________________________________________________________ _____________________________________________________________________________ 1.15.2 ping Pc Y Pc X Pc Z _____________________________________________________________________________ _____________________________________________________________________________ 1.15.3 ping Pc X Pc Y Pc Z 1.14.2 _____________________________________________________________________________ _____________________________________________________________________________ 1.16 1.15 static route Phuket ( 2 default route route summarization)
5 December 2012
7/12
Local & Wide Area Networks Laboratory
.
1.17
.
.
.
ping Interface Pc X
Pc Y
Pc X Router X Pc Y Router Y Pc Z Router Z 1.18
1.17
1.19
1.17
1.20
Pc Z
Router X Fa 0/0 S 0/0
Router Y S 0/1 Fa 0/0 S 0/0
Router Z S 0/1 Fa 0/0
ping
ping
show ip route
1.21 ......................................................................
5 December 2012
8/12
Local & Wide Area Networks Laboratory
.
.
2 2.1 *
.
.
RIP 2 1 2.4
no ip route [no 1.14 or 1.15 or 1.16]
2.5
2 2.2
Pc X, Pc Y
2.3
Host
IP address
Subnet Mask
Pc X Pc Y Pc Z
10.0.[x].2 172.16.[y].2 192.168.[z].2
255.255.255.0 255.255.255.0 255.255.255.0
Pc Z Default Gateway 10.0.[x].1 172.16.[y].1 192.168.[z].1
startup-config Router>enable Router#show startup-config
startup-config
Router>enable Router#erase startup-config Router#reload
Restart 5 December 2012
initial configuration dialog 9/12
no
Local & Wide Area Networks Laboratory
.
2.4
Interface type
.
.
Serial
.
2.5
Router#show controllers Serial 0/0 Router#show controllers Serial 0/1
2.5 Router name Udon Bangkok Phuket
2.6
Interface Fa0/0 S0/0 S0/1 Fa0/0 S0/0 S0/1 Fa0/0 S0/0 S0/1
show ip route
2.7
Interface Type -
Network ID
IP address
10.0.[x].0/24 172.17.[x].0/24 172.19.[z].0/24 172.16.[y].0/24 172.18.[z].0/24 172.17.[x].0/24 192.168.[z].0/24 172.19.[z].0/24 172.18.[z].0/24
10.0.[x].1/24 172.17.[x].1/24 172.19.[z].2/24 172.16.[y].1/24 172.18.[z].1/24 172.17.[x].2/24 192.168.[z].1/24 172.19.[z].1/24 172.18.[z].2/24
Router
Dynamic Routing Protocol
RIP
Udon
Udon(config)#router rip Udon(config-router)#network 10.0.[x].0 Udon(config-router)#network 172.17.[x].0 Udon(config-router)#network 172.19.[z].0
2.7.1
ping Udon Pc Y Pc Z _____________________________________________________________________________ _____________________________________________________________________________ 2.7.2 ping Pc[a] Pc Y Pc Z _____________________________________________________________________________ _____________________________________________________________________________ 2.8 2.7 Dynamic Route Protocol Bakgkok Bangkok(config)#router rip Bangkok(config-router)#network 172.16.[y].0 Bangkok(config-router)#network 172.17.[x].0 Bangkok(config-router)#network 172.18.[z].0
2.8.1
ping Bangkok Pc X Pc Z _____________________________________________________________________________ _____________________________________________________________________________ 2.8.2 ping Pc Y Pc X Pc Z _____________________________________________________________________________ _____________________________________________________________________________
5 December 2012
10/12
Local & Wide Area Networks Laboratory
.
2.8.3
2.9
.
.
.
ping Pc X Pc Y Pc Z _____________________________________________________________________________ _____________________________________________________________________________ Dynamic Route Phuket 2.8
Khuket(config)#router rip Khuket(config-router)#network 192.168.[z].0 Khuket(config-router)#network 172.18.[z].0 Khuket(config-router)#network 172.19.[z].0
2.10
ping Interface Pc X
Pc X Router X Pc Y Router Y Pc Z Router Z 2.11
Pc Y
Router X Fa 0/0 S 0/0
Pc Z
Router Y S 0/1 Fa 0/0 S 0/0
Router Z S 0/1 Fa 0/0
show ip route
2.12
debug ip rip
(
5 December 2012
1
–
Privilege Mode no debug ip rip)
11/12
Local & Wide Area Networks Laboratory
.
2.13
.
.
show ip protocol
2.14 ......................................................................
5 December 2012
12/12
Local & Wide Area Networks Laboratory
.