Professional Documents
Culture Documents
OSICh.6
and TCP/IP
OSPF Model
Part 1 of 2: Single Area OSPF
CCNP 1 version 3.0
Rick Graziani
Cabrillo College
OSI
Layer
Ch.6
OSPF
and Area OSPF
Part 1 of 2: Single
TCP/IP Layer
CCNP 1 version 3.0
Rick Graziani
Cabrillo College
. OSI
. TCP/IP
Reduces complexity
Standardizes interfaces
Facilitates modular engineering
Ensures interoperable technology
Accelerates evolution
Simplifies teaching and learning
ICND v2.02-
.
.
Reduces complexity
Standardizes interfaces
Facilitates modular engineering
Ensures interoperable technology
Accelerates evolution
Simplifies teaching and learning
ICND v2.02-
) ( :
.
.
OSI ) ( ISO
.
OSI Layer
ICND v2.02-
ISO
.
: .
Application
Presentation
Session
Transport
Network
Data Link
Physical
:Application Layer
Application OSI .
.
web
.
Email
.
10
Presentation Layer
Network processes to
applications
Data representation
ICND v2.02-
Application
Presentation
:Presentation Layer
.
.
.
MP3 JPEG GIF .
Session Layer
Network processes to
applications
Data representation
Interhost communication
ICND v2.02-
Application
Presentation
Session
: Session Layer
Session Station .
) ( Authentication Session Session session
) (Accounting .
Session .
User Data
.
12
Transport Layer
Network processes to
applications
Data representation
Interhost communication
End-to-end connections
ICND v2.02-
Application
Presentation
Session
Transport
: Transport Layer
end-to-end .
Station Station
.
Data User ) (Encapsulate
. .
Network Layer
Network processes to
applications
Data representation
Interhost communication
End-to-end connections
Addresses and best path
ICND v2.02-
Application
Presentation
Session
Transport
Network
: Network Layer
.
. Device
.
.
IPX IP Apple talk .
.
) ( Transport .
.
14
ICND v2.02-
Application
Presentation
Session
Transport
Network
Data Link
LAN . LAN
.
OSI .
) ( MAC Address .
. .
Physical Layer
Network processes to
applications
Data representation
Interhost communication
End-to-end connections
Addresses and best path
Access to media
Binary transmission
ICND v2.02-
Application
Presentation
Session
Transport
Network
Data Link
Physical
: Physical Layer
.
.
.
.
16
Encapsulating Data
Application
PDU
Segment
Presentation
Session
Upper-Layer Data
Transport
Packet
Network
Frame
Data-Link
Bits
Physical
Upper-Layer Data
TCP Header
Data
IP Header
FCS
Data
LLC Header
FCS
Data
MAC Header
0101110101001000010
ICND v2.02-
.
Data User .
.
TCP Header UDP Header .
Network Layer
. IP . IP Header
Data Link .
Packet Network .
Data Link Layer LLC Header Mac Header Frame
.
Encapsulating Data
Application
Presentation
Session
Upper-Layer Data
TCP Header
Transport
Upper-Layer Data
IP Header
Data
LLC Header
Data
FCS
MAC Header
Data
FCS
0101110101001000010
2002, Cisco Systems, Inc. All rights reserved.
PDU
Segment
Network
Packet
Data-Link
Frame
Physical
Bits
ICND v2.02-
: ( )
. Encapsulation
Physical Layer
.
18
De-encapsulating Data
Application
Presentation
Session
Upper-Layer Data
Transport
Upper-Layer Data
TCP+ Upper-Layer Data
IP + TCP + Upper-Layer Data
LLC Hdr + IP + TCP + Upper-Layer Data
er
d
Hea
LLC
er
ead
CH
MA
0101110101001000010
ICND v2.02-
der
Hea
TCP
er
ead
IP H
Network
Data-Link
Physical
2002, Cisco Systems, Inc. All rights reserved.
OSI .
) (Physical Layer MAC
Header LLC Header .
Transport Layer .
TCP Header UDP Header
Web
.
Introduction to TCP/IP
Host
Host
Internet
TCP/IP
ICND v2.02-
: TCP/IP
Application
Transport
Internet
20
Application
Presentation
Application
Session
Transport
Transport
Internet
Network
Network
Access
ICND v2.02-
Data-Link
Physical
: TCP/IP
OIS TCP/IP .
OSI Application TCP/IP
Network Access TCP/IP .
OSI .
OSI
Network Layer Data Link Layer Physical Layer Transport Layer
.
Defines
V.35
EIA/TIA-232
802.3
Ethernet
Physical
ICND v2.02-
Media type
Connector type
Signaling type
:Physical Layer
) (...
) ( ...
.
( 802.3) LAN ( V.35 ) WAN .
22
HDLC
Ethernet
Data-Link
802.3
Physical
EIA/TIA-232
V.35
802.2
Defines:
Physical source and
destination addresses
Higher-layer protocol
)(service access point
associated with frame
Network topology
Frame sequencing
logical link control
media access control
LLC: The upper component of the data-link layer that provides data
repackaging functions for operations between different network types.
The media access control is the lower component that gives access
to the transmission medium itself.
ICND v2.02-
:Data-Link Layer
0000.0C
IEEE Assigned
xx.xxxx
Vendor
Assigned
2
Length
Variable
Data
4
FCS
Ethernet II
uses Type
here and
does not use
802.2.
MAC Address
2002, Cisco Systems, Inc. All rights reserved.
ICND v2.02-
:( )Data-Link Layer
24
Interconnects
multiple data links
2002, Cisco Systems, Inc. All rights reserved.
802.3
Frame Relay
802.2
HDLC
IP, IPX
Ethernet
Data-Link
Defines paths
through network
Physical
Defines logical
source and
destination
addresses
associated with a
specific protocol
Network
EIA/TIA-232
V.35
ICND v2.02-
:Network Layer
Logical
Address
Source
Address
Data
172.15.1.1
Network
Destination
Address
Node
ICND v2.02-
:( )Network Layer
. IPV6 IPV4 IP . IP
. IP Address V6 IP Address V4
IP
.
26
Summary
Internetworking evolves to support current and future
applications
The OSI reference model organizes network functions
into seven categories called layers
Data flows from upper-level user applications to lowerlevel bits transmitted over network media
Peer-to-peer functions use encapsulation and
de-encapsulation at layer interfaces
Most network manager tasks configure the lower three
layers
ICND v2.02-
.
OSI TCP/IP .
.
) ( Encapsulation
.
Ch.6 OSPF
Cisco IOS
Part 1 of 2: Single
Area OSPF
CCNP 1 version 3.0
Rick Graziani
Cabrillo College
28
Device
) ( Cisco IOS .
Device router switch .
Ch.6
OSPF
Cisco IOS
Part 1 of 2: Single
Area OSPF
CCNP 1 version 3.0
Rick Graziani
Cabrillo College
30
:
.
IOS .
CLI ) ( Mode .
:IOS
) Internetwork operating System (IOS 2950
.
.
UI
.
IOS mode set up mode .CLI
:Set UP Mode
2950
set up mode .
. Mode
32
) IOS (:
. Setup Mode
.
:(Common Line Interface) CLI
) Cisco IOS Command-line interface (CLI
CLI . text Base user type .
.
:
Device .
LAN .
.
Setup Mode
.
Mode
34
ICND v2.01-8
:
Device Cisco
.
power .
IOS . IOS load
Load .
. device
:
. CLI
TFTP Server Web Browser .
CLI :
console port
Auxiliary port
Telnet
:Console port
device
IOS configure console .
Rollover PC
.
Hyper Terminal
36
) ( :
Console
Console .
: Rollover Rj 45 Console
9 pin Com Port .
:Auxiliary port
AUX
. .
Dial up
.
) ( :
:Telnet
) ( IP address
TCP/IP .
Telnet Telnet .
) ( IP Address Telnet
telnet .
:TFTP
TFTP Server .
TFTP IOS TFTP Server
.
38
ICND v2.01-9
: ( )
:Web Browser
Device . Web Browser
IP Address . TCP/IP
. Browse Web Page
:CLI
CLI Common Line Interface Text Base
.
CLI IOS mode :
user mode
privileged mode
mode .
:User Mode
Mode . Mode
. Mode Monitoring .
Mode
.
40
) CLI (:
Mode Mode . Mode
.
:Privileged Mode
Mode
. Mode
Mode
Mode .
Mode .
ICND v2.01-11
:User Mode
Boot IOS Load User Mode CLI .
Command prompt :
> Hostname
42
ICND v2.01-12
:Privileged Mode
mode enable mode
. User Mode Privilade Mode :
Hostname > enable
command prompt :
Hostname #
mode .
Hostname # exit
privileged mode mode global mode interface mode .
mode .
password mode .
Summary
The Cisco IOS software platform is implemented on all
Cisco hardware platforms.
You will use Cisco IOS software to communicate the
configuration details that implement the learning
objectives of this course.
You can configure a switch or router from sources that
are external to the device.
Cisco IOS software uses a CLI as its traditional console
environment. While Cisco IOS software is a core
technology, Cisco IOS software operation details vary on
different internetworking devices.
The Cisco IOS software supports two EXEC command
modes: user and privileged.
2002, Cisco Systems, Inc. All rights reserved.
ICND v2.01-13
:
Text Base IOS . ( Cisco IOS)
CLI . .
Web TFTP Server
. Browser
: mode text-base CLI
user mode
privileged mode
user mode
Mode privileged mode
.
44
Router
IOS
CLI .
CLI help .
46
ICND v2.01-4
:
rollover
.
: rollover RJ-45
console 9 pin COM port .
CLI .
Hyper Terminal .
:
.
Hyper terminal :
Start -> all programs -> accessories -> communications -> Hyper Terminal
Connection Description OK .
ICND v2.01-4
) ( :
.
Port Setting .
9600 .
48
Set up Mode :
Set up Mode .
Boot Mode .
safe
load Setup Mode .
.
.
. No
User Mode .
]Continue with configuration Dialog? [Yes/no
--- System Configuration Dialog --Continue with configuration dialog? [yes/no]: yes
At any point you may enter a question mark '?' for help.
Use ctrl-c to abort configuration dialog at any prompt.
Default settings are in square brackets '[]'.
ICND v2.01-6
: Set up Mode
boot
. Yes
. extended setup
.
. no
50
IP-Address
IP-Address
OK?
OK?
Method
Method
Status
Status
BRI0
BRI0
unassigned
unassigned
YES
YES
unset
unset
administratively
administratively down
down
Protocol
Protocol
down
down
BRI0:1
BRI0:1
unassigned
unassigned
YES
YES
unset
unset
administratively
administratively down
down
down
down
BRI0:2
BRI0:2
unassigned
unassigned
YES
YES
unset
unset
administratively
administratively down
down
down
down
Ethernet0
Ethernet0
unassigned
unassigned
YES
YES
unset
unset
administratively
administratively down
down
down
down
Serial0
Serial0
unassigned
unassigned
YES
YES
unset
unset
administratively
administratively down
down
down
down
ICND v2.01-7
: Set up Mode
down up
First, would you like to see the current interface summary? [Yes]:
state
.
Setup Initial
Global Parameters
Configuring
Configuring global
global parameters:
parameters:
Enter
Enter host
host name
name [Router]:wg_ro_c
[Router]:wg_ro_c
The
The enable
enable secret
secret is
is aa password
password used
used to
to protect
protect access
access to
to
privileged
privileged EXEC
EXEC and
and configuration
configuration modes.
modes. This
This password,
password, after
after
entered,
entered, becomes
becomes encrypted
encrypted in
in the
the configuration.
configuration.
Enter
Enter enable
enable secret:
secret: cisco
cisco
The
The enable
enable password
password is
is used
used when
when you
you do
do not
not specify
specify an
an
enable
enable secret
secret password,
password, with
with some
some older
older software
software versions,
versions, and
and
some
some boot
boot images.
images.
Enter
Enter enable
enable password:
password: sanfran
sanfran
The
The virtual
virtual terminal
terminal password
password is
is used
used to
to protect
protect
access
access to
to the
the router
router over
over aa network
network interface.
interface.
Enter
Enter virtual
virtual terminal
terminal password:
password: sanjose
sanjose
Configure
Configure SNMP
SNMP Network
Network Management?
Management? [no]:
[no]:
ICND v2.01-8
: Set up Mode
Enter host name [Router] :
ENTER
.
CLI .
.
. authentication
:
enable password
secret password
telnet password
console password
52
Setup Initial
Global Parameters
Configuring
Configuring global
global parameters:
parameters:
Enter
Enter host
host name
name [Router]:wg_ro_c
[Router]:wg_ro_c
The
The enable
enable secret
secret is
is aa password
password used
used to
to protect
protect access
access to
to
privileged
privileged EXEC
EXEC and
and configuration
configuration modes.
modes. This
This password,
password, after
after
entered,
entered, becomes
becomes encrypted
encrypted in
in the
the configuration.
configuration.
Enter
Enter enable
enable secret:
secret: cisco
cisco
The
The enable
enable password
password is
is used
used when
when you
you do
do not
not specify
specify an
an
enable
enable secret
secret password,
password, with
with some
some older
older software
software versions,
versions, and
and
some
some boot
boot images.
images.
Enter
enable
password:
sanfran
Enter enable password: sanfran
The
The virtual
virtual terminal
terminal password
password is
is used
used to
to protect
protect
access
access to
to the
the router
router over
over aa network
network interface.
interface.
Enter
Enter virtual
virtual terminal
terminal password:
password: sanjose
sanjose
Configure
Configure SNMP
SNMP Network
Network Management?
Management? [no]:
[no]:
ICND v2.01-8
: ( )Set up Mode
.
. setup mode
. telnet password secret password enable password
Setup Initial
Protocol Configurations
ICND v2.01-9
: Set up Mode
Routing protocol
. Interface
. no IP
.
Configure IP? [Yes]:
54
Setup Interface
Parameters
BRI
BRI interface
interface needs
needs isdn
isdn switch-type
switch-type to
to be
be configured
configured
Valid
Valid switch
switch types
types are
are ::
[0]
[0] none..........Only
none..........Only if
if you
you don't
don't want
want to
to configure
configure BRI.
BRI.
[1]
basic-1tr6....1TR6
switch
type
for
[1] basic-1tr6....1TR6 switch type for Germany
Germany
[2]
[2] basic-5ess....AT&T
basic-5ess....AT&T 5ESS
5ESS switch
switch type
type for
for the
the US/Canada
US/Canada
[3]
[3] basic-dms100..Northern
basic-dms100..Northern DMS-100
DMS-100 switch
switch type
type for
for US/Canada
US/Canada
[4]
[4] basic-net3....NET3
basic-net3....NET3 switch
switch type
type for
for UK
UK and
and Europe
Europe
[5]
[5] basic-ni......National
basic-ni......National ISDN
ISDN switch
switch type
type
[6]
[6] basic-ts013...TS013
basic-ts013...TS013 switch
switch type
type for
for Australia
Australia
[7]
[7] ntt...........NTT
ntt...........NTT switch
switch type
type for
for Japan
Japan
[8]
[8] vn3...........VN3
vn3...........VN3 and
and VN4
VN4 switch
switch types
types for
for France
France
Choose
Choose ISDN
ISDN BRI
BRI Switch
Switch Type
Type [2]:
[2]:
Configuring
Configuring interface
interface parameters:
parameters:
Do
Do you
you want
want to
to configure
configure BRI0
BRI0 (BRI
(BRI d-channel)
d-channel) interface?
interface? [no]:
[no]:
Do
Do you
you want
want to
to configure
configure Ethernet0
Ethernet0 interface?
interface? [no]:
[no]: yes
yes
Configure
Configure IP
IP on
on this
this interface?
interface? [no]:
[no]: yes
yes
IP
IP address
address for
for this
this interface:
interface: 10.1.1.33
10.1.1.33
Subnet
Subnet mask
mask for
for this
this interface
interface [255.0.0.0]
[255.0.0.0] :: 255.255.255.0
255.255.255.0
Class
Class AA network
network is
is 10.0.0.0,
10.0.0.0, 24
24 subnet
subnet bits;
bits; mask
mask is
is /24
/24
Do
Do you
you want
want to
to configure
configure Serial0
Serial0
interface?
interface? [no]:
[no]:
ICND v2.01-10
: Set up Mode
. IP address
. subnet mask IP address
Subnet mask IP address
. subnet mask
Setup Script
Review and Use
The following configuration command script was created:
hostname Router interface BRI0
enable secret 5 shutdown
$1$/CCk$4r7zDwDNeqkxFO.kJxC3G0
enable password no
sanfran
ip address
line vty 0 4
!
password sanjose
interface Ethernet0
no snmp-server no shutdown
!
ip address 10.1.1.31 255.255.255.0
no appletalk routing
no mop enabled
no decnet routing
!
ip routing
interface Serial0
no clns routing shutdown
no ipx routing no ip address
no vines routing
<text omitted>
no xns routing end
no apollo routing
isdn switch-type
[0]basic-5ess
Go to the IOS command prompt without saving this config.
[1] Return back to the setup without saving this config.
[2] Save this configuration to nvram and exit.
Enter your selection [2]:
2002, Cisco Systems, Inc. All rights reserved.
ICND v2.01-11
: Set up Mode
.
:
[0] Go to the IOS command prompt without saving this config.
[1] Return back to the setup without saving this config.
[2] Save this configuration to nvram and exit.
. CLI [ 0]
. user mode
[ 1]
. set up mode
[ 2]
. ( nvram )
56
ICND v2.01-12
Router User-Mode
Command List
wg_ro_c>?
Exec commands:
access-enable
atmsig
cd
clear
connect
dir
disable
disconnect
enable
exit
help
lat
lock
login
logout
-- More --
ICND v2.01-13
58
Router Privileged-Mode
Command List
wg_ro_c#?
Exec commands:
access-enable
access-profile
access-template
bfe
cd
clear
clock
configure
connect
copy
debug
delete
dir
disable
disconnect
enable
erase
exit
help
-- More --
ICND v2.01-14
Symbolic Translation
clear
Router# clock
Command Prompting
% Incomplete command.
? Router# clock
Set the time and date
set
ICND v2.01-16
hh:mm:ss
Help :
Command History Context-Sensitive Help .
. .
privileged mode Clok type .
.
help .
Clear: . clock
clock type enter .
.
% incomplete command.
.
help space help :
60
clock
Symbolic Translation
Router# clock
% Incomplete command.
Command Prompting
Router# clock ?
set
Current Time
ICND v2.01-16
: ( )Help
set
. enter set
type .
. History . history
. Ctrl-P
.
. history
Router# show history
clok
Translating "CLOK"
% Unknown command
or clock
computerset
name,19:56:00
or unable to find computer address
Router#
% Incomplete command.
Router#
clear
Router#
clock
Router# clock
<1-31>
MONTH
Command
Prompting
set 19:56:00 ?
% Incomplete command.
Router#
set
Set%the
time and input
date
Invalid
Syntax Checking
Command
Prompting
Router#
%
Router#
hh:mm:ss <1993-2035>
Current Time
ICND v2.01-17
: ( )Help
Context-Sensitive Help Command History
.
62
Ctrl-E
Esc-B
Esc-F
Ctrl-B
Ctrl-F
Ctrl-D
ICND v2.01-19
: CLI
.
: IOS
. :Ctrl-A
. :Ctrl-E
. :Esc-B
. :Esc-F
. :Ctrl-B
. :Ctrl-F
. :Ctrl-D
. History :Ctrl-N Ctrl-P
wg_ro_a#show version
Cisco Internetwork Operating System Software
IOS (tm) 2500 Software (C2500-JS-L), Version 12.0(3), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-1999 by cisco Systems, Inc.
Compiled Mon 08-Feb-99 18:18 by phanguye
Image text-base: 0x03050C84, data-base: 0x00001000
ROM: System Bootstrap, Version 11.0(10c), SOFTWARE
BOOTFLASH: 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0(10c), RELEASE SOFTWARE(fc1)
wg_ro_a uptime is 20 minutes
System restarted by reload
System image file is "flash:c2500 -js-l_120-3.bin"
(output omitted)
--More-Configuration register is 0x2102
ICND v2.01-
: Show Version
.
device up platform FLASH NVRAM RAM IOS
.
flash binary IOS : (C2500-JS-L)
:
. device :C2500
. enterprise IOS :JS
. flash move :L
. IOS :Version 12.0(3)
IOS DRAM flash
.
64
wg_ro_a#show version
Cisco Internetwork Operating System Software
IOS (tm) 2500 Software (C2500-JS-L), Version 12.0(3), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-1999 by cisco Systems, Inc.
Compiled Mon 08-Feb-99 18:18 by phanguye
Image text-base: 0x03050C84, data-base: 0x00001000
ROM: System Bootstrap, Version 11.0(10c), SOFTWARE
BOOTFLASH: 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0(10c), RELEASE SOFTWARE(fc1)
wg_ro_a uptime is 20 minutes
System restarted by reload
System image file is "flash:c2500 -js-l_120-3.bin"
(output omitted)
--More-Configuration register is 0x2102
ICND v2.01-
: Show Version
Registry password recovery . Registry
.
Configuration register is 0x2102
ICND v2.01-
RAM : NVRAM
Flash ROM RAM : . NVRAM
power-on self-test POST load
IOS NVRAM .
RAM
set up mode .
. .
NVRAM startup-config RAM
. running-config
66
In NVRAM
wg_ro_c#show running-config
Building configuration...
wg_ro_c#show startup-config
Using 1359 out of 32762 bytes
!
version 12.0
!
-- More --
Current configuration:
!
version 12.0
!
-- More --
ICND v2.01-
: NVRAM RAM
: NVRAM startup-config
wg_ro_c#show startup-config
: RAM running-config
wg_ro_c#show running-config
Summary
ICND v2.01-
:
Power-on self-test
. NVARM IOS load .
. NVRAM startup-config
NVRAM
. setup mode
. RAM NVRAM
IOS Flash DRAM
. show version
68
IP
Cisco Router
:
.
CLI Mode .
70
ICND v2.01-
CLI Mode :
mode user mode . privileged mode
mode global mode .
mode Routing Protocol .
global mode privileged mode Configure
terminal mode.
Router# Configure terminal
mode command prompt .
Router(config)#
global mode exit mode .
Saving Configurations
wg_ro_c#
wg_ro_c#
wg_ro_c#copy
wg_ro_c#copy running-config
running-config startup-config
startup-config
Destination
Destination filename
filename [startup-config]?
[startup-config]?
Building
Building configuration
configuration
wg_ro_c#
wg_ro_c#
ICND v2.01-
:
running- .
. config
running-config copy . NVRAM
. startup-config
wg_ro_c# copy running-config startup-config
. NVRAM startup-config
: privileged mode
wg_ro_c# erase startup-config
72
:Dscription
:Hostname .
.
.
MOTD :MOTD Banner Message of the day login
user .
console port auxiliary port telnet
.
login .
:Hostname Description hostname
.
description show running-config .
ICND v2.01-
:
.
authentication .
:
:
Enable Password
Secret Password
AUX Password
Telnet Password
Console Password
74
ICND v2.01-
) ( :
:Enable password privileged mode . user
mode enable privileged mode password .
Router(config)#enable password cisco
clear text show run clear
.
:Secret Password enable password .
Running-config startup-config clear-text .
Router(config)#enable password cisco
secret password
secret password
ICND v2.01-
)( :
:Telnet Password Virtual Terminal Telnet .
Telnet Authentiction .
76
ICND v2.01-
)( :
login . telnet device
.
Router(config-line)#login
no login telnet device
.
Router(config-line)#no login
:
Router(config-line)#password sanjose
telnet password user user mode .
show session session connect
.
Router# show session
ICND v2.01-
)( :
disconnect session .
.
Router# disconnect connection-number
resume connection connection disconnect.
Router# resume connection-number
:AUX Password
remote AUX
dial-up remote
Aux password . user mode .
Router(config)# line aux 0
Router(config-line)# login
Router(config-line)# password cisco
78
ICND v2.01-
)( :
:Console password
console port .
telnet Browser
.
admin
Router(config)#line console 0
Router(config-line)#exec-timeout 0 0
Router(config)#line console 0
Router(config-line)#logging synchronous
ICND v2.01-
: Console
console . console
.
packet .
.
Router(config)#line console 0
Router(config-line)#exec-timeout 0 0
80
Router(config)#line console 0
Router(config-line)#exec-timeout 0 0
Router(config)#line console 0
Router(config-line)#logging synchronous
ICND v2.01-
: Console
command prompt
show run
up .
.
.
Router(config)#line console 0
Router(config-line)#logging synchronous
Configuring an Interface
Router(config)#interface type number
Router(config-if)#
ICND v2.01-
Interface Mode :
.
.
.
built-in slat
.
.
IP Address
mode interface Mode .
.
Router(config)#interface type number
Router(config-if)#
82
Configuring an Interface
Router(config)#interface type number
Router(config-if)#
ICND v2.01-
: ( )Interface Mode
serial .
. global mode .
Router(config)#interface serial
Router(config-if)#
slat
. slat
serial serial slat
.serial 0/1 0/0
. Exit interface mode
Router(config-if)#exit
Router(config)#
Enter Global
Configuration Mode
Router(config)#interface serial 0
Router(config-if)#
Specify Interface
Router(config-if)#bandwidth 64
Router(config-if)#exit
Router(config)#exit
Router#
Set Bandwidth
)(recommended
ICND v2.01-
Serial Interface :
Point-to-Point serial .
:
.
back-to-back
.
CSU/DSU
.
back-to-back DTE/DCE
. DTE DCE .
clock rate DCE .
DTE DCE .
84
Router#configure terminal
Router(config)#
Specify Interface
Router(config)#interface serial 0
Router(config-if)#
Set Bandwidth
(recommended)
Router(config-if)#bandwidth 64
Router(config-if)#exit
Router(config)#exit
Router#
ICND v2.01-
:( )Serial Interface
. Serial DCE DTE
Router> show controller serial 0
: serial clock rate
Router(config)#interface serial 0
Router(config-if)#Clock rate 64000
. serial Bandwidth
Router(config-if)#bandwidth 64
routing protocol
routing .
.
. 1.544 Mbps serial :
Router(config)#interface
Router(config)#interface ethernet
ethernet 22
Router(config-if)#media-type
Router(config-if)#media-type 10baset
10baset
ICND v2.01-
10 100
. 10 Mbps
. .
Router(config-if)#media-type 10baset
86
ICND v2.01-
:
.( Shut Down) default
.
.
Router(config)#interface serial 0
Router(config-if)#no shutdown
. state up
:
Router(config-if)#shutdown
. shutdown :
Introducing IP Addresses
: IP Address
bandwidth
.
Telnet console
.
.
.
TCP/IP IP IPX .
.
88
Introducing IP Addresses
) IP Address ( :
) (source address )
(destination address .
IP Address
.
.
.
(Internet Corporation Assigned Name and Number) ICANN IP
.
Introducing IP Addresses
ICND v2.01-
:( )IP Address
:
. : RIP NCC
. : ARIN
.
.
. : APNIC
. : AfriNIC
. : LACNIC
90
IP Addressing
ICND v2.01-
: IP Address
IP Address
.
IP V4 IP Version 4 . ) (octet
Octet .
octet
Octet
.
IP Address .
. IP Address :
network . host
IP Addressing
ICND v2.01-
) IP Address(:
:Network ID Network . station
.
station IP Address 172.16.1.1 172.16.255.254
. network 172.16.0.0 .
.
:Host ID IP Address . network ID IP
Address IP Host ID .
network ID Host ID
IP Address .
network ID octet host ID
.
Network ID
92
IP Address Classes
ICND v2.01-
: IP
IP
IP Address ) (octet
.
IP Address .
:
.
Class A
Class B
Class C
Class D
IP Address Classes
ICND v2.01-
) IP( :
IP Address A octet network ID octet
Host ID .
Network ID IP address network .
station network IP Address 10.0.0.1 10.255.255.254
. IP Address
octet octet .
.
octet network host .
10.0.0.0 network ID .
IP Address A octet
network ID octet Host ID .
94
IP Address Classes
ICND v2.01-
) IP( :
: Class B octet .
octet .
IP Address B octet network ID octet
Host ID .
: Class C octet
octet .
IP Address C octet network ID octet
Host ID .
IP Address Classes
ICND v2.01-
) IP(:
: Class D octet
. octet .
multicasting .
station
D .
Routing . octet multicast Group .
: class D
.
A B octet .
. .
127.0.0.1 loopback Address A B
.
96
Host Addresses
ICND v2.01-
:Host Address
. IP Address .
IP A B .
station IP Address .
octet octet
network ID 10.0.0.0 . 172.16.0.0 IP address
. station network ID
. station 172.16.2.2 station 172.16.12.12
. station 172.16.2.2 station
10.1.1.1 .
IP
Routing .
.
Host Addresses
ICND v2.01-
) Host Address (:
.
.
. Table
.
table :
.
Network ID . network
172.16.0.0 ID 10.0.0.0 .
network ID
.
routing table .
98
Host Addresses
ICND v2.01-
) Host Address (:
.
connect connect .
E0 172.16.0.0 E1
10.0.0.0 .
Subnet Mask
ICND v2.01-
:Subnet mask
Subnet Mask Network host IP Address
Binary:
Decimal: 255.0.0.0
100
Subnet Mask
ICND v2.01-
) Subnet mask (:
:Class B octet network octet
host . subnet mask default :
11111111.11111111.00000000.00000000
Binary:
Decimal: 255.255.0.0
Binary:
Decimal: 255.255.255.0
subnet mask .
IP Address station network ID subnet mask
.
Subnet Mask
ICND v2.01-
) Subnet mask (:
IP Address 172.16.12.12 station
subnet mask
Binary:
Decimal: 255.0.0.0
subnet mask network host .
host
.
102
Subnet Mask
ICND v2.01-
) Subnet mask (:
subnet mask . subnet
mask .
subnet mask IP Address A (/8) . Octet
Network Octet Host .
Network .
Subnetmask B A C /16 /8 /24 .
ICND v2.01-21
:
Subnetting Binary Decimal .
Octet
.
:
.
:
)
(.
104
ICND v2.01-21
) (:
: Octet Octet
.
: Octet
Octet .
: ) ( Octet
Octet .
: Octet
Octet .
: Octet
Octet .
: Octet
Octet .
ICND v2.01-21
) (:
: Octet
Octet .
: Octet
Octet .
: Octet Octet
.
106
=0
=1
=3
=7
= 15
= 31
= 63
= 127
= 255
0
1
1
1
1
1
1
1
1
0
0
1
1
1
1
1
1
1
0
0
0
1
1
1
1
1
1
ICND v2.01-21
0
0
0
0
1
1
1
1
1
0
0
0
0
0
1
1
1
1
0
0
0
0
0
0
1
1
1
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
1
:
Subnetting .
:Subnet
subnet mask network host .
.
Network host .
Host IP Address
. Subnet mask
IP Address .
network ID subnet mask :
Network ID: 192.168.1.0
Subnet mask: 111111111.11111111.11111111.000000000
=0
=1
=3
=7
= 15
= 31
= 63
= 127
= 255
0
1
1
1
1
1
1
1
1
0
0
1
1
1
1
1
1
1
0
0
0
1
1
1
1
1
1
0
0
0
0
1
1
1
1
1
ICND v2.01-21
0
0
0
0
0
1
1
1
1
0
0
0
0
0
0
1
1
1
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
1
) (:
subnet mask subnet mask
IP Address . IP
Address .
octet subnet mask octet
192.168.1.128 octet Subnet mask
octet 192.168.1.127
.
subnet mask IP Address
IP Address .
host Subnet mask
IP Address
. host IP Address .
108
=0
=1
=3
=7
= 15
= 31
= 63
= 127
= 255
0
1
1
1
1
1
1
1
1
0
0
1
1
1
1
1
1
1
0
0
0
1
1
1
1
1
1
0
0
0
0
1
1
1
1
1
ICND v2.01-21
0
0
0
0
0
1
1
1
1
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
1
1
1
0
0
0
0
0
0
0
0
1
) (:
host Subnet mask subnet
.
network host .
network ID subnet mask :
Network ID: 192.168.1.0
Subnet mask: 111111111.11111111.11111111.00000000
Subnetting .
10000001 00000000
11111111 00000000
128
172
1100000010000000
Network ID
Default mask 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
11111111 10000000
Subnet
Host
Network ID
10000001 00000000
1100000010000000
11111111 10000000
Default mask 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
) Subnet mask = 255.255.255.192 ( /25
ICND v2.01-2
Subnetting :
. network Address subnet mask :
Network ID: 192.168.1.0
Subnet mask: 111111111.11111111.11111111.100000000
Host .
host . Host
subnet .
110
10000001 00000000
0
1
1 1 0 0 0 0 0 01 0 0 0 0 0 0 0
Network ID
ICND v2.01-3
Subnetting )(:
subnet
.
subnet network .
network 256 network .
Octet
:
:
IP address
192.168.1.1 192.168.1.127 .
network ID 192.168.1.0 IP Address .
10000001 00000000
0
1
1 1 0 0 0 0 0 01 0 0 0 0 0 0 0
Network ID
ICND v2.01-3
Subnetting )(:
:
IP address
192.168.1.129 192.168.1.254 .
network Address
Network Address IP Address Host
. network Address 192.168.1.128 .
IP Address Network Address
126 Broadcast Address .
subnetting network network
network host Network 126 host .
subnet .
112
10000001 00000000
0
1
1 1 0 0 0 0 0 01 0 0 0 0 0 0 0
Network ID
ICND v2.01-3
Subnetting )(:
:
.
Cisco .
host
.
broad cast
.
Subnetting in Class C
ICND v2.01-4
Subnetting :C
Subnetting . Subnetting
.
.
114
Subnetting in Class C
ICND v2.01-4
Subnetting ) C (:
Valid IP Address station
Network Address Broadcast Address .
/31 . Host
IP Address Host .
network address
broadcast address .
Subnetting in Class B
ICND v2.01-5
:B Subnetting
Host B Subnet mask
.
116
Subnetting in Class A
ICND v2.01-6
Subnetting :A
Subnet mask A Host
.
M,P
Example :
Class C:
11000000
Host
11111111
11111111
Subnet
11111111
Network
ICND v2.01-9
Host :Network
IP Address Decimal Binary Subnet mask
Subnet work .
. Subnet mask Subnetwork
IP Address Valid Subnetwork .
. Default C subnet mask /24
Host Network subnet
.
: Subnet Network
Subnet
.
= 2^n
Number of subnets
118
M,P
Example :
Class C:
11000000
Host
11111111
11111111
Subnet
11111111
Network
Host :Network
: Subnet work
Subnetwork . Network 192.168.1.0 /24
192.168.2.0 /24 256 . subnetting
Subnetwork Subnetwork ID .
Subnetmask Octet
Subnetmask . C
Subnet Host .
= 2^p
Increment of subnets
Example 1
Network =200.10.57.0
Subnet mask =255.255.255.224
11100000
Host
11111111
Subnet
11111111
11111111
Network
= (2^ 5) - 2=30
Count of hosts
ICND v2.01-10
Increment
Host Network :
Network Address C Subnetmask 255.255.255.0
.
Subnet mask Subnet 255.255.255.224
Subnetwork Host ID .
/27 Host Subnet .
:
Subnetwork : .
: .
Host : Subnetwork .
120
Example 1
Network =200.10.57.0
Subnet mask =255.255.255.224
11111111
11111111
Network
Count of hosts
11111111
11100000
Subnet
Host
= (2^ 5) - 2=30
= 2^ 5 = 32
ICND v2.01-10
:( )Network Host
Subnetwork 200.20.57.0 Network
Subnetwork . .
: Network ID
Subnet 0 : 200.20.57.0
Subnet 1 : 200.20.57.32
Subnet 2 : 200.20.57.64
Subnet 3 : 200.20.57.92
Subnet 4 : 200.20.57.128
Subnet 5 : 200.20.57.160
Subnet 6 : 200.20.57.192
Subnet 7 : 200.20.57.224
Example 1
Network =200.10.57.0
Subnet mask =255.255.255.224
11100000
Host
Subnet
11111111
11111111
11111111
Network
= (2^ 5) - 2=30
Count of hosts
ICND v2.01-10
Increment
Host Network ) (:
Subnet work Network .
Subnetwork IP Address .
IP Address Subnetwork .
Network 200.20.57.0/27 .
Subnet work :
Subnet 0 : 200.20.57.0
Subnet 1 : 200.20.57.32
Subnet 0 IP Address Subnet 1 IP Address .
122
Example 1
Network =200.10.57.0
Subnet mask =255.255.255.224
11111111
11111111
Network
Count of hosts
11111111
11100000
Subnet
Host
= (2^ 5) - 2=30
= 2^ 5 = 32
ICND v2.01-10
:( )Network Host
: IP Address Subnet 0
First IP Address : 200.20.57.1
: Broad cast Address Subnet 1
Broadcast Address : 200.20.57.31
: IP Address Subnet 1
Last IP Address : 200.20.57.30
Subnet
IP Address work
Example 2
Network =172.16.0.0
Subnet mask =255.255.192.0
00000000
11000000
Host
11111111
11111111
Network
Subnet
= (2^ 14) -2
Count of hosts
ICND v2.01-10
Increment
Host Network :
Network Address B Subnet mask 255.255.0.0
. Subnet mask Subnet 255.255.192.0
Subnet work Host ID .
Subnet work .
Subnet work :
Subnet 0 : 172.16.0.0
Subnet 1 : 172.16.64.0
Subnet 2 : 172.16.128.0
Subnet 3 : 172.16.192.0
IP Address Subnet work :
Subnet 0 : 172.16.0.0
Subnet 1 : 172.16.64.0
124
Example 2
Network =172.16.0.0
Subnet mask =255.255.192.0
11111111
11111111
Network
Count of hosts
11000000
Subnet
00000000
Host
= (2^ 14) -2
= 2^ 6 = 64
ICND v2.01-10
:( )Network Host
. IP Address Subnet 1 IP Address Subnet 0
: IP Address Octet Subnet 0
First IP Address : 172.16.0.1
160
16
172
00010000
10101100
Mask
172.16.2.160
255.255.255.192
Subnet 4
Broadcast
First
Last
ICND v2.01-2
IP Address : IP Address
Network Address Subnet work
. Subnet work IP Address
IP Address Class Full Subnet mask Network
Address . 192.168.1.1 /24 Network Address
. IP Address C Class full
network ID
IP Address
Host ID IP Address .
Class Full Octet Octet .
Network Address 192.168.1.0 /24 .
126
160
16
172
00010000
10101100
Mask
172.16.2.160
255.255.255.192
Subnet 4
Broadcast
First
Last
ICND v2.01-2
IP Address ) IP Address (:
Subnet mask Network Host
Subnet work
.
. IP Address classless
Subnet work .
:
:
IP Address Binary .
172
16
10101100
00010000
255.255.255.192 11111111
11111111
172.16.2.160
160
Subnet
Broadcast
First
Last
2002, Cisco Systems, Inc. All rights reserved.
ICND v2.01-3
:
. binary Subnet mask
. Subnetting Subnet mask
128
172
16
160
10101100
00010000
255.255.255.192 11111111
11111111
3
172.16.2.160
Subnet
Broadcast
First
Last
2002, Cisco Systems, Inc. All rights reserved.
ICND v2.01-4
:
Host Network Subnet mask
.
.
. IP Address Host Network
16
172
160
00010000
10101100
11111111
255.255.255.192 11111111
11111111
172.16.2.128
3
1
11111111
172.16.2.160
Broadcast
First
Last
ICND v2.01-5
:
Subnet Work ID .
Network Address Host .
IP Address Host Subnet Mask
. Decimal Network
Address 172.16.2.128 .
130
172
16
160
10101100
00010000
3
172.16.2.160
255.255.255.192 11111111
11111111
172.16.2.128
11111111
11111111
172.16.2.191
11111111
11111111
Last
2002, Cisco Systems, Inc. All rights reserved.
ICND v2.01-6
:
IP Address Host Broadcast Address
Host .
. Broadcast Address
: Decimal
Broadcast Address : 172.16.2.191
16
172
160
00010000
10101100
3
1
172.16.2.160
11111111
255.255.255.192 11111111
11111111
11111111
172.16.2.128
11111111
11111111
172.16.2.191
11111111
11111111
172.16.2.129
5
6
Last
ICND v2.01-7
:
IP Address Subnet Work
Host . IP Address
.
172.16.2.191 .
132
172
16
160
10101100
00010000
3
172.16.2.160
255.255.255.192 11111111
11111111
172.16.2.128
11111111
11111111
172.16.2.191
11111111
11111111
172.16.2.129
11111111
11111111
172.16.2.190
11111111
11111111
ICND v2.01-8
:
IP . Host
. 172.16.2.190 Address
Ch.6
OSPF
Device
Part 1 of 2:Cisco
Single
Area OSPF
CCNP 1 version 3.0
Rick Graziani
Cabrillo College
134
:
.
ICND v2.02-
:
) ( IOS . IOS load
NVRAM load
power on
command prompt .
: . POST
power-on self-test .
: bootstrap .
.
: IOS . IOS default
Flash . IOS Flash
Load .
136
ICND v2.02-
) (:
: IOS load )(RAM
.
: load IOS .
startup-config .
Startup-config NVRAM
.
: startup-config load
)(RAM .
: startup-config load
. RAM . RAM
.
ICND v2.02-
:
boot .
startup router .
:RAM . boot .
IOS load Flash RAM
startup-config .
.
routing table
.
:ROM .
. ROM .
138
ICND v2.02-
) (:
:Flash IOS Intel
.
:NVRAM .
startup-config .
:Configuration register boot . show
version
ROM Functions
: ROM
ROM
. ROM :
.
Bootstrap
POST
ROM Monitor
:Bootstrap
ROM IOS load .
show version .
140
ROM Functions
: ROM
:POST ROM .
.
:Mini IOS ROM IOS Flash IOS Load
POST . flash
IOS . Mini IOS UP
IOS load.
:ROM Monitor ROM mode
. ROM
. Mode
Boot IOS ctrl Break .
.
ICND v2.02-
:Router Startup
boot .
power on
CLI .
power on POST ROM
.
bootstrap ROM .
IOS load .
Configuration register .
142
ICND v2.02-
) Router Startup (:
IOS :
.
0X2100
0X2101
0X2102-0X210F
ICND v2.02-
) Router Startup (:
:0x2102
flash IOS .
:
.
IOS flash
IOS flash
144
ICND v2.02-
) Router Startup (:
:
0x2142
NVRAM .
0x2142 NVRAM
setup mode .
mode
.
setup dialog mode user
mode .
ICND v2.02-
) Router Startup (:
0x2102
NVRAM startup-config
. NVRAM load RAM
. NVRAM setup mode
.
boot .
146
IOS : RAM
IOS load .
IOS
RAM decompress .
IOS ) (.bin
decompress RAM
flash .
Router>show flash
user mode privileged mode .
wg_ro_a#show
wg_ro_a#show flash
flash
System
System flash
flash directory:
directory:
File
Name/status
File Length
Length
Name/status
11
10084696
10084696 c2500-js-l_120-3.bin
c2500-js-l_120-3.bin
[10084760
[10084760 bytes
bytes used,
used, 6692456
6692456 available,
available, 16777216
]16777216 total
]total
16384K
16384K bytes
bytes of
of processor
processor board
board System
System flash
flash (Read
)(Read ONLY
)ONLY
ICND v2.02-
: Show Flash
flash show flash .
IOS
flash TFTP Server . .
IOS . Show Flash :
c2500-js-l-12.0-3 . bin
:C2500 device . device 2500 .
: JS IOS )(enterprise .
:L IOS flash load
RAM .
:12.0-3 IOS .
:Bin IOS bin .
148
clear text
. mode.
RAM
. .
RAM .
Router# show running-config
In RAM
wg_ro_c#show startup-config
Using 1359 out of 32762 bytes
!
version 12.0
!
-- More --
wg_ro_c#show running-config
Building configuration...
Current configuration:
!
version 12.0
!
-- More --
ICND v2.02-
RAM NVRAM :
RAM NVRAM show running-config
150
ICND v2.02-
boot . IOS
.
setup mode NVRAM 0x2142
RAM NVRAM 0x2101
.
. privileged mode
Router# show version
ICND v2.02-
:( )
:
configuration register
RAM
NVRAM
Flash
UP
IOS
Bootstrap
. password recovery
152
Summary
When a router boots, it performs tests, finds and loads
software, finds and loads configurations, and finally runs
the software.
The major internal components of a router include RAM,
ROM, flash memory, NVRAM, and the configuration
register.
When a router boots, it searches for the IOS software
image in a specific sequence: location specified in the
configuration register, flash memory, a TFTP server, and
ROM.
The configuration register includes information
specifying where to locate the Cisco IOS software image.
You can examine the register with a show command and
change the register value with the config-register global
configuration command.
2002, Cisco Systems, Inc. All rights reserved.
ICND v2.02-
:
. on power
. safe
. RAM load IOS
NVRAM
. setup mode . RAM
0x2142 .
.
. Mode CLI
Cisco Routers
154
IP Routed Protocol IP .
Network .
LAN Fast Ethernet packet
Network .
destination packet .
packet
.
packet .
.
.
156
.Routing
.Default Static
Routing Routing
. Network
.
.
.
.
Database
.
Databese Routing Table .
158
)(:
Network Routing Table
Routing Table . .
table Network address 10.120.2.0 E0
) 172.16.0.0 ( Connect S0
.
static routing
dynamic routing
Network
. admin
.
Network .
connect Routing Table
160
.
.
162
Static Routes
ICND v2.05-
: Static
static route
.
stub Network .
Stub Network ) (gateway
. local .
route .
TU
www
. station .yahoo.comUT
172.16.1.0 .
.
stub Network 172.16.2.1
S0 A IP 172.16.2.2 A
.
Static Routes
ICND v2.05-
) Static (:
static route A . A
172.16.1.0 S0 .
.
static route A 172.16.1.0
172.16.2.1 .
B default route
.
164
ICND v2.05-
: Static Route
static route global mode IP Route
:
Network addresses :Network
.
subnet masks :Mask Network .
:Address | interface IP Address Point-to-Point
.
: IP static route .
static route :Distance administrative distance .
.
AD .
) Static Route ( :
:Permanent down route
static route Routing Table . down
Routing Table permanent
static route . Routing Table
.
166
Static Route :
. stub Network A static route
.
A 172.16.1.0 S0 .
172.16.1.0 172.16.2.1 A 172.16.2.2
172.16.2.1 point-to-point 172.16.1.0 .
Default Routes
: Default Route
static route . static route A
stub . A 172.16.1.0
.
B
172.16.1.0 Stub B
stub . .
.
.
Default route .
Default route :
168
Default Routes
: Default Route
default route global mode IP Route .
:
:IP route static routing default routing .
:0.0.0.0 IP IP
.
subnet mask :0.0.0.0 IP 0.0.0.0 .
:Address | interface IP Address Point-to-Point
.
router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route
Gateway of last resort is 0.0.0.0 to network 0.0.0.0
10.0.0.0/8 is subnetted, 1 subnets
10.1.1.0 is directly connected, Serial0
0.0.0.0/0 is directly connected, Serial0
ICND v2.05-
C
*S
: static Route
:Show IP route Routing Table .
Default route .
. 10.1.1.0 connected serial 0 .
table * S . default route
.
serial 0 .
static route static route
Routing Table S.
routing protocol
show ip route Codes .
170
ICND v2.05-
IGP AS : EGP
:Autonomous system .
AS IGP
.
AS 0 65535 .
IANA AS AS Region
.
Autonomous system Dynamic Routing Protocol
:
172
ICND v2.05-
: ( )EGP IGP AS
:(IGPs) Interior Gateway Protocols
AS Routing Protocol
AS . AS
.
AS OSPF EIGRP IGRP RIP Routing protocol
.
Administrative Distance:
Ranking Routes
ICND v2.05-
:Administrative Distance
Administrative Distance AD Routing
.
. A RIP IGRP
. A D .
routing protocol .
AD . static route AD
RIP AD 120 AD . 0 255 .
: Routing Table connect AD
.
AD
174
Administrative Distance:
Ranking Routes
ICND v2.05-
) Administrative Distance (:
AD
Routing Table
.
D AD .
AD ) (ABD .
.
routing protocol
. .
AD .
ICND v2.05-
Static route
Dynamic route
Admin
. Network
. . .
up down
.
Dynamic routing protocol :
.
Distance Vector
Link state
Hybrid Routing
176
ICND v2.05-
ICND v2.05-
178
ICND v2.05-
ICND v2.05-
Classless Routing
180
ICND v2.05-
ICND v2.05-
182
Routing Protocol
Comparison Chart
ICND v2.05-
ICND v2.05-
IP Classless :
Connect .
Connect .
Classful Connect Drop
.
Default Route Drop .
IP Classless .
Connect Drop . Routing Table
Table
.
IP Classless IP Classless Global Mode
.
184
Summary
Routing is the process by which an item gets from one
location to another. In networking, a router is the device
used to route traffic.
Routers can forward packets over static routes or
dynamic routes, based on the router configuration.
Static routes can be important if the Cisco IOS software
cannot build a route to a particular destination. Static
routes are also useful for specifying a gateway of last
resort to which all unroutable packets will be sent.
A default route is a special type of static route used for
situations when the route from a source to a destination
is not known or when it is unfeasible for the routing table
to store sufficient information about the route.
ICND v2.05-
:
. Network
Routing Table .
. dynamic routing static routing :
Network .
admin
.
.
.
Default route
.
Distance Vector
Roruting
186
:
.
. Distance Vector
. Loop
: Distance Vector
Distance Vector Bellman-Ford .
.
.
connect .
. Routing Table
Routing Table .
.Periodic Update
188
) Distance Vector (:
connect :
Routed Protocol IP up
up connect .
: Routing Table
connect . connect
Routing Table route Connect .
:
connect Routing Table Update
. Update Routing Table
connect .
Update RIP 255.255.255.255 IGRP 224.0.0.9 .
) Distance Vector (:
Update Update
.
Update Routing Table
Unicast .
Routing Table .
190
) Distance Vector (:
. Routing Table
Update .
Update Connect Routing
Broadcast Protocol Multicast . Update
Routing Table Routing Table .
.
. Routing Table
.
192
Routing Update
194
Selecting the
Best Route with Metrics
ICND v2.05-
:
:
.
.
.
. Dynamic
. RIP hop count IGRP
. IGRP :
.
Bandwidth
Delay
Load
Reliability
MTU
Selecting the
Best Route with Metrics
ICND v2.05-
:
Bandwidth Delay IGRP .
dynamic Protocol .
RIP .
IGRP bandwidth .
. IGRP bandwidth
. IGRP
IGRP .
.
RIP A B
. hop count RIP 2
.
196
Selecting the
Best Route with Metrics
ICND v2.05-
:
IGRP . IGRP
default bandwidth delay . delay
. T1
.
Routing Table :
Distance-Vector
. Routing Table
Routing Table . Update
Routing Table
Routing Table . :
Update A . Update Routing Table
. Update . Routing Table A
. A Update .
Periodic Update Time .
198
ICND v2.05-
: Loop
. Routing Table
. Routing Table Connect
ICND v2.05-
Loop )(:
C Full Update Full Update
E0 C Shut down . down network
.
Routing Table C . Routing Table C .
10.4.0.0 C .
200
Loop )( :
B 10.4.0.0
. B Routing
Table s1 10.4.0.0 .
Periodic Update B . B Full Update
. C Routing Table Update . Update
10.4.0.0 C . 10.4.0.0 Routing Table
. B 10.4.0.0 C C
.
C 10.4.0.0 B
Down .
ICND v2.05-
Loop )( :
B Update Routing Table Advertise . B
Update
B C .
10.4.0.0 3 .
Update Routing Table Update
.
202
Count to Infinity
ICND v2.05-
Loop )( :
Routing Table .
.
Count to Infinity .
Defining a Maximum
ICND v2.05-
Loop )( :
.
maximum
Count to Infinity .
RIP hop count maximum 16
.
Network 16
)(Unreachable .
204
Routing Loops
Loop )( :
.
Routing loop .
A 10.4.0.0 . A
Routing Table B . B Routing
Table S1 C C
Routing Table
S0 B . . B
C loop
.
loop distance-vector .
loop .
Routing Loops
ICND v2.05-
: ( )Loop
. loop distance-vector
Split Horizon
Route Poisoning
Poison Reverse
Holddown Timer
Triggered Update
206
Split Horizon
: Loop
shut down E0 B loop C .
C B .
B C
.
.
C 10.4.0.0 B . B Full
Update 10.4.0.0 C .
E0 C . Routing Table C Update . C
Full Update .
Update C B . Update B
C . B C .
10.4.0.0 loop C .
Split Horizon
: Loop
loop Split Horizon
.
: Split Horizon loop loop
.
loop C A loop
.
Distance-Vector Split Horizon
. no ip split horizon
.
208
Route Poisoning
: Loop
split horizon :
.
route poisoning
Route Poisoning
) Loop(:
Update Routing Table Unreachable full Update
Down .
Update Network Routing Table
Holddown timer Routing Table .
Routing Table Down Possibly Down
Unreachable Routing Table .
210
Poison Reverse
ICND v2.05-
: Loop
:Split horizon with poisoning reverse
split horizon . split horizon network
.
.
B Full Update 10.4.0.0 C .
split horizon 10.4.0.0 C .
. E0 C shutdown . Route
C . C Route .
B Update Update B 10.4.0.0
C . B C 10.4.0.0 .
C B 10.4.0.0
B C
Poison Reverse
ICND v2.05-
) Loop(:
C Update 10.4.0.0 B
Update B route 10.4.0.0 . B
10.4.0.0 Update C . loop
.
B Update Inaccessible C
10.4.0.0 B C .
212
Holddown Timers
: Loop
Loop Loop
Holddown Timer .
Holddown Timer network Hold
holddown timer Network
. periodic Update . RIP 180 IGRP
270 . Holddown timer :
Holddown Timers
) Loop (:
.
network . hold
.
. Update
Ignore .
214
Holddown Timers
ICND v2.05-
:( )Loop
Update Update . Poisoning
Routing Table Network Holddown Network
. Possibly Down
Triggered Updates
ICND v2.05-
: Loop
Loop Periodic Update
Distance-Vector . Down Network .
Distance-Vector Periodic
. Triggered Update Routing Table
.
.
Network .
Triggered Update Holddown Timer . hold
Update triggerd Update down
Network loop .
216
ICND v2.05-
Distance Vector :
Loop .
Loop .
C B A D 10.4.0.0 .
10.4.0.0 B Down Route Poison . Route
Routing Table Infinity Routing Table . B
Routing Table . Triggered Update Routing Table
.
triggered Update D A 10.4.0.0
.
ICND v2.05-
Distance Vector :
D A 10.4.0.0 .
Holddown A D Hold Update
Ignore . Routing Table 10.4.0.0
Possibly Down
. Triggered Update A D E .
E Hold Route Routing Table Possibly Down .
218
ICND v2.05-
Distance Vector :
Split Horizon With Poison Reverse .
A Update D B 10.4.0.0 ) ( Inaccessible
.
E Hold Update D A Inaccessible
10.4.0.0 .
ICND v2.05-
Distance Vector :
Hold . Holddown Timer
Route .
Hold up hold
.
hold.
10.4.0.0 up B Routing Table
.
220
ICND v2.05-
Distance Vector :
hold Update hold Routing
Table Possibly Down 10.4.0.0 .
Update Routing Table .
Hold .
Summary
Distance vector-based routing algorithms
(also known as Bellman-Ford algorithms) pass periodic
copies of a routing table from router to router.
When the topology in a distance vector protocol
internetwork changes, routing table updates must
occur. As with the network discovery process,
topology change updates proceed step-by-step from
router to router.
When maintaining the routing information,
inconsistencies can occur if the internetworks slow
convergence on a new configuration causes incorrect
routing entries.
ICND v2.05-
:
Distance-Vector .
. .
.
Table Network .
Update Distance-Vector .
Update Network .
Distance-Vector Loop .
Periodic Update . Network Down
.
loop .
Loop Loop .
222
. Hybrid Routing
224
Objectives
ICND v2.05-
: Routing
:
Link State
Hybrid
. Distance-Vector
Link-State
.
. Hybrid Routing Dynamic Routing Protocol
: Link State
Dynamic Routing Protocol Link-state Routing Protocol
Routing table
Link-Sate Database
Neighbor table
. Neighbor table .
.
Link-State Database . Link-State
Database .
226
: Link State
SPF Run
Routing Table .
Link-Sate
Database SPF .
)(
. .
) Link State (:
Distance-Vector Update .
.
Update Link-State .
Link-Stat Database .
Loop .
OSPF IS-IS Link-State .
228
: Link State
Link-state Protocol . .
AS Area .
: (AS) Autonomous system AS
. AS Area .
: Area . Area Link-State Database
. Area Link-State
Database Area .
. Area AS Link-State Database
Routing Table .
. AS Link-State .
AS
.
) Link State (:
Area :
.
.
Backbone Area
non Backbone Area
230
ICND v2.05-
:( )Link State
: Area Backbone Area
Normal Area
Stub Area
) Link State(:
ABR Link-State Database Area
Area .
Area Area . Area
ABR Area .
232
Link-State Routing
Protocol Algorithms
ICND v2.05-
: Link State
Link-state Database .
Database . Database
ABR Interior Router .
) LSA ( Link State Advertisement Link-
State Database . Link State Protocol Full
Update . Link-State Database LSA
.
Periodic Update .
Link-State Database . Cost
.
. A D . A LSA
Link-State Database .
Link-State Database A .
Cost
Next Hop
Destination
Router
185.134.0.0
192.168.33.0
192.168.157.0
192.168.157.0
10.0.0.0
192.168.33.0
192.168.157.0
10.0.0.0
185.134.0.0
192.168.157.0
10.0.0.0
10.0.0.0
185.34.0.0
192.168.33.0
234
ICND v2.05-
: Link State
Link State Protocol
Distance-Vector .
Triggered Distance-vector
. .
Link-State Database
Dijkstra .
ICND v2.05-
) Link State (:
.
Area .
Update Distance-Vector Periodic .
Routing Table
. Link-State Distance-Vector
.
.
236
: Link State
Link-State . .
Table .
Table Memory .
Dijkstra CPU .
CPU
Dijkstra .
Table .
Area Dijkstra .
. Area Backbone
Area Backbone Area Area
.
: Hybrid Routing
Link state .Distance Vector
Distance Vector
. Full
update .
Link state .
topology table .
Hybrid routing protocol EIGRP .
238
Summary
Link-state routing uses LSAs, a topological
database, the SPF algorithm, the resulting SPF tree,
and a routing table of paths and ports to each
network.
Link-state routing algorithms maintain a complex
database of the network's topology by exchanging
LSAs with other routers in a network.
Link-state routing may flood the network with LSAs
during initial topology discovery and can be both
memory- and processor-intensive.
Balanced hybrid routing protocols combine aspects
of both distance vector and link-state protocols.
2002, Cisco Systems, Inc. All rights reserved.
ICND v2.05-
:
. Distance-Vector Link-State
. Link-State
. Table
Dijkstra
. Routing Table
. Link-State Database LSA
Topology Table . CPU Memory
Area . Routing Table
. Table
RIP
240
:
.
RIP .
RIP .
. RIP
Objectives
Upon completing this lesson, you will be
able to:
Describe the features and operation of RIP
Use Cisco IOS commands to configure dynamic
routing using RIP, given a functioning router
Use show and debug commands to identify
anomalies in dynamic routing operation using
RIP, given an operational router
ICND v2.05-
: RIP
IGPs(Interior Gateway Protocol ) RIP
.
. AS
. Distance-Vector RIP
RIP RIP
. IP
. Debug
242
RIP Overview
) RIP ( :
(Routing Information Protocol) RIP Distance-Vector
Network
. hop count . RIP
. Distance-Vector
Periodic Update RIP.
Routing table
RIP Distance-Vector .
) hop cont (
Maximum
infinity .
RIP Overview
) RIP ( :
.
244
RIP Overview
ICND v2.05-
: ( ) RIP
: Load balancing :
RIP Overview
) RIP ( :
:Unequal Load Balancing
. Variance .
Default
. Variance
.
Variance Unequal Load Balancing EIGRP, IGRP .
246
IP Routing
Configuration Tasks
Router configuration
Select routing protocols.
Specify networks or
interfaces.
ICND v2.05-
: RIP
: Dynamic Routing Protocol
Select Routing Protocol
. IP
ICND v2.05-
:( )RIP
. Dynamic Routing Protocol
: Global Mode
248
ICND v2.05-
:( )RIP
. Network
Update receive send
. Connect network-number .
Router(config-router)#network network-number
RIP Configuration
Router(config)#router rip
Router(config-router)#network network-number
ICND v2.05-
:( )RIP
. Dynamic Routing Protocol
: RIP
RIP
Connect
Router(config)#router rip
Router(config-router)#network network-number
. RIP :
250
ICND v2.05-
RIP :
: B A C Connect .
RIP A :
:Router RIP Routing Protocol RIP A .
:Network 172.16.0.0 .E0
:Network 10.0.0.0 .S2
A Connect .
RIP V1 Classful CIDR .
B Connect Network ID 10.1.1.0.0/24 10.2.2.0/24 .
RIP classful .
B 10.0.0.0/8 connect .
ICND v2.05-
:
RIP .
) Connect ( Routing Table
. Connect Connect
show ip route .
Timer .
show ip route .
A RIP .
Periodic Distance-Vector . Time :
.
Update Timer
Invalid timer
Holddown Timer
Flush Timer
252
ICND v2.05-
) (:
RIP Distance-Vector . Default
:
.
: Update Timer
: Invalid timer
: Holddown Timer
: Flush Timer
:
:Update Timer Routing table
Broadcast address)255.255.255.255( .
.
ICND v2.05-
) (:
:Invalid Timer
Update
Hold Update
Possibly Down Routing Table .
254
ICND v2.05-
)(:
:Holddown Timer Update Update
Loop
hold . Routing Table Possibly Down
.
ICND v2.05-
RIP : Debug
Connect Routing Table
. Show ip Route A :
Table :
.
:R or C Routing Table
.
R Update
. Routing Table
Routing table R .
256
ICND v2.05-
RIP : Debug
.
:Serial 2 .
.
Connect serial 2 .
Summary
RIP is a distance vector routing protocol that uses hop
count as the metric for route selection and broadcasts
routing updates every 30 seconds.
To enable a dynamic routing protocol, you will select the
routing protocol and then assign IP network numbers.
The router rip command specifies RIP as the routing
protocol. The network command identifies a participating
attached network.
The show ip commands display information about
routing protocols and the routing table.
Use the debug ip rip command to display information on
RIP routing transactions.
2002, Cisco Systems, Inc. All rights reserved.
ICND v2.05-
:
. Distance-Vector ( Routing Information Protocol) RIP
Update Distance-Vector RIP . ) ( Hop Count
. Routing Table update Periodic
Update Bandwidth .
Routing Protocol .
:
: RIP
: Connect
Router(config-router)#network network-number
debug ip rip show ip route Routing Table
.
258
IGRP
:
.
. IGRP
. IGRP
. IGRP
260
Objectives
Upon completing this lesson, you will be
able to:
Describe the features and operation of IGRP
Use Cisco IOS commands to configure dynamic
routing using IGRP, given a functioning router
Use show and debug commands to identify
anomalies in dynamic routing operation using
IGRP, given an operational router
ICND v2.05-
: IGRP
1980 Cisco IGRP Interior Gateway Routing Protocol
.
. RIP IGRP
.
. Debug
Introducing IGRP
: IGRP
Interior Gateway Routing Protocol IGRP Cisco 1980
. Distance Vector
RIP . :
bandwidth
Delay
Load
MTU
Reliability
262
Introducing IGRP
ICND v2.05-
: ( )IGRP
. balance RIP IGRP :Unequal Load Balancing
RIP
Unequal Load Balancing Default IGRP . Balance
.
Bandwidth
Delay
Reliability
Loading
MTU
ICND v2.05-
: IGRP
:Composite Metric
IGRP RIP . :
.
Delay
Load
MTU
Bandwidth
Reliability
Bandwidth Delay .
.
RIP 15 . RIP
15 . RIP .
264
Bandwidth
Delay
Reliability
Loading
MTU
ICND v2.05-
: IGRP
IGRP RIP 255 . IGRP RIP Maximum hop Count
.
IGRP
RIP
:
Bandwidth
Delay
Reliability
Loading
MTU
ICND v2.05-
: IGRP
RIP Run RIP ) ( hop Count
AD .
T1 IGRP .
. IGRP .
266
Bandwidth
Delay
Reliability
Loading
MTU
ICND v2.05-
) IGRP( :
:Bandwidth
IGRP
. A
PC-2 ABCD .
:Delay
packet .
delay .
:Load
.
IGRP . load
load .
load .
Bandwidth
Delay
Reliability
Loading
MTU
ICND v2.05-
) IGRP( :
:Reliability . down
packet lost .
IGRP
. Reliability
.
.
Bandwidth Delay .
268
Bandwidth
Delay
Reliability
Loading
MTU
ICND v2.05-
) IGRP( :
bandwidth Delay .
delay
.
Source Destination
Type Ethernet 1000 Mb/s
dial-up 56 k
IGRP Minimum Bandwidth Count of Delay .
:Load Balancing
Load Balancing :
.
) IGRP( :
270
Configuring IGRP
Router(config-router)#network network-number
ICND v2.05-
: IGRP
IGRP . .
Dynamic .
.
Connect .
: .
Global Mode .
Router(config)#router igrp autonomous-system
: information AS
Number .
: Connect IGRP .
Router-mode .
Router(config-router)#network network-number
ICND v2.05-
IGRP :
B A C AS 100 IGRP AS
.
IGRP A .
IGRP . global mode :
Router(config-router)#network 172.16.0.0
Router(config-router)#network 10.0.0.0
272
ICND v2.05-
:IGRP
IGRP . IGRP
Distance-Vector Link-State
Table
Routing Table . Table show ip Route .
IGRP Update Periodic Full Update .
IGRP timer show ip protocol .
Timer IGRP Holddown Invalid Update Flush 280 270 90
630 .
ICND v2.05-
) IGRP (:
IGRP :
)Metric = [(k1 * BW) + (K2 * BW) + (K3 * Delay)] + K5 (256 Load) (Reliability + K4
Bandwidth Delay .
K2=K4=K5=0 K1=K3=1 . show ip protocol
.
274
ICND v2.05-
ICND v2.05-
IGRP : Debug
. IP-Address .
Receive Update From
IP-Address on Interface IP-Address interface
Update . Update
. Update
255.255.255.255
276
ICND v2.05-
: Debug IGRP
. Update Network AS
Events Debug ip igrp . Debugging
.
Debug ip igrp Transaction
. Network
. Undebug all no
ICND v2.05-
Link :IGRP
IGRP Distance-Vector Scenario .
Connect .
IGRP Run Routing Table
.
E0 A shut down.
A Update (Triggered Update) S2
172.16.1.0 B ). (00:31:15
B Update Routing Table Update
A inaccessible 172.16.1.0 a .
Update 00:31:16 Serial 2 172.16.1.0
) ( 4294967295 ).(Split Horizon With Poison Reverse
278
ICND v2.05-
Link )IGRP (:
B Triggered Update Routing Table A .
.
A Poison Reverse Loop 172.16.1.0
Possibly down Triggered Update 172.16.1.0 C
.
B Triggered Update A Hold down
Update advertise drop .
ICND v2.05-
Link )IGRP (:
B Down 172.16.1.0 Down .
Holddown 280 IGRP . B 172.16.1.0
possibly Down 280 .
172.16.1.0 Ping .
280
ICND v2.05-
Link )IGRP (:
Summary
IGRP has several key features such as increased
scalability, a sophisticated metric, and multiple paths.
IGRP uses a composite routing metric that can include
bandwidth, delay, reliability, loading, and MTU value.
The IGRP composite routing metric supports multiple
paths between source and destination.
Use the router igrp and network commands to create an
IGRP routing process. Use the variance and traffic-share
commands to configure IGRP load balancing.
Use the show ip protocols and show ip route commands
to display information about your IGRP configuration.
Use the debug ip igrp transaction command to display
transaction information on IGRP routing transactions and
the debug ip igrp events command to display a summary
of the IGRP routing information.
2002, Cisco Systems, Inc. All rights reserved.
ICND v2.05-
:
. Distance-Vector ( Interior Gateway Routing Protocol) IGRP
. Routing Table
. RIP . Periodic
IGRP MTU Reliability Bandwidth Delay Load
. Delay Bandwidth
:
. Connect
Debug
. IP-Address .
282
EIGRP
:
.
. EIGRP
. EIGRP
. EIGRP
284
Objectives
Upon completing this lesson, you will be
able to:
Describe the features and operation of EIGRP
Use Cisco IOS commands to configure dynamic
routing using EIGRP, given a functioning router
Use show and debug commands to identify
anomalies in dynamic routing operation using
EIGRP, given an operational router
ICND v2.05-
: EIGRP
Cisco IGRP (Enhanced interior Gateway Routing Protocol) EIGRP
.
. AS IGPs EIGRP
EIGRP . Media Topology
. Overhead Convergence
. Monitoring
Introducing EIGRP
EIGRP supports:
Rapid convergence
Reduced bandwidth usage
Multiple network-layer protocols
ICND v2.05-
) EIGRP (:
Dynamic :
.
Distance-Vector
Link- state
Hybrid
286
Introducing EIGRP
EIGRP supports:
Rapid convergence
Reduced bandwidth usage
Multiple network-layer protocols
ICND v2.05-
) EIGRP (:
EIGRP Link-State Routing Table
Topology Table .
EIGRP
EIGRP . Table .
Table Topology Database Routing Table
Network Neighboring Table .
EIGRP :
EIGRP . Diffusing
) Update Algorithm (DUAL .
EIGRP Back up
Topology Database .
Introducing EIGRP
EIGRP supports:
Rapid convergence
Reduced bandwidth usage
Multiple network-layer protocols
ICND v2.05-
) EIGRP (:
Down Dual
.
Back up .
EIGRP
Hello Packet EIGRP Stable . EIGRP
Link-State Hello Packet .
Hello packet ) (Adjacency
Neighboring Table .
288
EIGRP Terminology
ICND v2.05-
: EIGRP
EIGRP IP Routed Protocol IPX Apple Talk
. EIGRP Table :
.
Neighboring table
Topology table
Routing table
EIGRP Terminology
ICND v2.05-
) EIGRP (:
:Routing table Topology Table DUAL EIGRP
Routing table .
Routing Table Topology table . EIGRP Routing protocol
Back up Destination
Down Run DUAL
.
.
:(RD) Reported Distance .
:(FD) Feasible Distance
FD .
:Successor FD Successor .
.
290
EIGRP Terminology
ICND v2.05-
) EIGRP (:
:(FC) Feasible Condition FD<RD
Back up . feasible Successor
Back up
Topology table
.
:Feasible Successor Backup Successor FC
.
Similar metric
Same load balancing
Improved convergence time
Reduced network overhead
ICND v2.05-
IGRP : EIGRP
EIGRP . Cisco
EIGRP IGRP.
EIGRP Distance-Vector . Distance-Vector
Periodic .
Convergence .
EIGRP Distance-Vector . Distance-Vector
. Link-State
EIGRP IGRP 255 .
MTU Reliability Delay Load bandwidth
Default Bandwidth Delay .
292
Similar metric
Same load balancing
Improved convergence time
Reduced network overhead
ICND v2.05-
IGRP ) EIGRP (:
Unequal load Balancing .
EIGRP IGRP Default Balance .
EIGRP IGRP . EIGRP Backup Topology Table
. Down ) ( Successor ( Feasible Successor) Backup
DUAL . ) ( Convergence
. EIGRP .
.
Dynamic .
.
Connect .
Similar metric
Same load balancing
Improved convergence time
Reduced network overhead
ICND v2.05-
IGRP ) EIGRP (:
: Run .
Global Mode .
Router(config)#router eigrp autonomous-system
: information AS
Number .
: Connect . Router Mode
.
Router(config-router)#network network-number
294
ICND v2.05-
EIGRP :
B A C AS 100 EIGRP AS
.
EIGRP A .
EIGRP . global mode :
Router(config-router)#network 172.16.0.0
Router(config-router)#network 10.0.0.0
Summary
EIGRP is an interior gateway protocol suited for
many different topologies and media.
EIGRP is an enhanced version of the IGRP
developed by Cisco, with improved convergence
properties and operating efficiency over IGRP.
Use the router eigrp and network commands to
create an EIGRP routing process.
Use the show ip eigrp commands to display
information about your EIGRP configuration.
To display information on EIGRP packets, use the
debug ip eigrp privileged EXEC command.
2002, Cisco Systems, Inc. All rights reserved.
ICND v2.05-
:
Cisco IGRP (Enhanced interior Gateway Routing Protocol) EIGRP
. AS IGPs EIGRP.
Apple Talk IPX IP Routed Protocol EIGRP
Neighboring table : Table EIGRP .
.Routing table Topology table
down Topology Table Backup EIGRP
. DUAL
: .
. Connect
296
OSPF
:
.
. OSPF
. OSPF
.OSPF
298
Objectives
Upon completing this lesson, you will be
able to:
Describe the features and operation of OSPF
Use Cisco IOS commands to configure dynamic
routing for a single area OSPF network, given a
functioning router
Use show and debug commands to identify
anomalies in dynamic routing operation using
OSPF, given an operational router
ICND v2.05-
: OSPF
: Dynamic Routing Protocol
Distance-Vector
Hybrid
Link-State
Link-State OSPF .
.
. AS . IGPs EIGRP IGRP RIP OSPF
. Link-State OSPF
: OSPF
Single Area OSPF
Introducing OSPF
Open standard
Shortest path first (SPF) algorithm
) Link-state routing protocol (vs. distance vector
ICND v2.05-
: OSPF
OSPF IGRP RIP EIGRP igps . AS
BGP AS AS .
OSPF IGRP EIGRP Cisco Open Source
IETF .
IP :
.
OSPF Link-State .
Dijkstra
Routing Table .
300
ICND v2.05-
Subnet Mask
. Type
...
ICND v2.05-
302
ICND v2.05-
LSA
.
( Dijkstra) OSPF Run , Link-State Database OSPF
. Routing Table
. hierarchical EIGRP IGRP RIP OSPF
. Run OSPF
304
: OSPF
OSPF AS Area
Area . :
.
Backbone Area
ICND v2.05-
:( )OSPF
. Area Routing Table Link-State Database
: AS Hierarchical
. SPF
. Routing Table
306
: SPF
SPF
. Node Cost
Routing Table .
Cost Bandwidth .
56 K Overhead Delay 10 Mb/s
. 10 Mb/s
.
OSPF Cost :
)Cost=100000000/Bandwdth (in bps
T1 1.544Mbps Cost 100000000/1544000=64 .
ICND v2.05-
Connect Area .
: OSPF Process-id .
Global Mode .
Router(config)#router ospf process-id
: Process-id OSPF . OSPF
Run . . Local
. OSPF Process-id
.
308
ICND v2.05-
ICND v2.05-
310
ICND v2.05-
OSPF :
. OSPF .
Area 0 . OSPF B .
OSPF .
Run : OSPF .
OSPF Process-id 100 :
Router(config)#router ospf 100
: .Connect
Connect Network ID Host Address
) IP Address( .
Host Address Subnet mask 255.255.255.255 . Wild Card
Mask 0.0.0.0 .
ICND v2.05-
:( )OSPF
Router(config-router)#network 10.1.1.2 0.0.0.0 area 0
Router(config-router)#network 10.2.2.2 0.0.0.0 area 0
Area . AREA 0
.
312
Router ID:
Number by which the router is known to OSPF
Default: The highest IP address on an active interface at the
moment of OSPF process startup
Can be overridden by a loopback interface: Highest IP address
of any active loopback interface
ICND v2.05-
RID : OSPF
:Router ID OSPF .
OSPF RID RID
.
IP Address RID
.
RID . RID
. Down OSPF RID
.
OSPF .
Loop Back Interface UP .
Router ID:
Number by which the router is known to OSPF
Default: The highest IP address on an active interface at the
moment of OSPF process startup
Can be overridden by a loopback interface: Highest IP address
of any active loopback interface
2002, Cisco Systems, Inc. All rights reserved.
ICND v2.05-
RID : OSPF
Loop Back Interface .
. .
Router(Config)#interface loopback number
:number 0 65535 . 65536
. , UP UP
. , RID Loop back
RID Loop Back Interface Loop Back IP Address
RID .
Loop Back RID
. RID . OSPF RID
.
314
Router ID:
Number by which the router is known to OSPF
Default: The highest IP address on an active interface at the
moment of OSPF process startup
Can be overridden by a loopback interface: Highest IP address
of any active loopback interface
ICND v2.05-
RID ) OSPF (:
:DR/BDR
Multi-access Ethernet
Neighboring . ) (Neighbor .
Ethernet
. n Multi-access
n(n-1)/2 Multi-access .
Router ID:
Number by which the router is known to OSPF
Default: The highest IP address on an active interface at the
moment of OSPF process startup
Can be overridden by a loopback interface: Highest IP address
of any active loopback interface
ICND v2.05-
RID : OSPF
Link-State Database
.
Multi-access
RID . Multi-access
RID Designated Router .
( Link-State Update ) LSU DR BDR .
Link-State Database DR
Multi-access BDR DR Down
DR BDR DR .
316
: OSPF
OSPF Single Area .
Link-State OSPF
Table . Table Show .
:Show IP protocol Network
.
:Show IP Route Dijkstra
Routing Table .
:Show IP OSPF Interface OSPF
. Timer Interval ) Hello Interval (Dead Interval
Network Type .
Adjacency Adjacent
Router ID .
) OSPF (:
)Adjacent With Neighbor 131.108.1.2 (Designated Router
Neighboring Adjacency OSPF
Multi-access Ethernet . Broadcast Domain
.
DR BDR DR BDR
Adjacency .
DR BDR Link-State Database
DR BDR . DR BDR
Link-State Database Multi-access
.
318
ICND v2.05-
:( )OSPF
DR update Link-State Database DR BDR DR
.
state Router ID :Show IP OSPF Neighbor
( DOTHER ) BDR DR .
.
ICND v2.05-
:Debug OSPF
Debug . Debug OSPF
OSPF Troubleshooting .
.
:Debug IP OSPF Events
:
. Broadcast Domain Subnet Mask
. Hello Interval
. Dead Interval
OSPF
:
320
ICND v2.05-
:( )Debug OSPF
dead Interval Hello Interval Subnet Mask
.
Area Neighboring
Summary
OSPF is an interior gateway protocol similar to
IGRP, but based on link states rather than
distance vectors.
OSPF advertises information about each of its
links rather than sending routing table updates
like a distance vector protocol.
The SPF algorithm places each router at the root
of a tree and calculates the shortest path to each
destination based on the cumulative cost
required to reach that destination.
ICND v2.05-
:
. IGPs ( Open Short Path First ) OSPF
. AS
. Link-State OSPF
. Link-State Database .
SPF Algorithms Dijkstra Link-State Database
. Routing Table
. Periodic Distance-Vector OSPF
Periodic Update Routing Table
Link- Link-Sate Database
. Routing Table SPF State Database
322
Ch.6
OSPF
Part 1 of 2:
Single
Area OSPF
CCNP 1 version 3.0
Rick Graziani
Cabrillo College
324
Ch.6
OSPF
Switch
Part 1 of 2:Cisco
Single
Area OSPF
CCNP 1 version 3.0
Rick Graziani
Cabrillo College
:
.
. TRUNK
326
Catalyst 2950
Switch LED Indicators
ICND v2.01-6
: 2950
MAC Address .
.
.
) ( Mbps ) ( 1000 Mbps
. IOS
. .
:
.
LED
Mode Button
Catalyst 2950
Switch LED Indicators
ICND v2.01-6
) 2950 ( :
:
2550G-12
.
:LED
:
System LED
328
Catalyst 2950
Switch LED Indicators
ICND v2.01-6
) 2950 ( :
: Port Status LED LED .
Prot LED :
: Off . Link .
. : Link Active .
. Active : Link .
. : LED
Link Collision .
. : Disable .
ICND v2.03-6
: STST LED .
.
.
330
ICND v2.03-6
: SPEED LED
ICND v2.01-7
: POST
Power ON PORT LED .
POST
.
Safe System LED
.
POST LED
.
POST Load IOS CLI .
332
ICND v2.01-10
CLI Mode :
CLI Common Line Interface Text Base
.
CLI IOS mode :
.
user mode
privileged mode
mode .
:User Mode
Mode . Mode
. Mode Monitoring . Mode
.
Mode Mode . Mode
.
ICND v2.01-10
CLI Mode ) ( :
:Privileged Mode
Mode .
Mode Mode
mode Mode .
334
wg_sw_a(config)#
Interface configuration mode
wg_sw_a(config)#interface e0/1
wg_sw_a(config-if)#
ICND v2.01-12
: 2950
.
wg_sw_a(config)#interface e0/1
: Command Prompt
wg_sw_a(config-if)#
ICND v2.03-14
: 2950
IP Address Global Mode :
Switch(config)# interface VLAN1
Mode .
Switch(config-if)# ip address 192.168.1.2 255.255.255.0
IP Address Gate Way LAN .
Gateway .
LAN Gateway
LAN .
Switch(config)#ip default-gateway 192.168.1.1
336
ICND v2.01-19
:
: show interface
Disable Enable
STP State
Bandwidth
Summary
The startup of a Catalyst switch requires that you verify
the physical installation, power up the switch, and view
the Cisco IOS software output on the console.
The Catalyst switches have several status LEDs that are
generally lit in green when the switch is functioning
normally but turn amber when there is a malfunction.
The Catalyst POST is executed only when the switch is
powered up. The POST uses the switch port LEDs to
indicate test progress and status.
During initial startup, if POST test failures are detected,
they are reported to the console. If POST completes
successfully, you can configure the switch.
ICND v2.01-21
:
.
RAM Load IOS ON Power
.
. PORT LED POST
.
System LED
POST
CLI POST .
.
338
Ch.6
OSPF
Single
Part 1 of 2:
Area OSPF
CCNP 1 version 3.0
Rick Graziani
Cabrillo College
340
Address learning
Forward/filter decision
Loop avoidance
ICND v2.03-6
:
Bridge OSI
. ) ( MAC Address
. Device
.
MAC address .
source Destination .
Database
. database MAC Table MAC Address Interface
.
Address learning
Pc1 send a frame to pc4
Mac address:x1
Mac address:x3
Pc1
Pc3
F0/1
F0/3
interface
Mac address
F0/1
F0/2
F0/2
Pc2
F0/4
Pc4
F0/3
F0/4
Mac address:x4
Mac address:x2
ICND v2.03-7
:
.
MAC Table . PC
. .
342
Address learning
Pc1 send a frame to pc4
Mac address:x1
Mac address:x3
Pc3
Mac address
interface
x1
F0/1
F0/3
Pc1
F0/1
F0/2
F0/3
F0/4
Pc4
F0/2
Pc2
F0/4
Mac address:x4
ICND v2.03-8
Mac address:x2
:
PC1 PC2 . .
. PC1
PC1 MAC Table . MAC Address PC1
PC1 MAC Table .
Address learning
Pc1 send a frame to pc4
Mac address:x1
Mac address:x3
Pc3
Mac address
interface
x1
F0/1
F0/1
F0/2
F0/3
3
F0/3
3
F0/4
Pc4
Pc1
F0/2
Pc2
F0/4
Mac address:x4
ICND v2.03-9
Mac address:x2
) ( :
PC1 PC4 MAC Table PC4
.
PC1 . Broadcast Device
X4
344
Address learning
Pc1 send a frame to pc4
Mac address:x1
Mac address:x3
Pc3
Mac address
interface
x1
F0/1
3
F0/4
F0/3
F0/1
F0/2
x4
3
F0/3
F0/2
Pc2
Pc4
F0/4
Pc1
Mac address:x4
ICND v2.03-10
Mac address:x2
) ( :
PC4 X4
PC4 MAC Table .
Table .
MAC table Broadcast
Unicast .
Filtering Frames
:
Frame Filtering .
Station Station
.
MAC Table .
PC A . PC C .
MAC Table . 0260.8c01.2222 E2
. E2 .
MAC Table . Table
.
346
:
Station Hub MAC Table .
Station B Station A .
Station A Station B
E0 Station B . Station A
.
Transmitting Frames
Cut-Through
Switch checks destination
address and immediately
begins forwarding frame.
Fragment-Free
Switch checks the first 64 bytes,
then immediately
begins forwarding frame.
ICND v2.03-11
:
: LAN
Cut-Through
Fragment-Free
348
Cut through
ICND v2.03-12
:Cut-Through
Destination
Destination .
Destination MAC Table .
.
Destination Address .
( Error checking) Error .
.
Fragment-Free
ICND v2.03-13
:Fragment-Free
Cut-Through 64
error .
Collison 64 .
Fragment . Cut-Through
.
350
Store-and-Forward
ICND v2.03-14
:Store-and-Forward
Destination .
Buffer Destination
FCS CRC
.
CRC Discard .
.
Loop in switch
Switch A
Switch B
Switch C
Switch E
Switch D
pc2
ICND v2.03-2
pc1
Loop :
LAN . LAN
. .
. Loop .
.
352
Broadcast storm
A device can receive multiple copies of the same
frame
ICND v2.03-3
Loop :
Loop
.
Broadcast Storm
. STP
.
Broadcast storm
Switch A
Switch B
Switch C
Switch E
Switch D
pc2
ICND v2.03-4
pc1
Loop :
Loop Broadcast storm Broadcast
. PC1 . FF.FF.FF.FF.FF.FF Broadcast
.
FF.FF.FF.FF.FF.FF
.
Broadcast .
.
354
Switch A
Switch B
Switch C
Switch E
Switch D
pc2
pc1
Loop :
Loop
.
PC1 PC2 D . D MAC
Address PC2 MAC table . PC2
. PC2
Loop .
Loop .
STP . Loop
.
Summary
Ethernet switches and bridges increase the available
bandwidth of a network by creating dedicated network
segments and interconnecting the segments.
Switches and bridges use one of three operating modes
to transmit frames: store and forward, cut-through, and
fragment-free.
Switches and bridges maintain a MAC address table to
store address-to-port mappings so it can determine the
locations of connected devices.
When a frame arrives with a known destination address,
it is forwarded only on the specific port connected to
the destination station.
2002, Cisco Systems, Inc. All rights reserved.
ICND v2.03-21
:
MAC address LAN .
.
:
Cut-Through
Fragment-Free
64 . error checking
. CRC error
.
356
STP
Ch.6
OSPF
Loop
Area
Part 1
of 2: Single
OSPF
CCNP 1 version 3.0
Rick Graziani
Cabrillo College
:
.
358
Spanning-Tree Protocol
ICND v2.03-
: STP
Spanning-tree Protocol STP DEC IEEE
802.1D .
802.1D .
STP Loop Loop .
shutdown link .
STP Spanning-tree Algorithm STA
Loop Loop .
Spanning-Tree Protocol
Root Bridge Selection
ICND v2.03-
) STP ( :
STA :
) :Bridge ID(BID STP .
.
:
.
Priority
MAC Address
) Priority default (.
:
BID = Bridge ID = Bridge Priority + MAC Address
:Root Bridge BID BID
BID Root Bridge .
360
Spanning-Tree Protocol
Root Bridge Selection
) STP ( :
priority . priority Root Bridge
.
priority Mac address .
Mac address Root Bridge .
Root Bridge
priority
Mac address. SW Y SW X . SW Y Root Bridge
.
Root Bridge .
.
Spanning-Tree Protocol
Root Bridge Selection
) STP ( :
Bridge Protocol Data Unit :BPDU BPDU
root bridge . BPDU
.
362
Spanning-Tree Operation
One root bridge per network
One root port per nonroot bridge
One designated port per segment
Nondesignated ports are unused
ICND v2.03-
STP ) ( :
STA .
.
STA loop .
STA
. STA Bridge ID
. BPDU .
Bridge ID Bridge ID
. Bridge ID Bridge ID Bridge ID
Bridge ID
BPDU .
Bridge ID Bridge ID
Bridge ID .
Spanning-Tree Operation
One root bridge per network
One root port per nonroot bridge
One designated port per segment
Nondesignated ports are unused
ICND v2.03-
STP ) ( :
Bridge ID Root Bridge .
Root Bridge .
Root Bridge
.
STA scenario .
scenario . scenario link .
loop . STA Loop
.
STA :
:
Bridge ID .
:
364
Spanning-Tree Operation
One root bridge per network
One root port per nonroot bridge
One designated port per segment
Nondesignated ports are unused
ICND v2.03-
STP ) ( :
Bridge ID BPDU
Spanning-Tree Operation
One root bridge per network
One root port per nonroot bridge
One designated port per segment
Nondesignated ports are unused
ICND v2.03-
STP ) ( :
Cost Bandwidth
Cost bandwidth . cost .
Link cost SW Y link
Cost Root Port .
:
Cost Root Port block loop.
366
STP ) (:
STA . Scenario .
scenario . loop
.
STA link .
STA .
:
local Bridge ID
.
Bridge ID .
:
. BPDU
Bridge ID Root Bridge .
STP ) (:
scenario Root Bridge
: ASW11 Root Bridge .
Priority
. ASW11 Mac Address Root
Bridge .
368
STP ) (:
:
Root Bridge Designated Port .
Root Bridge DP .
link Root Bridge DP Root Port
Blocking port .
Root Bridge STA
Root Bridge DP .
STP ) (:
:
link DP Root Port Block
Scenario Root Bridge Root Bridge DP
link RP .
:
Segment1 Segment2 .
segment 3 . DSW11 DSW12 DP
DP Segment3 DP .
STA DP
370
STP ) (:
DP segment 3 :
.
cost
Bridge ID
ICND v2.03-
: STP
STA state .
state STA :
.
disable
blocking
listening
learning
forwarding
:Blocking
blocking
. BPDU .
372
ICND v2.03-
) STP ( :
:Listening
State BPDU Root Bridge .
Mac address Mac table .
:Learning
listening state learning state .
loop .
Mac address Mac
Address table State .
State .
ICND v2.03-
) STP ( :
:Forwarding
root Port Designated Port learning Forwarding
.
:Blocking
learning loop block .
blocking state . BPDU
down cost
state.
:Disable
.
State .
374
ICND v2.03-
) STP ( :
STA state
:
.
forwarding state
Blocking State
STA
forwarding blocking .
Summary
STP is a bridge-to-bridge protocol used to maintain a
loop-free network.
STP establishes a root bridge, a root port, and designated
ports.
With STP, the root bridge has the lowest bridge ID, which
is made up of the bridges priority and MAC address.
With STP, ports transition through four states: blocking,
listening, learning, and forwarding.
If a change occurs to the network topology, STP
maintains connectivity by transitioning some blocked
ports to the forwarding state.
RSTP significantly speeds the recalculation of the
spanning tree when the network topology changes.
2002, Cisco Systems, Inc. All rights reserved.
ICND v2.03-
:
STP . loop Data Link
. loop STA
.
STA
.
.Blocking Forwarding State STA
STA
.
376
Virtual
Link
Ch.6
OSPF
Area
Part 1
of 2: Single
OSPF
CCNP 1 version 3.0
Rick Graziani
Cabrillo College
:
.
Virual Link .
VLAN .
VLAN .
378
VLANs
ICND v2.03-4
: VLAN
. Broadcast Domain
. Device LAN
.
Server LAN .
.
. Broadcast Domain
Broadcast Domain .
LAN LAN VLAN :
.
Broadcast Domain
VLANs
ICND v2.03-4
) VLAN ( :
LAN . .
LAN VLAN VLAN VLAN
.
380
VLANs
VLAN :
. .
Server .
.
. Server Broadcast Domain
Network ID .
.
Server Node
.
Virtual LAN LAN . LAN LAN
.
VLANs
VLAN ) ( :
VLAN OSI . VLAN
Accounting VLAN Marketing VLAN Engineering VLAN
VLAN VLAN .
.
VLAN VLAN
. VLAN
.
382
ICND v2.03-
VLAN
ICND v2.03-
VLAN : OSI
. OSI .
. node Floor . OSI
VLAN . VLAN
. VLAN
.
VLAN Device .
VLAN Network ID .
VLAN
.
384
Static VLANs
ICND v2.03-
Static VLAN
Dynamic VLAN
:Static VLAN
VLAN VLAN 1
. VLAN VLAN
VLAN 1 VLAN .
Static . Static VLAN VLAN
VLAN VLAN 1 .
.
Dynamic VLANs
ICND v2.03-
386
Adding a VLAN
Catalyst 2950
wg_sw_2950#vlan database
wg_sw_2950(vlan)# vlan vlan#
[name vlan-name]
wg_sw_2950#vlan database
wg_sw_ 2950(vlan)#vlan 9 name switchlab2
wg_sw_ 2950(vlan)#exit
ICND v2.03-
: VLAN
VLAN . Switch Catalyst 2950 VLAN
. VLAN Mode
. 4094 1 VLAN
ICND v2.03-
VLAN :
show VLAN VLAN
.
388
Catalyst 2950
wg_sw_2950(config-if)#switchport access vlan vlan-Name
ICND v2.03-
VLAN :
VLAN . Static VLAN
VLAN
VLAN Move .
Mode Access VLAN VLAN
. Access
.
Deleting VLANs
ICND v2.03-
: VLAN
VLAN 1 .
.
VLAN .
VLAN .
VLAN :
390
Summary
ICND v2.03-
:
security LAN Broadcast
Domain
.
VLAN
.
VLAN :
Static VLAN
Dynamic VLAN
Static VLAN
.
node Dynamic
Server .
Ch.6 Trunk
OSPF
Area
OSPF
Part 1 of 2:
Single
CCNP 1 version 3.0
Rick Graziani
Cabrillo College
392
Trunk VLAN .
ISL 802.1 Q .
ISL 802.1Q .
ICND v2.03-
Trunk VLAN :
VLAN . VLAN
:
.
) . ( Local VLAN
VLAN VLAN .
Device ) (
Broadcast Domain ) ( VLAN .
Trunk Trunk .
VLAN
VLAN
394
ICND v2.03-
Trunk VLAN :
. VLAN VLAN 2 VLAN 1 VLAN 3
. VLAN
:
VLAN
VLAN ) ( Trunk .
.
VLAN
!
Frame Tagging
ICND v2.03-
Tag :Trunk
VLAN VLAN
802.1Q
396
ICND v2.03-
ISl :
ISL
) (Trunk . device
.
Ethernet ISL Header ISL FCS
.
ICND v2.03-
802.1Q :
802.1 Q Open Trunk
. .
Tag
.
Ethernet .
398
ICND v2.03-
: Mode
:
Access Mode . Trunk Mode
Access VLAN VLAN
Access VLAN
. VLAN Trunk
VLAN .
ICND v2.03-
: 802.1 Q
VLAN 802.1 Q
( Trunk)
. trunk VLAN
. 802.1 Q
400
ICND v2.03-
: ( )802.1 Q
VLAN Tag Trunk Mode :
VLAN .
: Trunk
15 1 VLAN
. VLAN
ICND v2.03-
:Native VLAN
Trunk Tag . . Switch Catalyst
6500 VLAN VLAN 1 . VLAN
.
VLAN 1 VLAN 1
Trunk Overhead Trunk .
Native VLAN VLAN 1 trunk
.
Native VLAN 802.1Q Trunk :
Switch(config-if)#switchport trunk native vlan 1
402
Summary
A trunk is a Layer 2 point-to-point link between
networking devices capable of Layer 2 operations.
Trunks carry the traffic of multiple VLANs or multiple
networks over a single physical link.
ISL is a Cisco proprietary protocol for interconnecting
Layer 2-capable devices. The 802.1Q protocol is an open
standard protocol used to interconnect multiple Layer 2capable devices.
802.1Q trunks define a native VLAN for frames that are
not tagged by default.
ISL VLAN numbers are in the range 1 to 1001, while
802.1Q VLAN numbers are in the range 0 to 4094.
ICND v2.03-
:
Trunk VLAN
VLAN Trunk .
VLAN
.
VLAN :
ISL
802.1 Q
ISL 802.1
Q
Frame Tagging .
ISL VLAN 1 1001
802.1 Q VLAN 0 4094 .
Ch.6 VTP
OSPF
Area
OSPF
Part 1 of
2: Single
Switching
CCNP
1 version
3.0
Cisco
Swi
Rick Graziani
Cabrillo College
404
. VTP
VTP Mode .
. VTP
ICND v2.03-
: VTP
VLAN Trunk Ethernet .
VLAN VLAN
.
VTP .
VTP . VTP
Client Server Server
. VLAN
.
VTP .
:VTP Domain
VLAN
.
406
ICND v2.03-
) VTP ( :
VTP Domain VTP Domain
VLAN .
. VTP Domain BCMSN .
VLAN VTP Domain
.
:VTP advertisement
VTP Domain VLAN VTP Advertisement
Trunk
ICND v2.03-
: ( )VTP
: Summary Advertisement
: Subset Advertisement
408
ICND v2.03-
:( )VTP
VTP VTP Client
. VTP Server . RAM
VTP Client VLAN Database VTP Server VTP Server
.
VTP Modes
Creates, modifies, and deletes
VLANs
Sends and forwards
advertisements
Synchronizes VLAN
configurations
Saves configuration in NVRAM
Cannot create,
change, or delete
VLANs
Forwards
advertisements
Synchronizes
VLAN
configurations
Does not save in
NVRAM
2002, Cisco Systems, Inc. All rights reserved.
: VTP Mode
: Mode VTP Domain
Server Mode
Client Mode
Transparent Mode
:Server Mode
Domain VLAN Mode
. Mode .
. VTP Server VTP Domain :
410
VTP Modes
Creates, modifies, and deletes
VLANs
Sends and forwards
advertisements
Synchronizes VLAN
configurations
Saves configuration in NVRAM
Cannot create,
change, or delete
VLANs
Forwards
advertisements
Synchronizes
VLAN
configurations
Does not save in
NVRAM
2002, Cisco Systems, Inc. All rights reserved.
Mode : VTP
:Client Mode
Mode VLAN .
Mode
.
:Transparent Mode
Mode . VTP
Trunk
. Mode VLAN
.
Transparent Mode Server Mode VTP Server VLAN
VTP Domain VTP Transparent VLAN
.
VTP Pruning
Increases available bandwidth by reducing unnecessary flooded traffic
Example: Station A sends broadcast, and broadcast is flooded only toward
any switch with ports assigned to the red VLAN.
ICND v2.03-
:VTP Pruning
Broadcast .
VALN Broadcast VLAN
Broadcast VLAN VLAN
Broadcast .
VLAN Red VLAN Switch1 Switch 4
VLAN1 . VLAN 1 VLAN .
Broadcast VLAN 1 Trunk
trunk .
VTP Prunning Broadcast VLAN
VLAN . Switch 1 Switch 4 Red VLAN
VLAN VLAN .
Trunk .
412
ICND v2.03-
: VTP
: VTP
: VTP
VTP Domain
VTP Mode
VTP Password
VTP Pruning
ICND v2.03-
: VTP Server
: VTP Domain
VTP Domain . Domain
. VLAN
Switch(config)#vtp domain domain-name
: VTP Mode
2950 VTP Mode . Server Mode
. Server
Switch(config)#vtp server
: VTP Password
VLAN Client Mode VTP Server VTP Domain
. VTP Server
414
ICND v2.03-
: ( )VTP Server
Authentication Vlan
. VLAN
Switch(config)#vtp password password
: VTP Pruning
. pruning
Switch(config)#vtp pruning
ICND v2.03-
: VTP Client
VTP VTP Domain VTP Client
VTP VLAN VTP Password Mode
. Server
416
ICND v2.03-
: VTP
VTP . VTP
.
Switch#show vtp status
VTP . VTP Client Lab_Network VTP Domain
. Pruning
:
:
:
:
:
:
:
:
:
7
5
0
997
13
3
0
0
0
ICND v2.03-
: ( ) VTP
VTP VLAN Trunk
. Advertisement
418
ICND v2.03-
:
VTP Server VLAN
: VLAN
. Trunk
. Transparent Mode
Summary
ICND v2.03-
:
VLAN VLAN
admin
VTP . .
VTP . VTP
Client Server Server
.
420
Ch.6 NAT
OSPF
Part 1 of 2: Single Area OSPF
CCNP 1 version 3.0
Rick Graziani
Cabrillo College
422
ICND v2.06-
NAT :
Valid Region IANNA
. IP V4 IP V6 Region
. IP V6
IP V4 .
Station Valid .
(Network Address Translation) NAT Invalid Valid .
.
NAT invalid
.
.
NAT :
.
.
Inside Network
Outside Network
424
ICND v2.06-
NAT :
IP Address NAT :
.
.
.
.
Inside Local
Inside Global
Outside Local
Outside Global
: Inside Local
Station .
Region .
.
... .
: Inside Global
Region IANNA
.
NAT .
: Outside Local
Inside Network NAT
Router Inside .
Inside
Inside .
: Outside Global
Outside Network Route
. Destination Address Inside
NAT Router Outside .
: NAT
NAT invalid Valid .
NAT
:
.
.
.
Static NAT
Dynamic NAT
Dynamic NAT With Overload
426
ICND v2.06-
NAT :
: Static NAT
.
NAT Router Invalid Valid
.
Invalid Valid .
NAT Router
Station Outside
Valid Valid invalid
NAT Valid
Outside Network .
. station Invalid
Valid .
: Dynamic NAT
NAT Router .
invalid Outside Valid
NAT Router .
Invalid Valid
NAT Router Valid
Valid drop .
:Dynamic NAT With Overload
Dynamic NAT Invalid
Valid .
Invalid .
PAT Port Address Translation
.
Invalid Valid Nat Router
. .
:NAT Table
NAT . NAT Router
NAT Table NAT Router .
Outside Global .
Outside Local Inside Global Inside Local
Invalid Valid
.
428
: NAT
NAT . NAT Router
Translation
.
Invalid Inside Valid
Outside .
1.1.1.1 9.6.7.3 NAT .
1.1.1.1 Inside Local Address 9.6.7.3 Outside Global Address .
NAT Router NAT Table . Table
NAT .
NAT Router Source Address
Source Address . NAT Router
.
Inside Global Address Region
. NAT
Router NAT .
ICND v2.06-
430
Static NAT :
. NAT Router
Invalid Valid .
:
.
.
.
Static NAT
Inside Interface
Outside Interface
: Static NAT
Static NAT Inside Local Inside Global .
Global Mode .
Router(config)#ip nat inside source static local-ip global-ip
Local-ip Inside Local Address Global-address Inside Global .
: Inside Interface
NAT Router Inside
Inside Interface .
Router(config-if)#ip nat inside
: Outside Interface
NAT Router Outside
Outside Interface .
Router(config-if)#ip nat outside
ICND v2.06-
432
Static NAT :
Static NAT NAT Router . 10.1.1.2
Inside Local Address 192.168.1.1 Inside Global Address
. Static NAT Inside Local Inside Global .
10.1.1.2 NAT Router 192.168.1.2
.
Destination Address
NAT source Address
.
ICND v2.06-
434
Dynamic NAT :
.
invalid Outside Valid
NAT Router .
:
.
.
.
.
.
ICND v2.06-
436
Dynamic NAT :
Router(config)#ip nat inside source
list access-list-number pool name
Access List Pool
.
: Inside Interface
NAT Router Inside
Inside Interface .
Router(config-if)#ip nat inside
: Outside Interface
NAT Router Outside
Outside Interface .
Router(config-if)#ip nat outside
ICND v2.06-
438
Dynamic NAT :
Dynamic NAT NAT Router .
192.168.1.0 /24 Invalid .
Invalid Access List
.
Pool
.
Access List Pool .
Access List Pool
Outside .
ICND v2.06-
440
Configuring Overloading
Router(config)#access-list access-list-number permit
source source-wildcard
ICND v2.06-
442
Overloading an Inside
Global Address Example
ICND v2.06-
444
ICND v2.06-
446
: NAT Table
NAT . NAT NAT
Table Static Dynamic .
Table . Clear ip nat
User Mode :
* Router#clear ip nat translation
NAT Table NAT
.
Router#clear ip nat translation inside global-ip
]local-ip [outside local-ip global-ip
NAT Table .
Inside Global Inside Local .
Router#clear ip nat translation protocol inside global-ip
global-port local-ip local-port [outside local-ip
]local-port global-ip global-port
Dynamic NAT with Overload NAT Table
.
Outside local
---
Outside global
---
ICND v2.06-
448
NAT : Show
Router#show ip nat translations
NAT Table
.
Outside local Inside Global Inside Local Outside Global
.
Router#show ip nat statistics
NAT Table
Inside Outside Pool .
ICND v2.06-
450
:
A NAT Router 192.168.1.0 /24 Inside
Network B Outside Network .
NAT Dynamic NAT A pool Access-list
. Host A. Inside ping
Host B outside .
ICND v2.06-
452
:
A NAT Router .
:
. e0 . Inside Interface
. s0 . Outside Interface
Network 172.16.0.0 . Inside Global pool
. Loop Back
.
. B 172.16.0.0 . A 192.168.1.0
172.16.0.0
B Advertise . RIP
A .
ICND v2.06-
454
: NAT Table
NAT show ip nat translation
:
.
.
.
.
NAT .
Dynamic NAT Dynamic Nat with Overload
Access List .
pool .
Inside Outside .
Summary
Cisco IOS NAT allows an organization with unregistered
private addresses to connect to the Internet by
translating those addresses into globally registered IP
addresses.
You can translate your own IP addresses into globally
unique IP addresses when communicating outside of
your network.
Overloading is a form of dynamic NAT that maps multiple
unregistered IP addresses to a single registered IP
address (many-to-one) by using different ports, known
also as PAT.
Once you have configured NAT, verify that it is operating
as expected using the clear and show commands.
Sometimes NAT is blamed for IP connectivity problems
when there is actually a routing problem.
2002, Cisco Systems, Inc. All rights reserved.
ICND v2.06-
456
:
NAT Network Address Translation
Secure .
NAT Private .
. NAT
:
.
.
.
Static NAT
Dynamic NAT
Dynamic NAT With Overload
Static NAT .
Translation Table . Static
NAT Table Dynamic NAT Dynamic
NAT with Overload Table .
WAN Connection
458
Point-to-Point
Serial
460
:
:
. Circuit-switch Leased-Line . Packet-switch
. .
WAN Overview
ICND v2.07-
462
: WAN
WAN
.
LAN
.
service Provide LAN .
Service Provider .
Customer . Service Provider
VPN Leased Line
.
ICND v2.07-
464
:
Service Provider
:
Leased Line .
Circuit-Switched .
Packet-Switched .
: Leased Line
Service Provider Leased Line .
Secure Service Provider .
45 Mbps .
: Circuit-Switched
Station .
Station .
.
.
.
. ISDN
.
:Packet-Switched
Station
.
.
Station .
Frame-relay X.25 .
ICND v2.07-
466
: Serial
Serial ) ( Serial .
.
Serial :
EIA/TIA-232
EIA/TIA-449
V.35
X.21
EIA-530
ICND v2.07-
468
WAN :
Ethernet Ethernet
. WAN
WAN .
WAN .
.
WAN
.
HDLC PPP .
Summary
A WAN makes data connections across a broad
geographic area so that information can be
exchanged between distant sites.
Some of the WAN connection types available are
leased line, circuit-switched, and packet-switched.
Cisco routers support the EIA/TIA-232, EIA/TIA-449,
V.35, X.21, and EIA/TIA-530 standards for serial
connections.
To encapsulate data for crossing a WAN link, you
can choose from a variety of Layer 2 protocols,
including HDLC, PPP, SLIP, X.25/LAPB, Frame Relay,
and ATM.
2002, Cisco Systems, Inc. All rights reserved.
ICND v2.07-
470
:
WAN WAN
.
WAN :
Leased-Line
Circuit-Switched
Packet-Switched
WAN .
PPP HDLC
Leased-Line Circuit-Switched .
WAN Serial
. DB-60
WAN .
WAN . :
EIA/TIA-232
EIA/TIA-449
V.35
X.21
EIA-530
Serial
. Clock Rate
. Clock Rate DCE
DTE Clock Rate
.
HDLC PPP
472
:
:
. PPP HDLC . Leased-Line
. PPP HDLC show Debug
.
ICND v2.07-
474
HDLC :
High-Level Data Link Control HDLC
Serial .
) ( ISO
Serial .
HDLC :
Cisco HDLC
Standard HDLC
: Standard HDLC
.
:Cisco HDLC
Cisco Network
.
Proprietary Network HDLC
.
Router(config-if)#encapsulation hdlc
ICND v2.07-
476
: HDLC
HDLC Serial .
HDLC Leased-Line
.
.
PPP .
HDLC Serial Mode Serial
:
Router(config-if)#encapsulation hdlc
An Overview of PPP
ICND v2.07-
478
: PPP
PPP Network
.
PPP . NCP LCP
.
:(Network Control Protocol) NCP
Network
. . AppleTalk IP IPX
:(Link Control Protocol) LCP
Point-to-point .
.
ICND v2.07-
480
: PPP
PPP Network
.
PPP Data Link Option LCP .
PPP NCP
.
ICND v2.07-
482
LCP : PPP
LCP
:
: Authentication
.
Leased-Line
.
PPP :
( Password Authentication Protocol) PAP
LCP Authentication .
:Compression
.
PPP .
:Error Detection
Loop
Number Quality .
Magic
:Multilink
PPP Balance
Link .
ICND v2.07-
484
PPP Session :
PPP :
Link Establishment .
Authentication .
Network Layer Protocol .
:Link Establishment
PPP
Link
Authentication
.
:Authentication
Link Authentication LCP
.
PPP PAP : . CHAP
.
:Network Layer Protocol
NCP
Network .
IP Network IP Link
.
ICND v2.07-
486
: PPP
PPP .
PPP :
( Password Authentication Protocol) PAP
PPP
.
Serial .
:PAP
PPP
Authentication PAP . .
Clear Text Link .
.
.
ICND v2.07-
488
: PPP
:CHAP
CHAP .
: LCP Challenge Message PPP
Local Router Remote Router .
Remote Router : Message MD5
MD5 Response Message Local Router
.
Local Router : MD5
Response Message
Remote Router .
ICND v2.07-
490
PPP :
PPP Point-to-Point
. encapsulation PPP Serial PPP
.
PPP Authentication .
Configuring PPP
Router(config-if)#encapsulation ppp
ICND v2.07-
492
: PPP
:
Router(config-if)#encapsulation ppp
Configuring PPP
Authentication
Router(config)#hostname name
ICND v2.07-
494
Authentication : PPP
PPP Serial Authentication
serial .
.
Router(config)#hostname name
Username . Password
: Authenticatin Username
.
Router(config)#username name password password
ICND v2.07-
496
: CHAP
PPP CHAP .
Hostname Username Password
.
Username .
ICND v2.07-
498
PPP : HDLC
show interface Authentication
. State
PPP .
ICND v2.07-
500
PPP : HDLC
debug PPP authentication PPP
.
Summary
HDLC is the Cisco default data-link layer
protocol for encapsulating data on synchronous
serial data links.
PPP encapsulates network layer protocol
information over point-to-point links.
Configurable aspects of PPP include methods of
authentication, compression, and error
detection, as well as whether or not multilink is
supported.
PPP session establishment progresses through
three phases: link establishment, authentication,
and network layer protocol.
2002, Cisco Systems, Inc. All rights reserved.
ICND v2.07-
502
Authentication
NCP Network
.
Frame Relay
504
:
:
. . Frame Relay
. . Frame Relay
ICND v2.08-
506
: Frame Relay
Frame Relay Data Link ) Connection Oriented ( .
Frame Relay .
) ( VC .
.
Frame Relay DTE Frame Relay
DCE .
Serial DTE
Frame Relay .
Frame Relay PVC . SVC
PVC
SVC
. PVC Service Provider
SVC Customer Service Provider .
ICND v2.08-
508
: Frame Relay
: Local Loop Customer Service Provider
.
:VC Frame Relay Frame Relay .
:(Permanent Virtual Circuit) PVC Frame Relay
. Frame Relay .
DCE .
:(Switched Virtual Circuit) SVC
. DTE DCE .
: DLCI 10 Header Frame Relay
) (VC .
A DLCI )(VC
DLCI . 400 C DLCI 100
B .
: ( Local Management Interface ) LMI DTE
(DCE) Frame Relay Frame Relay
.
Use LMI to get locally significant DLCI from the Frame Relay
switch.
Use Inverse ARP to map the local DLCI to the remote routers
network layer address.
2002, Cisco Systems, Inc. All rights reserved.
ICND v2.08-
510
: Frame Relay
Destination Network Data Link .
Frame Relay
Frame Relay Header .
Frame Relay DTE .
) (IP Address
DLCI . VC
. .
DLCI . 500
DLCI .
10.1.1.1
) DLCI(500 500 DLCI .
DLCI : Frame Relay
Point to Point DLCI .
: Inverse ARP IP Address . DLCI 10.1.1.1
DLCI 500 . 10.1.1.1
500 DLCI Frame Relay .
Inverse ARP
Static Frame Relay map MAP Table .
ICND v2.08-
512
: Frame Relay
( Local Management Interface) LMI Frame Relay
LMI Request LMI Response
.
Frame Relay .
Cisco
ANSI
Q.933
: Frame Relay .
Cisco . IOS
11.1 LMI Type
IOS 11.2 Type LMI
LMI Type Frame Relay
.
ICND v2.08-
514
: Frame Relay
) (VC DTE .
: CSU/DSU Frame Relay
Frame Relay .
: LMI Status Inquiry
Frame Relay .
:
Frame Relay DTE LMI Message
Message DLCI DTE
.
Local DLCI
. DLCI 500
Local
.
:
LMI Message DLCI Frame Relay
Inverse ARP .
ICND v2.08-
516
: Frame Relay
:
Inverse ARP Frame Relay MAP
. IP Address DLCI Number
.
172.168.5.7 Frame Relay
DLCI 100 DLCI 100 .
.
:
Frame Relay MAP
.
Inverse ARP DLCI
LMI Message Frame Relay .
: Frame Relay MAP Static Frame Relay
Inverse ARP
.
ICND v2.08-
518
DLCI
.
DLCI .
DLCI
. Frame Relay IP Address
DLCI .
: Frame Relay DLCI .
Subinterface DLCI
Subinterface
.
Frame Realy ) (VC
). (Multiplexing
Summary
Frame Relay is an ITU-T and ANSI standard that
defines the process for sending data over a
public data network.
The core aspects of Frame Relay function at the
lower two layers of the OSI reference model.
A Frame Relay connection requires that, on a
VC, the local DLCI be mapped to a destination
network layer address such as an IP address.
LMI is a signaling standard between the router
and the Frame Relay switch that is responsible
for managing the connection and maintaining
status between the devices.
ICND v2.08-
520
Frame Realy .
) (VC
DLCI Network Frame Relay
.
DLCI
.
Frame Relay
522
:
:
. Frame Relay .
. Frame Relay show . debug
ICND v2.08-
524
: Frame Relay
Frame Relay
) (Point-to-Point
). (point-to-multipoint
Frame Relay .
: Frame Relay
DLCI IP Frame
Relay .
: LMI Type
Configuring Subinterfaces
Point-to-point
Subinterfaces act like leased lines.
Each point-to-point subinterface requires its own subnet.
Point-to-point is applicable to hub and spoke topologies.
Multipoint
Subinterfaces act like NBMA networks, so they do not
resolve the split-horizon issues.
Multipoint can save address space because it uses a
single subnet.
Multipoint is applicable to partial mesh and full mesh
topologies.
ICND v2.08-
526
): (Subinterface
Frame Relay
frame Relay .
Frame Relay . Frame Relay Topology
:
hub and spoke
Full Mesh
Partial Mesh
:Point-to-Point
Mode Subinterface
.
point-to-point Subnet
. Subnet IP
.
:Multipoint
Mode Subinterface
.
Subnet .
ICND v2.08-
528
: Point-to-point
Subinterface Point-to-point
IP Address DLCI
Subinterface . frame Relay
:
: : Frame Relay
Frame Relay .
Frame Relay .
Router(config-if)# Encapsulation Frame-relay
: :
. Subinterface : Point-to-point Mode
) (Subinterface
.
) (Subinterface
Serial 0
. Subinterface Serial 0.1
Serial 0.2 .
Router(config-subif)# Interface subinterface-number point-to-point
.
DLCI IP Address :
Router(config-subif)# Frame-relay interface-dlci dlci-number
. A B C .
Serial 0 .
. Point-to-point
Subnet . A C 10.17.0.0
10.18.0.0 .
Subinterface Subnet
. Subinterface IP Address
. IP
Multimode IP .
ICND v2.08-
530
: Multipoint
subinterface
Subnet .
frame Relay :
: : Frame Relay
Frame Relay .
Frame Relay .
Router(config-if)# Encapsulation Frame-relay
: :
. Subinterface :Multipoint Mode
Router(config-subif)# Interface subinterface-number multipoint
.
map IP Address
DLCI:
Multipoint Mode
DLCI
frame Relay .
10.17.0.2
DLCI 120 .
Frame Relay DLCI 120 frame
Relay .
IP Address DLCI
.
Subinterface Mode
Mode
Mode Broadcast .
ICND v2.08-
532
: Multipoint
RIP Frame Relay
30 Update
Broadcast .
Update Routing table
.
Split Horizon . Split Horizon "
Update Routing Table
Routing Table Routing Table
Update " Frame Relay
Update Multipoint
.
Update subinterface
Multipoint
Subnet Update
Split Horizon .
Point-to-point mode Subinterface
Subnet .
Update Subinterface Subinterface
.
: Multipoint mode Update
:
Split Horizon Loop .
ICND v2.08-
534
:Show interface
Frame Relay
:
Router# show interface s0
Frame Relay Encapsulation
Frame Relay .
DLCI Number LMI Type
.
ICND v2.08-
536
ICND v2.08-
538
Summary
A basic Frame Relay configuration assumes one or more
physical interfaces, and LMI and Inverse ARP are running
on the remote routers. In this type of environment, the
LMI notifies the router about the available DLCIs.
When the remote router does not support Inverse ARP, or
when you want to control routed broadcast traffic, you
must define the address-to-DLCI table statically.
You can configure Frame Relay subinterfaces in either
point-to-point or multipoint mode.
After you configure Frame Relay, you can verify that the
connections are active using the available show
commands.
Use the debug frame-relay lmi command to verify and
troubleshoot a Frame Relay connection.
2002, Cisco Systems, Inc. All rights reserved.
ICND v2.08-
540
:
Frame Relay
) (Point-to-Point
). (point-to-multipoint
Frame Relay .
Frame Relay
LMI Type
DLCI
IP Address
Point-to-point : multipoint
: Frame Relay
: