Académique Documents
Professionnel Documents
Culture Documents
Router(config)#Interface Serial 0
Router(config-if)#Ip Address 150.10.1.1 255.255.0.0
Router(config)#clock rate 56000
Router(Config-if)# bandwidth 64
Router(config-if)#No shutdown
Router(config-if)#^Z
Interpretring The Interface Status
Backup of Configuration
Router#Copy Startup-config Tftp
Address or name of the remote host [ ]? (Ip address of tftp)
Destination file name [ ] ? (Give a name)
Upgrading IOS Image
Note: This process can only be done by Console Session.
Router#Copy tftp Flash:
Address or name of remote host []?
Source file name []?
Destination file name []?
Erase Flash: before copying [confirm]?
Erasing the Flash file system will remove all files: continue?
[confirm]
Erasing device eeeeeeee……….eeeeeee.eee.eeee.ee
Loading!!!!!!!!!!!!!!!!!!!!!!!!!!!!!…….!!!!…….!!!!!!
Leased line WAN Setup
Case 2: The distance between the two locations is less than 5Km.
Requirements
A pair of Routers, Leased line and pair of leased line modem.
Leased line Setup( > 5km)
Leased line
V.35 V.35
modem modem
V.35 Cable G.703 G.703
Csu/
Dsu
Mux/ Mux/
S0 Dmux Dmux
Csu – channel service unit
Dsu – data service unit S0
E0 E0
S0 – Serial port of router
E0 – Ethernet port of a router Router
Switch/hub Switch/hub
S0
S0 E0
E0 Telephone
Exchange Router
Switch/hub Switch/hub
E 0 192.168.1.150/24 E 0 192.168.2.150/24
Switch/hub Switch/hub
192.168.1.0/24 192.168.2.0/24
Location A Location B
Router(config)# ip routing
Router# sh ip route (it shows all the directly connected
networks).
“ C 192.168.1.0/24 directly connected to E0”
“ C 10.0.0.0/8 “ ‘ ‘ ‘ S0”
“ C “ indicates connected networks.
Static Routing
Syntax
Router(config)# ip route (dest-network) (subnet mask)
(next hop address)
Location A
Router(config)# ip routing
Router(config)# ip route 192.168.2.0 255.255.255.0 10.0.0.2
Note* if we don’t know the address of next hop, we can just
write the name of the hop.
Router(config)# ip route 192.168.2.0 255.255.255.0 S0
Location B
Router(config)# ip routing
Router(config)# ip route 192.168.1.0 255.255.255.0 10.0.0.1
Router# sh ip route
C 192.168.1.0/24 directly connected to E0
C 10.0.0.0/8 “ ‘ “ “ S0
S 192.168.2.0/24 [1/0] via 10.0.0.2
•“S” represents static. [a/b] ~ [1/0], here a=1 is the
administrative distance value and b has no significance in
static routing. For static and default routing b can be 0 or 1.
• lesser the administrative distance value, higher the
preference.
“Tracert”, “Trace Route” and “Route
print”.
C:\> tracert
C:\> route print
Router# trace route (gives the complete route)
Router# sh arp (to check MAC addresses)
Default Routing
Router(config)# ip routing
Router(config)#ip route DA (S/N mask next) (next hop
address)
Router(config)# ip route 0.0.0.0 0.0.0.0 s1
Router# sh ip route
C 192.168.1.0/24 directly connected to E0
C 10.0.0.0/8 “ “ to S0
S* 0.0.0.0/0 “ “ to S0
Dynamic Routing
It is a type of routing where routing protocols( eg. RIP and
IGRP) are used between routers to determine the path and
maintain routing table. Once the path is determined a router
can route a routed protocol(IP). Dynamic routing uses broad
casts and multicasts to communicate with other routers. The
routing metric helps routers find the best path to each network.
Classification Of Routing Protocols
Distance Vector
Hybrid Routing
Link State
Distance Vector: the distance vector approach determines the
direction and the distance to any link in the internetwork.
When the topology in a distance vector routing protocol
changes, routing table updates in the router must occur. This
update process proceeds step-by-step router to router. Eg. RIP
and IGRP.
Link State : it recreates the exact topology of the entire
network(atleast the partion of the network where the router is
situated). Eg . OSPF.
Hybrid Routing : it combines aspects of the link state and the
distance vector algorithm.
Router rip
Router rip
Network 172.16.0.0
Router rip
Network 10.0.0.0
Network 10.0.0.0
Network 192.168.1.0
Network 10.0.0.0
Autonomous Systems
An autonomous system is a collection of networks
under a common administrative domain. IGPs operate within
an autonomous system where as EGP connects different
autonomous systems.
Every autonomous system has a distinct number.The
Internet Assigned Numbers Authority (IANA) is responsible
for allocating this number. Eg. Autonomous system 100.
We can use any number unless the organization plans
for an EGP.
Configuring IGRP
Syntaxes.
Router(config)#router igrp autonomous number
This defines IGRP as the routing protocol.
Router(config-router)#Network network-ip
Selects directly connected networks.
Router(config-router)#variance multiplier
Configures unequal-cost load balancing by defining difference
between the best metric and the worst acceptable metric.
Router(config-router)#traffic-share (balanced/ min)
Autonomous System 100
172.16.1.0
10.1.1.1 10.2.2.2 192.168.1.0
E0 S2 S2 S3 S3 E0
172.16.1.1 10.1.1.2 10.2.2.3
192.168.1.1