Sunteți pe pagina 1din 5

CCNA 2 CHAPTER 1 PRIMARY FUNCTIONS OF A ROUTER

ROUTER Determine the best path to send packets

Router - connects one network to another network. Forward packets toward their destination
- The router is responsible for the delivery of
packets across different networks. PACKET FORWARDING MECHANISMS
- uses routing table: to determine the best path to Process switching - each packet must be
use to forward a packet processed by the CPU individually.
- if different IP networks, router forwards packets to Fast switching - first packet of a flow is
the default gateway. process-switched and added to the fast-
CHARACTERISTICS OF A NETWORK switching cache.
Cisco Express Forwarding (CEF) - builds the
Topology FIB and adjacency tables. Preferred
Speed mechanism for cisco routers.
Cost
DEFAULT GATEWAY
Security
Availability - if sending packets is of the same network:
Scalability packet is sent from host interface
Reliability - if different networks: packet is sent to
default gateway
ROUTERS ARE COMPUTERS

Cisco IOS (Internetwork Operating System) IP address - Identifies a unique host on a


operating system of cisco routers. local network.
Subnet mask - Identifies with which
ROUTER MEMORY
network subnet the host can
Volatile Memory temporary storage communicate.
Random Access Memory (RAM) Default gateway - Identifies the IP address
- Running IOS of the router to send a packet to when the
- Running configuration file destination is not on the same local
- IP routing and ARP tables network subnet.
- Packet buffer - also used to connect
Non-volatile Memory permanent storage local network to internet
Read-only memory (ROM)
- Bootup instructions Gateway of last resort - A router is also usually
- Basic diagnostic software configured with its own default gateway.
- Limited IOS in case the router cannot
load the full featured IOS DOCUMENT NETWORK ASSIGNING
Non-Volatile Random Access Memory
(NVRAM) Topology diagram - Provides a visual
- Startup configuration file reference that indicates the physical
Flash connectivity and logical Layer 3 addressing.
- IOS Often created using software, such as
- Other system-related files Microsoft Visio.
An addressing table - A table that captures
device names, interfaces, IPv4 addresses,
subnet masks, and default gateway
addresses.
Secure management access
ENABLE IP ON HOST

Statically - manually assigned IP


- used to identify specific network
resources such as servers/printers.
- can be used in small networks with little
number of hosts.
Dynamically - automatically obtained IP address. IP
address from DHCP Server
Configure a banner
DEVICE LEDs

- Indicates the status of the router


- green led: good connections copy run start to save changes in a router
- blinking led: denotes network activity
CONFIGURE IPv4 ROUTER INTERFACE
- configure IP address and subnet mask
1 blink + pause port operating at 10 Mb/s
- no shutdown: to enable interface
2 blink + pause port operating at 100
- clock rate: to configure serial interface CDE
Mb/s
1 blink + pause port operating at 1000 CONFIGURE IPv6 ROUTER INTERFACE
Mb/s - same as configuring ipv4 but uses ipv6 in
terminal instead of ip
CONSOLE ACCESS - still uses no shutdown for activation

IPv6 supports more than one address


- required when initially configuring a device,
- Global unicast address
or if remote access (SSH and HTTP) fails.
- EUI-64: low order bits
- link local
Console cable - RJ-45-to-DB-9 serial cable or a USB
serial cable CONFIGURE THE LOOPBACK0 INTERFACE
Terminal emulation software - Tera Term, PuTTY, - is a logical interface internal to the router. It
HyperTerminal is not assigned to a physical port.
- interface is always up, no need for no
ENABLE IP ON SWITCH shutdown
- IP addressed is configured virtually via - used for testing
switched virtual interface (SVI) - multiple loopback addresses can be enabled.

VERIFY INTERFACE SETTINGS


