Académique Documents
Professionnel Documents
Culture Documents
Router fundaments
The router is a device that connects two networks IT comes from the word ROUTE A router accepts packets on at least two network interfaces and forwards packets from one interface to another. A router works at network layer. Each router maintains a database called routing table of the router This routing table contains network addresses. Routers do not talk to remote computers
2
Functions of routers Inter network communications Best path selection Packet switching Packet forwarding
Router fundamentals
Router is like a PC and has
Mother board CPU Memory Ports & interfaces to hook peripherals May have a monitor to serve as a console
Software routers
Microsoft server , LINUX server
4
Access Layer : Small organization Ex:1600,1700,1800,2500 series Distribution Layer: Medium size organization ex: 2600,2800,3600,3700,3800 Core layer : Very large organizations and ISPs. ex:7200,7600,10000,12000
Contents
1. Active program & operating system
NVRAM
ROM
1. POST (Power-On-Self-Test)
Flash
1. IOS
6
Interfaces of routers
LAN Interface to connect to the switch WAN Interface to connect to the next router (serial port) Administrative port (console port) Auxiliary port
Modem
Telnet
8
Console connectivity
Connect a rollover cable to the console port of the router(RJ-45 connector) Attach the DB9 to the COM port of the computer Open the emulation software For windows: start Programs Accessories communicationsHyperterminal Give the name In port settingsclick on restore defaults LINUX: #minicom -s
9
10
Automatically
Dynamic routing protocols
11
Static Routing
Routes for each destination network has to be manually configured by the administrator. Used in small networks. Route may be up or down but static routes will remain in the routing tables and traffic would still be sent towards the route Not suitable for large networks Administrative distance for static route is 1
12
Dynamic Routing
Changes in the network topology are updated dynamically. Only the directly connected networks information is required for configuration. Administrative work is reduced. It is used in medium and large networks. RIP & OSPF are routing protocols
13
Hop Count
A hop count metric simply count router hops. From router-A it is 1 hop to network 192.168.5.0 if packets are sent out interface 192.168.3.0 and 2 hops if sent out 192.168.1.0
192.168.2.0
192.168.1.0 B
192.168.7.0
192.168.3.0 192.168.4.0
192.168.6.0 192.168.5.0
14
Bandwidth
A bandwidth metric would choose a higher bandwidth over a lower bandwidth. A packet from router A to C will follow path A-B-C.
192.168.2.0 A B 192.168.1.0 192.168.7.0 A-C: 64kbps A-B: 2mbps B-C: 2mbps
192.168.3.0 192.168.4.0
192.168.6.0 192.168.5.0
15
Administrative Distances
Diversity of metrics poses problems in routers running more than one routing protocol. Router may learn a route to the same destination from each of the protocols Administrative distances are the route sources to determine most preferred source
16
Administrative Distances
The administrative distance protocols is as below:
Connected Interface Static Route EIGRP OSPF RIP External EIGRP Unknown -0 -1 - 90 - 110 - 120 - 170 - 255
of
various
The lower the administrative distance, the more believable the protocol.
17
IOS MODES
1. User Mode: Router> Router is the default host name and can be changed, '>' symbol implies "user mode". This is the first mode user interacts with the IOS. It is a restricted mode and support only a very few basic commands. 2. Privilege Mode: Router# '#' symbol implies "Privilage Mode". This mode has full administrative rights.this mode is generally used for advanced troubleshooting using 'show' and 'debug' command. This is also called the EXEC mode. 3. Global Configuration mode: Router (config)# '(config)# ' symbol implies "global configuration mode". Configuration of the router starts from this mode configurations that affect the complete router are given. Example, host name of the router.
18
IOS MODES
4. interface configuration mode: Router(config-if)# '(config-if)# symbol implies "interface configuration mode". This mode is used to configure a specific interface. 5. Line configuration mode: Router(config-line)# '(config-line)# symbol implies "Line configuration mode". This mode is used to configure telnet, console and auxiliary mode. 6. Router Mode: Router(config-router)# '(config-router)#'symbol implies "Router mode". This mode is used to configure different dynamic routing protocol.
19
INITIAL CONFIGURATION
20
INITIAL CONFIGURATION
DELHI Router> (User Mode) Router>enable Router# (Privilege Mode) Router# configure terminal Router(config)# (Global Configuration Mode) Router(config)# hostname DELHI DELHI(config)# interface ethernet 0/0 DELHI(config-if)# (Interface Configuration Mode) DELHI(config-if)# ip address 192.168.3.17 255.255.255.240 DELHI(config-if)# no shutdown DELHI(config-if)# exit DELHI(config)# line vty 0 4 DELHI(config-line)# (Line Configuration Mode) DELHI(config-line)# password cisco DELHI(config-line)# login DELHI(config-line)# exit DELHI(config)# line con 0 DELHI(config-line)# password cisco DELHI(config-line)# login DELHI(config-line)# exit DELHI(config)# enable password cisco DELHI(config)# exit
21
INITIAL CONFIGURATION
DELHI#configure terminal DELHI(config)#interface serial 0/0 DELHI(config-if)#ip address 192.168.3.81 255.255.255.252 DELHI(config-if)# no shutdown DELHI(config-if)# exit DELHI(config)# interface serial 0/1 DELHI(config-if)#ip address 192.168.3.93 255.255.255.252 DELHI(config-if)# no shutdown DELHI(config-if)# exit
22
23