Beruflich Dokumente
Kultur Dokumente
Administration
1-1
Advanced Network Administration
* 6Days a week
Module I
Bridge Personal
Switch Router
computer
DSU/CSU
Home Mobile
Office Users
Internet
Branch
Office Floor 2
Server Farm
ISDN
Telecommuter Floor 1
Remote Campus
Network Structure Defined by
Hierarchy
Core Layer
Distribution
Layer
Access
Layer
Access Layer Characteristics
Access Layer
Core Layer
• No packet manipulation
OSI Model Overview
OSI Model Overview
Application
Application
(Upper) Presentation
Layers
Session
Physical
Role of Application Layers
EXAMPLES
User Interface
Telnet
Application
HTTP
Network Layer
Data Link
Physical
Role of Data Flow Layers
Application
Presentation
EXAMPLES
Session
• Reliable or unreliable delivery
Transport
TCP
• Error correction before retransmit
UDP
Network Packet
IP Header Data
Physical Bits
0101110101001000010
De-encapsulating Data
Application
Presentation
Session
Upper Layer Data
Transport
Upper Layer Data
ea der
H
Network TCP
TCP+ Upper Layer Data
e a der
IP H
IP + TCP + Upper Layer Data
r
Data Link
He ade
L LC
LLC Hdr + IP + TCP + Upper Layer Data
er
ead
ACH
M
Physical
0101110101001000010
Physical Topologies
Extended
Bus
Star
Ring Hierarchical
Star Mesh
Bus Topology
Single backbone
All hosts directly
connected to backbone
Each end of the bus
must be properly
terminated
Bus Topology implementation
Ring Topology
No backbone
A host is directly
connected to each of its
neighbors
Used for token passing
logical topologies
Star Topology
Network media
• Coax cable
• Fiber
• Twisted pair
– UTP – Unshielded
– STP - Shielded
Regardless of the medium of choice, still
have to deal with distance limitations
10BASE5
Transceiver
10BASE2
10BASET
Physical Layer Functions
Defines
EIA/TIA-232
• Media type
Ethernet
802.3
Physical
V.35
• Connector type
• Signaling type
Physical Layer: Ethernet/802.3
10Base2—Thick Ethernet
10Base5—Thick Ethernet
Host
Hub
10BaseT—Twisted Pair
Hosts
Hubs Operate at Physical layer
Physical
A B C D
NIC NIC
A Dilemma!
NIC NIC
NIC NIC
What’s The Problem?
1
2
Frame Relay
Data Link
802.2
• Higher layer protocol
HDLC
(Service Access Point)
Ethernet
associated with frame
• Network topology
Physical
802.3
EIA/TIA-232
• Frame sequencing
v.35
• Flow control
• Connection-oriented
or connectionless
Data Link Layer Functions (cont.)
Ethernet II
uses “Type”
0000.0C xx.xxxx here and
does not use
IEEE assigned Vendor 802.2.
assigned
MAC Address
Ethernet 802.3 frame format
Switches and Bridges Operate
at Data Link Layer
Data Link
1 2 3 4 OR 1 2
Switch
Memory
• Each segment has its
own collision domain
• Broadcasts are
forwarded to all
segments
What’s a MAC address ?
0 0 2 0 . 1 b c e . 2 d 1 f
• Defines logical
Network
source and IP
destination
addresses
Frame Relay
Data Link
associated with a 802.2
HDLC
specific protocol
Ethernet
• Defines paths
through network
Physical
802.3
• Interconnects v.35
Options (0 or 32 if any)
Transport
TCP UDP
Layer
6 17 Protocol
Numbers
Internet
Layer IP
• Logical
Address
172.15.1.1
Network Node
Mapping Layer 2 to Layer 3
IP Address Classes
Class D: Multicast
Class E: Research
IP Address Range
IP Address Range
IP Address Classes
Bits: 1 8 9 16 17 24 25 32
0NNNNNNN Host Host Host
Class A:
Range (1-126)
Bits: 1 8 9 16 17 24 25 32
10NNNNNN Network Host Host
Class B:
Range (128-191)
1 8 9 16 17 24 25 32
Bits:
110NNNNN Network Network Host
Class C:
Range (192-223)
1 8 9 16 17 24 25 32
Bits:
1110MMMM Multicast Group Multicast Group Multicast Group
Class D:
Range (224-239)
Private IP addresses
10.0.0.0 - 10.255.255.255
172.16.0.0- 172.31.255.255
192.168.0.0 -192.168.255.255
Network Layer Functions (cont.)
1.1 1.0 4.0 4.1
2.1 2.2
1.3 4.3
1.2 4.2
E0 S0 S0 E0
Mobile User
Branch Office
Main Office
Internet
Transport Layer Overview
Data Link
Physical
TCP Segment Format
Bit 0 Bit 15 Bit 16 Bit 31
Options (0 or 32 if any)
Data (varies)
Port Numbers
F T S D T S R
Application T E M N F N I
Layer P L T S T M P
N P P P
E
T
Source Dest.
…
Port Port
Telnet Z
Host A Host Z
Send SYN
1 (seq=100 ctl=SYN)
SYN received
TCP Three Way
Handshake/Open Connection
Host A Host B
Send SYN
1 (seq=100 ctl=SYN)
SYN received
Send SYN
1 (seq=100 ctl=SYN)
SYN received
Window size = 1
TCP Simple Acknowledgment
Sender Receiver
Send 1
Receive 1
Window size = 1
TCP Simple Acknowledgment
Sender Receiver
Send 1
Receive 1
Send ACK 2
Receive ACK 2
Window size = 1
TCP Simple Acknowledgment
Sender Receiver
Send 1
Receive 1
Send ACK 2
Receive ACK 2
Send 2
Receive 2
Window size = 1
TCP Simple Acknowledgment
Sender Receiver
Send 1
Receive 1
Send ACK 2
Receive ACK 2
Send 2
Receive 2
Send ACK 3
Receive ACK 3
Window size = 1
TCP Simple Acknowledgment
Sender Receiver
Send 1
Receive 1
Send ACK 2
Receive ACK 2
Send 2
Receive 2
Send ACK 3
Receive ACK 3
Send 3
Receive 3
Window size = 1
TCP Simple Acknowledgment
Sender Receiver
Send 1
Receive 1
Send ACK 2
Receive ACK 2
Send 2
Receive 2
Send ACK 3
Receive ACK 3
Send 3
Receive 3
Window size = 1
TCP Sequence and
Acknowledgment Numbers
Source Dest. Sequence Acknowledgement …
Port Port # #
I just
sent #10.
I just
sent #10.
I just got #10,
now I need #11.
Source Dest. Seq. Ack.
23 1028 1 11
11
TCP Sequence and
Acknowledgment Numbers
Source Dest. Sequence Acknowledgement
…
Port Port # #
I just
sent #11.
I just got #10,
now I need #11.
Source
Source Dest.
Dest. Seq.
Seq. Ack.
Ack.
23 1028 1 11
11
1028 23 11 2
TCP Sequence and
Acknowledgment Numbers
Source Dest. Sequence Acknowledgement
…
Port Port # #
I just
sent #11.
I just got #11,
now I need #12.
Source
Source Dest.
Dest. Seq.
Seq. Ack.
Ack.
23 1028 1 11
11
23 1028 2 12
12
TCP Windowing
Sender Receiver
TCP Windowing
Window size = 3
Sender Send 1 Receiver
Window size = 3
Send 2
Window size = 3
Send 3
TCP Windowing
Window size = 3
Sender Send 1 Receiver
Window size = 3
Send 2
Window size = 3
Send 3
ACK 3 Packet 3 is
Window size = 2
Dropped
TCP Windowing
Window size = 3
Sender Send 1 Receiver
Window size = 3
Send 2
Window size = 3
Send 3
ACK 3 Packet 3 is
Window size = 2
Dropped
Window size = 2
Send 3
Window size = 2
Send 4
TCP Windowing
Window size = 3
Sender Send 1 Receiver
Window size = 3
Send 2
Window size = 3
Send 3
ACK 3 Packet 3 is
Window size = 2 Dropped
Window size = 2
Send 3
Window size = 2
Send 4
ACK 5
Window size = 2
UDP Segment Format
Bit
1 0 Bit 15 Bit 16 Bit 31
Collision Domains:
1 4 4 4
Broadcast Domains:
1 1 1 4
Cisco Hub Products
Selection Issues: Cisco
FastHub400
• Need for 10 Mbps or 100 Mbps on media
Cisco
• Port density FastHub300
Interfaces
Virtual terminal
Console port
TFTP
Auxiliary port
PC or Unix server
Enter Selection:
Logging into the Switch and
Entering the Enable Password
Console
Switch#show version
Switch#show running-config
Switch#show interfaces
wg_sw_a#show ip
IP Address: 10.5.5.11
Subnet Mask: 255.255.255.0
Default Gateway: 10.5.5.3
Management VLAN: 1
Domain name:
Name server 1: 0.0.0.0
Name server 2: 0.0.0.0
HTTP server : Enabled
HTTP port : 80
RIP : Enabled
wg_sw_a#
Configuring the Switch
Configuration Modes:
• Global Configuration Mode
– wg_sw_a# conf term
– wg_sw_a(config)#
• Interface Configuration Mode
– wg_sw_a(config)# interface e0/1
– wg_sw_a(config-if)#
Configuring Switch
Identification
Switch Name
(config)#hostname wg_sw_c
wg_sw_c(config)#
Check hardware
1. Before you start the router,
verify the power, cabling, and
Load Bootstrap
console connection
2. Push
Find andthe
loadpower
Ciscoswitch
IOS to on
software image
3. Observe the boot sequence
Cisco
Find and IOS software
apply router output
text on the information
configuration console
BootUp Output from the
Router
Console
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 '[ ]'.
wg_ro_c con0 is now available
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 '[]'.
First, would you like to see the current interface summary? [yes]:
Console
Router# cl?
clear clock
Router# clock
• Symbolic translation
% Incomplete command.
• Command prompting
Router# clock ?
set Set the time and date • Last command recall
Router# clock set
% Incomplete command.
Translating "CLOK"
% Unknown command
Router#or computer
clock name,
set or unable to find computer address
19:56:00
% Incomplete command.
Router#
clear Router#
clock clock set 19:56:00 ? • Command
<1-31> Day of the month
Router# MONTH Month of the year
prompting
% Incomplete command.
Router> terminal history size lines Set session command buffer size
show version Command
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
Config Config
IOS
show show
running-config startup-config
Console
Setup utility
Configuration
Mode Prompt
Interface Router(config-if)#
Subinterface Router(config-subif)#
Controller Router(config-controller)#
Line Router(config-line)#
Router Router(config-router)#
IPX router Router(config-ipx-router)#
Saving Configurations
wg_ro_c#
wg_ro_c#copy running-config startup-config
Destination filename [startup-config]?
Building configuration…
wg_ro_c#
Router Name
Router(config)#hostname wg_ro_c
wg_ro_c(config)#
Interface Description
wg_ro_c(config)#interface ethernet 0
wg_ro_c(config-if)#description Engineering LAN, Bldg. 18
Enable Password
Router(config)#enable password cisco
Secret Password
Router(config)#enable secret AGNIVA
Other Console Line
Commands
Router(config)#line console 0
Router(config-line)#exec-timeout 0 0
Router(config)#line console 0
Router(config-line)#logging synchronous
Router(config-if)#exit
Router(config)#interface serial 0
Specify interface Router(config-if)#
Configuring a Serial Interface
Router#configure term
Enter global Router(config)#
configuration mode
Router(config)#interface serial 0
Specify interface Router(config-if)#
Router(config)#interface ethernet 2
Router(config-if)#media-type 10baset
r#configure term
r(config)#interface serial 0
r(config-if)#no shutdown
-3-UPDOWN: Interface Seria0, changed state to up
PROTO-5-UPDOWN: Line Protocol on Interface Serial0, changed state to up
outerA#sh cdp ?
entry Information for specific neighbor entry
interface CDP interface status and configuration
neighbors CDP neighbor entries
traffic CDP statistics
<cr>
outerA(config)#no cdp run
outerA(config)#interface serial0
outerA(config-if)#no cdp enable
Using the show cdp neighbor
Command
SwitchA RouterA RouterB SwitchB
S1
S0
10.1.1.2
10.3.3.2 10.3.3.1 10.1.1.1 10.2.2.1 10.2.2.2
Version :
Cisco Internetwork Operating System Software
IOS (tm) 2500 Software (C2500-JS-L), Version 12.0(3), RELEASE SOFTWARE (fci)
Copyright (c) 1986-1999 by cisco Systems, Inc.
Compiled Mon 08-Feb-99 18:18 by phanguye
Additional CDP Commands
RouterA#telnet 10.2.2.2
Trying 10.2.2.2 ... Open
-------------------------------------------------
Catalyst 1900 Management Console
Copyright (c) Cisco Systems, Inc. 1993-1998
All rights reserved.
Enterprise Edition Software
Ethernet Address: 00-90-86-73-33-40
PCA Number: 73-2239-06
PCA Serial Number: FAA02359H8K
Remote device
Model Number: WS-C1924-EN
System Serial Number: FAA0237X0FQ
.
.
SwitchB>
Viewing Telnet Connections
RouterA#sh session
Conn Host Address Byte Idle Conn Name
1 10.1.1.2 10.1.1.2 0 1 10.1.1.2
* 2 10.3.3.2 10.3.3.2 0 0 10.3.3.2
RouterA#sh user
Line User Host(s) Idle Location
* 0 con 0 10.1.1.2 3
10.3.3.2 2
11 vty 0 idle 1 10.1.1.2
Suspending a Telnet Session
RouterB#<Ctrl-Shift-6>x
RouterA#sh session
Conn Host Address Byte Idle Conn Name
1 10.1.1.2 10.1.1.2 0 1 10.1.1.2
RouterA#resume 1
RouterB#
Closing a Telnet Session
Router#trace 10.1.1.10
Console
Interfaces
Auxiliary
Startup Sequence
RAM
ROM Bootstrap Load Bootstrap
Order of search:
IOS 1. Check configuration register
2. Parse config in NVRAM
3. Default to first file in Flash
4. Attempt net boot
5. RXBOOT
6. ROMMON
Locating the Cisco IOS Software
Configuration Registers
Registers in NVRAM for modifying fundamental Cisco IOS software
Identifies where to boot Cisco IOS image (for example, use config-mode commands)
Valid
No IOS in Yes Use IOS from
Boot Flash
No Flash
field =0 ?
0x0 No
Attempt to get
Yes
Yes IOS from
5 failures
? network
Run
ROM No
Monitor
Yes Config reg Yes Use file from
Success
Use IOS in ROM bit 13=1 No ? Network
(RXBoot mode) ?
NORMAL
No Valid Yes START UP
Load IOS Config reg
config COMPLETE
bit 6=1
?
?
Yes No
SETUP
DIALOG
Determining the Current
Configuration Register Value
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
--More--
IOS
Flash
Console
IOS
show flash
wg_ro_a#sh flash
Config Config
IOS
show show
running-config startup-config
Console
Setup utility
• NVRAM
Sources of Configurations
RAM NVRAM
copy running startup
Config Config
copy startup running (merge)
config term
(merge)
• NVRAM
• Terminal
Sources of Configurations
RAM NVRAM
copy running startup
Config Config
copy startup running (merge)
config term
(merge)
• Terminal TFTP
server
• TFTP server
Sources of Configurations
RAM NVRAM
copy running startup
Config Config
copy startup running (merge)
config term
(merge)
erase
copy tftp run Console start
(merge) copy tftp start
• NVRAM Blank
copy run tftp copy start tftp 000000
• Terminal 000000
• TFTP server TFTP
server
• Erase Start
copy run tftp and copy tftp run
Commands
wg_ro_a#copy running-config tftp
Address or name of remote host []? 10.1.1.1
Destination filename [running-config]? wgroa.cfg
.!!
1684 bytes copied in 13.300 secs (129 bytes/sec)
c2500-js-l_120-3.bin
Network
Router server
wg_ro_a#show flash