CONFIGURE BASIC ROUTER SETTINGS
show ip interface brief - Displays a
Name the device summary for all interfaces
show ip route - Displays the contents of the 4. If the next hop MAC address is unknown,
IPv4 routing table stored in RAM. the device issues and ARP request
5. Routers de-encapsulates the frame and
show running-config interface interface-id- determines the destination MAC address
Displays the commands configured on the
from the given IP address.
specified interface.
ROUTING DECISIONS
For IPv6, commands are also the same with IPv4
The routing table search results in one of three path
show ipv6 interface brief determinations:
show ipv6 route Directly connected network - If the
show ipv6 interface destination IP address of the packet belongs
ping to a device on a network that is directly
FILTER SHOW COMMAND OUTPUT connected to one of the interfaces of the
router, that packet is forwarded directly to
Use the terminal length <number> the destination device.
command to specify the number of lines to
be displayed. Remote network - If the destination IP
address of the packet belongs to a remote
To filter out specific output of commands,
network, then the packet is forwarded to
use the | pipe character.
another router.
Can use parameters to filter: section,
include, exclude, and begin No route determined - If the destination IP
address of the packet does not belong to
show history captures last 10 lines in the history
either a connected or remote network, the
buffer
router determines if there is a Gateway of
ROUTER SWITCHING FUNCTION Last Resort available. If there is a default
route, the packet is forwarded to the
- which is the process used by a router to
Gateway of Last Resort. If the router does
accept a packet on one interface and
not have a default route, then the packet is
forward it out of another interface.
discarded.
PACKET SWITCHING
BEST PATH
- the best path to a network is the path with
the lowest metric.
- metric is the value used to measure the
distance to a given network

Routing Information Protocol (RIP) - Hop


count
1. In sending packets from PC 1 to PC 2, the
source IP address is of PC1 and destination Open Shortest Path First (OSPF) - Ciscos
IP address is of PC2. cost based on cumulative bandwidth from
2. The IP address does not change in the data, source to destination
instead when forwarded, the MAC address
Enhanced Interior Gateway Routing
changes
Protocol (EIGRP) - Bandwidth, delay, load,
3. Switch are not considered as destination
reliability
sources but only routers and end devices.
ADMINISTRATIVE DISTANCE Destination network - Identifies the
address of the remote network.
- represents the "trustworthiness" of the
route; the lower the AD, the more trustworthy the Administrative distance - Identifies the
route source. trustworthiness of the route source. Lower
values indicate preferred route source.

Metric - Identifies the value assigned to


reach the remote network. Lower values
indicate preferred routes.

Next-hop - Identifies the IPv4 address of the


next router to forward the packet to.

Route timestamp - Identifies how much


time has passed since the route was
ROUTING TABLE learned.

Directly connected routes - These routes Outgoing interface - Identifies the exit
come from the active router interfaces. interface to use to forward a packet toward
Routers add a directly connected route the final destination.
when an interface is configured with an IP
address and is activated.

Remote routes - These are remote


networks connected to other routers.
Routes to these networks can either be
statically configured or dynamically learned
through dynamic routing protocols.

routing table - is a data file in RAM that is used to DIRECTLY CONNECTED INTERFACES
store route information about directly connected - considered up when:
and remote networks. 1. assigned valid IP address
2. no shutdown command
ROUTING TABLE SOURCES
3. receive carrier signal from other
Routing Table Entries: devices (switch, router, host)

Local Route interfaces DIRECTLY CONNECTED ROUTING TABLE ENTRIES

Directly connected interfaces activated Route source - Identifies how the route was
with no shutdown learned. Directly connected interfaces have
two route source codes. C identifies a
Static routes manually configured
directly connected network. L identifies
Dynamic routing protocol - dynamic routing the IPv4 address assigned to the routers
protocols (EIGRP, OSPF) interface.

REMOTE NETWORK ROUTING ENTRIES Destination network - The address of the


remote network.
Route source - Identifies how the route was
learned.
Outgoing interface - Identifies the exit RIPng (RIP next generation)
interface to use when forwarding packets to
the destination network. OSPFv3

EIGRP for IPv6

STATIC ROUTES
- added after directly connected interfaces are
added
- are manually configured. Benefits are
improved security and resource efficiency
- disadvantage: lack of automatic
configuration when topology changes.

Two types of Static Routes:


1. Static route to a specific network
Router(config)# ip route network
mask{ next-hop-ip | exit-intf }
2. Default static route
Router(config)# ip route 0.0.0.0
0.0.0.0 { exit-intf | next-hop-ip }

DYNAMIC ROUTING

- Dynamic routing protocols are used by


routers to share information about the reachability
and status of remote networks.
- automatically share routing information with
other routers and compensate for any topology
changes without involving the network
administrator.

Dynamic IPv4 routing protocols supported by Cisco

EIGRP - Enhanced Interior Gateway Routing


Protocol

OSPF - Open Shortest Path First

IS-IS - Intermediate System-to-Intermediate


System

RIP - Routing Information Protocol

Dynamic IPv6 routing protocols supported by Cisco

S-ar putea să vă placă și