Tải bản đầy đủ (.pdf) (56 trang)

ccna explorationg 4.0 - chapter 2 static routing

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (2.01 MB, 56 trang )

1
Chapter 2-Static Routing
CCNA Exploration 4.0
Học viện mạng Bach Khoa - Website: www.bkacad.com 2
Objectives
• Define the general role a router plays in networks.
• Describe the directly connected networks, different router
interfaces
• Examine directly connected networks in the routing table
and use the CDP protocol
• Describe static routes with exit interfaces
• Describe summary and default route
• Examine how packets get forwarded when using static
routes
• Identify how to manage and troubleshoot static routes
Học viện mạng Bach Khoa - Website: www.bkacad.com 3
Role of the Router
• The router is a special-purpose computer that plays a key role in
the operation of any data network. Routers are primarily
responsible for interconnecting networks by:
– Determining the best path to send packets.
– Forwarding packets toward their destination.
Học viện mạng Bach Khoa - Website: www.bkacad.com 4
Introducing the topology
• Topology Lab
– Three 1800 series routers connected via WAN links.
– Each router connected to a LAN represented by a switch and
a PC.
Học viện mạng Bach Khoa - Website: www.bkacad.com 5
Cable for LAN/WAN interfaces
Học viện mạng Bach Khoa - Website: www.bkacad.com 6


Examining Router Interfaces
• Examining Router Interfaces
– show ip route command – used to view routing table
– show interfaces command – used to show status of an interface
– show ip Interface brief command – used to show a portion of the
interface information
– show running-config command – used to show configuration file in
RAM
Học viện mạng Bach Khoa - Website: www.bkacad.com 7
Configuring an Ethernet Interface
• Configuring an Ethernet interface
– By default all serial and Ethernet interfaces are admintrative down.
– To enable an interface use the no shutdown command.
Học viện mạng Bach Khoa - Website: www.bkacad.com 8
Configuring an Ethernet Interface
• Verifying Ethernet interface
– Show interfaces for fastEthernet 0/0 – command used to
show status of fast Ethernet port.
– Show ip interface brief.
– Show running-config.
• Ethernet interfaces participate in ARP
Học viện mạng Bach Khoa - Website: www.bkacad.com 9
Logging Synchronous Command
• In order to keep the unsolicited output separate from your input,
enter line configuration mode for the consoled port and add the
logging synchronous command.
Học viện mạng Bach Khoa - Website: www.bkacad.com 10
Configuring a Serial Interfaces
• Configuring a Serial interface
– Enter interface configuration mode

– Enter in the ip address and subnet mask
– Enter in the clock rate(DCE) and no shut down command
• Example:
– R1(config)#interface serial 0/0
– R1(config-if)#ip address 172.16.2.1 255.255.255.0
– R1(config-if)#clock rate 64000
– R1(config-if)#no shutdown
Học viện mạng Bach Khoa - Website: www.bkacad.com 11
Verifying Changes to the Routing Table
• The routing table consists of a list of "known" network addresses
these addresses that are directly connected, configured
statically, and learned dynamically.
Học viện mạng Bach Khoa - Website: www.bkacad.com 12
Verifying Changes to the Routing Table
• Observing Routes as They are Added to the Routing Table
– debug ip routing command will let us see any changes that
the router performs when adding or removing routes.
Học viện mạng Bach Khoa - Website: www.bkacad.com 13
Devices on Directly Connected Networks
• When a router only has its interfaces configured, and the routing
table contains the directly connected networks but no other
routes, only devices on those directly connected networks are
reachable.
Học viện mạng Bach Khoa - Website: www.bkacad.com 14
Devices on Directly Connected Networks
Học viện mạng Bach Khoa - Website: www.bkacad.com 15
Cisco Discovery Protocol (CDP)
Network discovery with CDP
• CDP is an information-gathering tool used by network administrators to
get information about directly connected Cisco devices.

• CDP is a proprietary tool that enables you to access a summary of
protocol and address information about Cisco devices that are directly
connected.
• These advertisements contain information such as the types of devices
that are connected, the router interfaces they are connected to, the
interfaces used to make the connections, and the model numbers of
the devices.
• Concept of neighbors
– 2 types of neighbors
 Layer 3 neighbors.
 Layer 2 neighbors.
Học viện mạng Bach Khoa - Website: www.bkacad.com 16
Cisco Discovery Protocol (CDP)
CDP Operation
• CDP runs at the Data Link layer connecting the physical media to the
upper-layer protocols (ULPs).
• Cisco network devices, such as routers that support different Network
layer protocols (for example, IP and Novell IPX), can learn about each
other
• CDP provides the following information about each CDP neighbor
device:
– Device identifiers
– Address list
– Port identifier
– Capabilities list
– Platform
Học viện mạng Bach Khoa - Website: www.bkacad.com 17
Default Setting
Feature Default Setting
CDP global state Enabled

CDP interface state Enabled
CDP holdtime (packet holdtime in
seconds)
180
CDP timer (packets sent every x seconds) 60
Học viện mạng Bach Khoa - Website: www.bkacad.com 18
Using CDP for Network Discovery
• The information gathered by the CDP protocol can be examined
with the show cdp neighbors command.
Học viện mạng Bach Khoa - Website: www.bkacad.com 19
Using CDP for Network Discovery
Field Definition
Device ID The name of the neighbor device and either the
MAC address or the serial number of this
device.
Local Intrfce The protocol being used by the connectivity
media.
Holdtme The remaining amount of time (in seconds) the
current device will hold the CDP advertisement
from a sending router before discarding it.
Học viện mạng Bach Khoa - Website: www.bkacad.com 20
Using CDP for Network Discovery
Capability
(Capability
Codes)
Capability (type of routing device) of the listed
neighboring device.
The capability types that can be discovered are:
R—Router
T—Transparent bridge

B—Source-routing bridge
S—Switch
H—Host
I— device is using IGMP
r—Repeater
Platform The product number of the device.
Port ID The protocol and port number of the device.
Học viện mạng Bach Khoa - Website: www.bkacad.com 21
Using CDP for Network Discovery
To disable CDP on a
specific interface
after it has been
enabled, use the no
CDP enable
command in interface
configuration mode.
Học viện mạng Bach Khoa - Website: www.bkacad.com 22
CDP Commands
Học viện mạng Bach Khoa - Website: www.bkacad.com 23
CDP Commands
Học viện mạng Bach Khoa - Website: www.bkacad.com 24
CDP Commands
Học viện mạng Bach Khoa - Website: www.bkacad.com 25
CDP Commands

×