177
Cisco Certified Network Associate CCNA WHAT IS CCNA?

CCNA Complete Study

  • Upload
    shea18

  • View
    887

  • Download
    5

Embed Size (px)

DESCRIPTION

The Premier IT certification training provider offers thousands of certification exams such as Microsoft, Cisco, CompTIA, Oracle, IBM, Sun, Vmware, Google and other IT vendors.

Citation preview

Page 1: CCNA Complete Study

Cisco Certified Network Associate CCNA

WHAT IS CCNA?

Page 2: CCNA Complete Study

Cisco Certified Network Associate

PREPARING FOR THE CCNA EXAM-TESTBELLS.COM

Page 3: CCNA Complete Study

Internetworking &OSI Model IPv4 & Subnetting VLSM & SummarizationBasic Configuration on Router

http://www.testbells.com/200-120.html

Page 4: CCNA Complete Study

Cisco Icons and Symbols

Page 5: CCNA Complete Study

What Is a Network?

Page 6: CCNA Complete Study

Interpreting a Network Diagram

Page 7: CCNA Complete Study

Network User Applications– E-mail (Outlook, POP3, Yahoo, and so on)– Web browser (IE, Firefox, and so on)– Instant messaging (Yahoo IM, Microsoft Messenger, and so on) – Collaboration (Whiteboard, Netmeeting, WebEx, and so on)– Databases (file servers)

Page 8: CCNA Complete Study

Impact of User Applications on the Network

– Batch applications • FTP, TFTP, inventory updates• No direct human interaction• Bandwidth important, but not

critical– Interactive applications

• Inventory inquiries, database updates.

• Human-to-machine interaction.

• Because a human is waiting for a response, response time is important but not critical, unless the wait becomes excessive.

– Real-time applications• VoIP, video• Human-to-human interaction• End-to-end latency critical

Page 9: CCNA Complete Study

Characteristics of a Network– Speed– Cost– Security– Availability– Scalability– Reliability– Topology

http://www.testbells.com/200-120.html

Page 10: CCNA Complete Study

Network Structure Defined by Hierarchy Network Structure Defined by Hierarchy

Distribution Layer

Core Layer

AccessLayer

Page 11: CCNA Complete Study

Understanding Host-to-Host Communications

– Older model• Proprietary• Application and combinations software controlled by one

vendor

– Standards-based model• Multivendor software• Layered approach

Page 12: CCNA Complete Study

Why a Layered Network Model?

Reduces complexity Standardizes interfaces Facilitates modular engineering Ensures interoperable

technology Accelerates evolution Simplifies teaching and learning

Page 13: CCNA Complete Study

OSI Model & IPv4OSI Model & IPv4

Data Flow Layers

Transport Layer

Data Link

Network Layer

Physical

Application (Upper) Layers

Session

Presentation

Application

IPv4,IPv6

Encapsulation

tcp,udp

Page 14: CCNA Complete Study

Keeping different applications’ data separate

User Interface

•How data is presented•Special processing such as encryption

Telnet,msn,skype, Bit torrent,FTP,etc

ASCIIEBCDICJPEG

Operating System/Application Access Scheduling

Transport Layer

Data Link

Network Layer

Physical

EXAMPLES

Session

Presentation

Application

Role of Application LayersRole of Application Layers

Page 15: CCNA Complete Study

TCPUDPSPX

802.3 / 802.2HDLC

EIA/TIA-232V.35

IPIPX

Presentation

Application

SessionEXAMPLES

Role of Data Flow LayersRole of Data Flow Layers

• Reliable or unreliable delivery• Error correction before retransmit

• Combines bits into bytes and bytes into frames

• Access to media using MAC address• Error detection not correction

• Move bits between devices• Specifies voltage, wire speed and

pin-out cables

Transport

Data Link

Physical

Network Provide logical addressing which routers use for path determination

Page 16: CCNA Complete Study

Encapsulating DataEncapsulating Data

Transport

Data Link

Physical

Network

Upper Layer Data

Upper Layer DataTCP Header

DataIP Header

DataLLC Header

0101110101001000010

DataMAC Header

Presentation

Application

Session

Segment

Packet

Bits

Frame

PDU

FCS

FCS

(Protocol Data Unit)

Data

Page 17: CCNA Complete Study

Introduction to TCP/IP

Department of Defense (DoD)

Page 18: CCNA Complete Study

Introduction to TCP/IP

Page 19: CCNA Complete Study

Introduction to TCP/IP TCP (Transmission Control Protocol) is a set of rules (protocol)

used along with the Internet Protocol (IP) to send data in the form of message units between computers over the Internet. While IP takes care of handling the actual delivery of the data, TCP takes care of keeping track of the individual units of data (called packets) that a message is divided into for efficient routing through the Internet.

User Datagram Protocol (UDP) is one of the core protocols of the Internet protocol suite. Using UDP, programs on networked computers can send short messages sometimes known as datagrams (using Datagram Sockets) to one another. UDP is sometimes called the Universal Datagram Protocol or Unreliable Datagram Protocol.

Page 20: CCNA Complete Study

Introduction to TCP/IP

Page 21: CCNA Complete Study

Introduction to TCP/IP

Page 22: CCNA Complete Study

IP Address

Private IP

Page 23: CCNA Complete Study

IP Address Version 4

• http://www.testbells.com/200-120.html

Page 24: CCNA Complete Study

IP Address When we first set the IP Address to the IP Address that is to say it is.

1. Network IP What is IP Address. 2. Broadcast IP is the IP Address you. 3. Range host IP address can be used or the number of host Per Subnet. What is 4.Subnet Mask IP Address. 5. Subnet Ex.1 192.168.22.50/30 Ex.2 192 .168.5.33 / 27 which IP address should be assigned to the PC host?

A.192.168.5.5

B.192.168.5.32

C. 192.168.5.40

D. 192.168.5.63

E. 192.168.5.75

Page 25: CCNA Complete Study

IP Address

Ex.3 What is an IP address that actually works.

10.10.10.0/13

a) 244.0.0.1/24

b) 10.159.255.255/12

c) 10.127.255.255/13

d) 10.179.0.255/15

Page 26: CCNA Complete Study

IP Address4.Which of the following addresses can be

assigned to network hosts when given a subnet mask of 255.255.255.224?(select three options.)

A. 201.45.116.159

B. 134.178.18.62

C. 192.168.16.91

D. 92.11.178.93

E. 217.63.12.24

F. 15.234.118.63

Page 27: CCNA Complete Study

IP Subnet-Zero

Page 28: CCNA Complete Study

Classless Inter-Domain Routing

Page 29: CCNA Complete Study

Variable Length Subnet Masks ( VLSM )

• Networks that we use are not necessarily the same size as always.• LAN IP address for the device needs more than 2.• Point-to-point connection. (Point-to-Point) needs only 2 IP is sufficient.• VLSM Subnet division to allow more than one time for each set of IP to IP to

size as required.• VLSM can reduce the number of allocated IP address into the IP is used

effectively.• VLSM also allows the Router to run faster because of the smaller size of the

Routing Table.

Page 30: CCNA Complete Study

Variable Length Subnet Masks ( VLSM )

Page 31: CCNA Complete Study

SummarizationSummarization, also called route aggregation, allows routing protocols to advertise many networks as one addres

Page 32: CCNA Complete Study

Summarization

Page 33: CCNA Complete Study

• There are two main EXEC modes for entering commands.

Cisco IOS Software EXEC Mode

Page 34: CCNA Complete Study

Cisco IOS Software EXEC Mode (Cont.)

Page 35: CCNA Complete Study

Overview of Router Modes

Page 36: CCNA Complete Study

Saving Configurations

wg_ro_c#wg_ro_c#copy running-config startup-configDestination filename [startup-config]?Building configuration…

wg_ro_c#

wg_ro_c#wg_ro_c#copy running-config startup-configDestination filename [startup-config]?Building configuration…

wg_ro_c#

• Copies the current configuration to NVRAM

Page 37: CCNA Complete Study

– Sets the local identity or message for the accessed router or interface

Configuring Router Identification

Page 38: CCNA Complete Study

Configuring a Router Password

Page 39: CCNA Complete Study

Other Console-Line Commands

Router(config)#line console 0Router(config-line)#exec-timeout 0 0

Router(config)#line console 0Router(config-line)#logging synchronous

• Prevents console session timeout

• Redisplays interrupted console input

http://www.testbells.com/200-120.html

Page 40: CCNA Complete Study

Router(config)#interface type numberRouter(config-if)#

• type includes serial, ethernet, token ring, fddi, hssi, loopback, dialer, null, async, atm, bri, tunnel, and so on

• number is used to identify individual interfaces

Router(config-if)#exit

• Quits from current interface configuration mode

Router(config)#interface type slot/portRouter(config-if)#

• For modular routers, selects an interface

Configuring an Interface

Page 41: CCNA Complete Study

•Enter Global Configuration Mode

Router(config-if)#clock rate 64000Router(config-if)#

Router(config)#interface serial 0 Router(config-if)#

Router#configure terminalRouter(config)#

Router(config-if)#bandwidth 64Router(config-if)#exitRouter(config)#exitRouter#

Specify Interface

Set Clock Rate (on DCE interfaces only)

Set Bandwidth (recommended)

Configuring a Serial Interface

Page 42: CCNA Complete Study

Router(config)#interface ethernet 2 Router(config-if)#media-type 10baset Router(config)#interface ethernet 2 Router(config-if)#media-type 10baset

• Selects the media-type connector for the Ethernet interface

Ethernet media-type Command

Page 43: CCNA Complete Study

Router#configure terminalRouter(config)#interface serial 0 Router(config-if)#no shutdown%LINK-3-UPDOWN: Interface Seria0, changed state to up%LINEPROTO-5-UPDOWN: Line Protocol on Interface Serial0, changed state to up

•Enables an interface that is administratively shut down

Router#configure terminalRouter(config)#interface serial 0 Router(config-if)#shutdown%LINK-5-CHANGED: Interface Serial0, changed state to administratively down %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down

• Administratively turns off an interface

Disabling or Enabling an Interface

Page 44: CCNA Complete Study

Configuring the Router IP Address

wg_ro_c#configure terminalwg_ro_c(config)#interface ethernet 0wg_ro_c(config-if)#ip address 192.168.1.1 255.255.255.0wg_ro_c(config-if)#no shutdownwg_ro_c(config-if)#exit

wg_ro_c#configure terminalwg_ro_c(config)#interface ethernet 0wg_ro_c(config-if)#ip address 192.168.1.1 255.255.255.0wg_ro_c(config-if)#no shutdownwg_ro_c(config-if)#exit

Page 45: CCNA Complete Study

Router show interfaces CommandRouter#show interfacesEthernet0 is up, line protocol is up Hardware is Lance, address is 00e0.1e5d.ae2f (bia 00e0.1e5d.ae2f) Internet address is 10.1.1.11/24 MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, rely 255/255, load 1/255 Encapsulation ARPA, loopback not set, keepalive set (10 sec) ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:00:07, output 00:00:08, output hang never Last clearing of "show interface" counters never Queueing strategy: fifo Output queue 0/40, 0 drops; input queue 0/75, 0 drops 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 81833 packets input, 27556491 bytes, 0 no buffer Received 42308 broadcasts, 0 runts, 0 giants, 0 throttles 1 input errors, 0 CRC, 0 frame, 0 overrun, 1 ignored, 0 abort 0 input packets with dribble condition detected 55794 packets output, 3929696 bytes, 0 underruns 0 output errors, 0 collisions, 1 interface resets 0 babbles, 0 late collision, 4 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out

Page 46: CCNA Complete Study

Interpreting the Interface Status

Page 47: CCNA Complete Study

Verifying a Serial Interface Configuration

Router#show interface serial 0Serial0 is up, line protocol is up Hardware is HD64570 Internet address is 10.140.4.2/24 MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec, rely 255/255, load 1/255 Encapsulation HDLC, loopback not set, keepalive set (10 sec) Last input 00:00:09, output 00:00:04, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0 (size/max/drops); Total output drops: 0 Queueing strategy: weighted fair Output queue: 0/1000/64/0 (size/max total/threshold/drops) Conversations 0/1/256 (active/max active/max total) Reserved Conversations 0/0 (allocated/max allocated) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec(output omitted)

BW 64 Kbit,

Page 48: CCNA Complete Study

Serial Interface show controller Command

Router#show controller serial 0HD unit 0, idb = 0x121C04, driver structure at 0x127078buffer size 1524 HD unit 0, V.35 DTE cable

.

.

.

Router#show controller serial 0HD unit 0, idb = 0x121C04, driver structure at 0x127078buffer size 1524 HD unit 0, V.35 DTE cable

.

.

.

• Shows the cable type of serial cables

V.35 DTE Cable

Page 49: CCNA Complete Study

Config DHCP

http://www.testbells.com/200-120.html

Page 50: CCNA Complete Study

Setting Secure Shell (SSH)

Page 51: CCNA Complete Study

Setting Secure Shell (SSH)

Page 52: CCNA Complete Study

Doing the do Command

Page 53: CCNA Complete Study

Using the Pipe

Page 54: CCNA Complete Study

Cisco’s Security Device Manager

Page 55: CCNA Complete Study

Cisco’s Security Device Manager

Page 56: CCNA Complete Study

Basic Configuration on Router

Basic config

1.Hostname

2.Line console

3.Enable password

4.Enable secret

5.Line vty

6.Banner motd

7.Interface

Page 57: CCNA Complete Study

Configuration Register Values รหั�สของ bootstrap ทั่�วไป 0x2102

It was written as a binary number.0010 0001

0 0 = 96000 1 = 48001 0 = 24001 1 = 1200

There are two values0 = load config จาก NVRAM4 = skip การ load config

There are three values0 = Rommon [>]1 = Rx-boot [router(boot)]2 = IOS [router>]

Page 58: CCNA Complete Study

Password Recovery

Page 59: CCNA Complete Study

Lab Password Recovery

Page 60: CCNA Complete Study

Lab Backup&Restore Config

Page 61: CCNA Complete Study

– Address learning– Forward/filter decision– Loop avoidance

Ethernet Switches and Bridges

Page 62: CCNA Complete Study

Forward/Filter Decisions

Page 63: CCNA Complete Study

Port SecuritySwitch(config)#interface fastEthernet 0/1

Switch(config-if)#switchport port-security ?

mac-address Secure mac address

maximum Max secure addresses

violation Security violation mode

<cr>

Switch(config-if)#switchport port-security maximum 1

Switch(config-if)#switchport port-security violation shutdown

Page 64: CCNA Complete Study

– Redundant topology eliminates single points of failure.– Redundant topology causes broadcast storms, multiple frame copies,

and MAC address table instability problems.

Loop Avoidance

Page 65: CCNA Complete Study

• Host X sends a broadcast. • Switches continue to propagate broadcast traffic over and

over.

Broadcast Storms

Page 66: CCNA Complete Study

• Host X sends a unicast frame to router Y.• MAC address of router Y has not been learned by either

switch yet.• Router Y will receive two copies of the same frame.

Multiple Frame Copies

Page 67: CCNA Complete Study

• Host X sends a unicast frame to router Y.• MAC address of router Y has not been learned by either switch.• Switches A and B learn the MAC address of host X on port 0.• The frame to router Y is flooded.• Switches A and B incorrectly learn the MAC address of host X on port 1.

MAC Database Instability

Page 68: CCNA Complete Study

• Provides a loop-free redundant network topology by placing certain ports in the blocking state.

Spanning-Tree Protocol

Page 69: CCNA Complete Study

• One root bridge per network• One root port per nonroot bridge• One designated port per segment• Nondesignated ports are unused

Spanning-Tree Operation

Page 70: CCNA Complete Study

• Bpdu = Bridge Protocol Data Unit (default = sent every two seconds)

• Root bridge = Bridge with the lowest bridge ID• Bridge ID =

• In the example, which switch has the lowest bridge ID?

Spanning-Tree Protocol Root Bridge Selection

Page 71: CCNA Complete Study

• Spanning-tree transits each port through several different states:

Spanning-Tree Port States

Page 72: CCNA Complete Study

Spanning-Tree Path Cost

Page 73: CCNA Complete Study

Spanning-TreeSwitch#show spanning-tree vlan 1

VLAN0001

Spanning tree enabled protocol ieee

Root ID Priority 32769

Address 0001.96DC.1A62

Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 32769 (priority 32770 sys-id-ext 1)

Address 0010.1116.A3A4

Aging Time 300

Interface Role Sts Cost Prio.Nbr Type

---------------- ---- --- --------- -------- --------------------------------

Fa0/1 Desg FWD 19 128.3 Shr

Fa0/2 Root FWD 19 128.3 Shr

Switch(config)#spanning-tree vlan 1 priority 4096

Page 74: CCNA Complete Study

Lab Spanning-TreeSwitch#show spanning-treeSwitch#show version

Page 75: CCNA Complete Study

• IP address: 0.0.0.0• CDP: enabled• 100baseT port: autonegotiate duplex mode• Spanning tree: enabled• Console password: none

Catalyst Default Configuration

Page 76: CCNA Complete Study

Configuration Switch ลบ config

# erase start-up

# reload

ตรวจสอบ config

#show running-config

#show spanning-tree

#show vlan

#show interfaces status

#show mac-address-table

#show ip int brief

Page 77: CCNA Complete Study

Vlan 1 default

การ config

Switch#config t

Switch(config)#vlan 2

Switch(config-vlan)#name Sales

Switch (config-vlan)#vlan 3

Switch (config-vlan)#name Marketing

Switch(config)#interface FastEthernet 0/1-24

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 2

Configuration Switch 2960

Page 78: CCNA Complete Study

Config trunk

Switch#config terminal

Switch(config)#interface fastethernet 0/3

Switch(config-if)#switchport mode trunk

Switch(config-if)#switchport trunk encapsulation dot1q ,isl

The Switch 2960 is set on the trunk encapsulation dot1q already do not need to be set #switchport trunk encapsulation dot1q.

Configuration Switch 2950,2960

Cisco only

Page 79: CCNA Complete Study

Lab Config VLAN

Page 80: CCNA Complete Study

80

• Forwards advertisements

• Synchronizes• Not saved in

NVRAM

• Creates VLANs• Modifies VLANs• Deletes VLANs• Sends/forwards

advertisements• Synchronizes• Saved in NVRAM

• Creates VLANs• Modifies VLANs• Deletes VLANs• Forwards

advertisements• Does not

synchronize• Saved in NVRAM

VLAN Trunking Protocol

Page 81: CCNA Complete Study

• VTP advertisements are sent as multicast frames. • VTP servers and clients are synchronized to the latest revision number.• VTP advertisements are sent every 5 minutes or when there is a change.

VTP Operation

Page 82: CCNA Complete Study

Configuration Switch 2950,2960VLAN Trunking Protocol (VTP) Switch#vlan databaseSwitch(vlan)#vtp server, client , transparentSwitch(vlan)#vtp domain jodoiSwitch(vlan)#vtp password password

หัร�อSwitch#config terSwitch(vlan)#vtp mode server, client , transparentSwitch(vlan)#vtp domain jodoiSwitch(vlan)#vtp password password

Switch#show vtp status

Page 83: CCNA Complete Study

Lab Config VTP

Page 84: CCNA Complete Study

Configuring Inter-VLAN Routing

Page 85: CCNA Complete Study

Configuring Inter-VLAN Routing

Page 86: CCNA Complete Study

Lab Config Inter-VLAN Routing

Page 87: CCNA Complete Study

Wide Area Networks

Wan Connection - lease line HDLC ,PPP Sync

- Circuit Switch (isdn) HDLC ,PPP Async

- Packet Switch Frame Relay Sync

- Cell Switch ATM Async

DTE Data terminal equipment Brant

DCE Data Circuit equipment females

#Show controller Serial 0/0 To determine whether a DTE or DCE.

2 is a side cisco

Page 88: CCNA Complete Study

router DTE DCE CSU DSU

HQ#show interfaces s0/0Serial0/0 is up, line protocol is up (connected)

HQ#ping 10.10.10.6!!!!!

Configuration Router WAN hdlc

HQ(config)#interface s0/0HQ(config-if)#ip address 10.10.10.5 255.255.255.252HQ(config-if)#encapsulation hdlcHQ(config-if)#clock rate 125000HQ(config-if)#bandwidth 512HQ(config-if)#description link-to-B1HQ(config-if)#no shutdown

B1(config)#interface s0/0B1(config-if)#ip address 10.10.10.6 255.255.255.252B1(config-if)#encapsulation hdlcB1(config-if)#bandwidth 512B1(config-if)#description link-to-HQB1(config-if)#no shutdown

Page 89: CCNA Complete Study

Lab Config WAN hdlc

Page 90: CCNA Complete Study

• Passwords sent in clear text

• Peer in control of attempts

PPP Authentication Protocols

Page 91: CCNA Complete Study

• Hash values, not actual passwords, are sent across link.

• The local router or external server is in control of attempts.

Challenge Handshake Authentication Protocol

Page 92: CCNA Complete Study

HQ B1S0/0

S0/0

Configuration WAN PPP PAP

HQ(config)#username aaa password 1234HQ(config)#username bbb password 5678

HQ(config)#interface s0/0HQ(config-if)#ip address 10.10.10.5 255.255.255.252HQ(config-if)#encapsulation pppHQ(config-if)#ppp pap sent-username ccc password 1234HQ(config-if)#clock rate 125000HQ(config-if)#bandwidth 512HQ(config-if)#description link-to-B1HQ(config-if)#no shutdown

#debug ppp authen#no debug allUsername and password are small but effective results.

pap

B1(config)#username ccc password 1234B1(config)#username ddd password 5678

B1(config)#interface s0/0B1(config-if)#ip address 10.10.10.6 255.255.255.252B1(config-if)#encapsulation pppB1(config-if)#ppp pap sent-username aaa password 1234B1(config-if)#bandwidth 512B1(config-if)#description link-to-HQB1(config-if)#no shutdown

Page 93: CCNA Complete Study

Lab Config WAN PPP PAP

Page 94: CCNA Complete Study

bkk B1S0/0

S0/0

chapConfiguration WAN PPP CHAP

Chap password must match

bbk(config)#username B1 password cisco

bbk(config)#interface s0/0bbk(config-if)#ip address 10.10.10.10 255.255.255.252bbk(config-if)#encapsulation pppbbk(config-if)#ppp authentication chap bbk(config-if)#no shutdown

B1(config)#username bbk password cisco

B1(config)#interface s0/0B1(config-if)#ip address 10.10.10.9 255.255.255.252B1(config-if)#encapsulation pppB1(config-if)#ppp authentication chap B1(config-if)#clock rate 125000B1(config-if)#no shutdown

Chap username ใส�เป�นชื่�อ hostname และ password ทั่��ง 2 ฝั่� งต องตรงก�น

Page 95: CCNA Complete Study

Lab Config WAN PPP CHAP

Page 96: CCNA Complete Study

Frame Relay Overview

– Connections made by virtual circuits– Connection-oriented service

Page 97: CCNA Complete Study

Frame Relay StackOSI Reference Model Frame Relay

Physical

Presentation

Session

Transport

Network

Data-Link

Application

EIA/TIA-232, EIA/TIA-449, V.35, X.21,

EIA/TIA-530

Frame Relay

IP/IPX/AppleTalk, etc.

Page 98: CCNA Complete Study

Frame Relay Terminology

Page 99: CCNA Complete Study

• Frame Relay default: nonbroadcast, multiaccess (NBMA)

Selecting a Frame Relay Topology

Page 100: CCNA Complete Study

Frame Relay

Point-to-point (no sub interface)

HQ(config)#interface s0/0

HQ(config-if)#ip address 10.10.10.1 255.255.255.252

HQ(config-if)#encapsulation frame-relay ietf (cisco , ietf )

HQ(config-if)#frame-relay interface-dlci 100

HQ(config-if)#frame-relay lmi-type ansi (cisco , ansi , q933a)

HQ(config-if)#no shutdown

Configuration Router

Page 101: CCNA Complete Study

Lab Config Point-to-point (no sub interface)

Page 102: CCNA Complete Study

Frame Relay

Point-to-point ( sub interface)

HQ(config)#interface s0/0

HQ(config-if)#no ip address

HQ(config-if)#encapsulation frame-relay ietf

HQ(config-if)#frame-relay lmi-type ansi

HQ(config-if)#no shutdown

HQ(config)#interface s0/0.1 point-to-point

HQ(config-subif)#ip address 10.10.10.1 255.255.255.252

HQ(config-subif)#frame-relay interface-dlci 100

Configuration Router

Page 103: CCNA Complete Study

Lab Config Point-to-point (sub interface)

Page 104: CCNA Complete Study

Frame Relay

Point-to-multipoint ( sub interface)

HQ(config)#interface s0/0

HQ(config-if)#no ip address

HQ(config-if)#encapsulation frame-relay ietf

HQ(config-if)#frame-relay lmi-type ansi

HQ(config-if)#no shutdown

HQ(config)#interface s0/0.1 multipoint

HQ(config-subif)#ip address 10.10.10.1 255.255.255.0

HQ(config-subif)#frame-relay map ip 10.10.10.2 100 broadcast

HQ(config-subif)#frame-relay map ip 10.10.10.3 200 broadcast

HQ(config-subif)#frame-relay map ip 10.10.10.10 300 broadcast

Configuration Router

Page 105: CCNA Complete Study

Lab Config Point-to-multipoint (sub interface)

Page 106: CCNA Complete Study

IP Routing Routing-Static-Dynamic

Config static route(Config)# ip route ________ ________ ________( Network ip ) ( subnet mask) ( gateway ip )

ExR2 (config)# ip route 192.168.1.0 255.255.255.0 10.10.10.1R1 (config)# ip route 192.168.2.0 255.255.255.0 10.10.10.2

Default route(Config)# ip route 0.0.0.0 0.0.0.0 ________( gateway ip )

Page 107: CCNA Complete Study

IP Routing Ex

b1(config)#ip route 111.111.111.0 255.255.255.0 222.222.222.222b1(config)#ip route 22.22.22.0 255.255.255.0 222.222.222.222b1(config)#ip route 33.33.33.8 255.255.255.252 222.222.222.222b1(config)#ip route 44.44.44.8 255.255.255.248 222.222.222.222

or

b1(config)#ip route 0.0.0.0 0.0.0.0 222.222.222.222

Page 108: CCNA Complete Study

Lab Config Routing

Page 109: CCNA Complete Study

Digital Subscriber Line

Page 110: CCNA Complete Study

Digital Subscriber Line

Page 111: CCNA Complete Study

Digital Subscriber Line

Page 112: CCNA Complete Study

Digital Subscriber Line

Page 113: CCNA Complete Study

Digital Subscriber Line

Page 114: CCNA Complete Study

VPI and VCI values in the configuration of ADSL.

Page 115: CCNA Complete Study

PPPoE Configuration!

interface FastEthernet4

pppoe enable group global

pppoe-client dial-pool-number 1

!

interface Dialer 0

ip address negotiated

ip mtu1452

encapsulation ppp

dialer pool 1

dialer-group 1

ppp authentication chap callin

ppp chap hostname Todd

ppp chap password 0 lammle

!

Page 116: CCNA Complete Study

Virtual Private NetworksTypes of VPNs

There are three different categories of VPNs:

• Remote access VPNs Remote access VPNs allow remote users like telecommuters to securely access the corporate network wherever and whenever they need to.

• Site-to-site VPNs Site-to-site VPNs, or intranet VPNs, allow a company to connect its remote sites to the corporate backbone securely over a public medium like the Internet instead of requiring more expensive WAN connections like Frame Relay.

• Extranet VPNs Extranet VPNs allow an organization’s suppliers, partners, and customers to be connected to the corporate network in a limited way for business-to-business (B2B) communications.

Page 117: CCNA Complete Study

Virtual Private Networksfour of the most common tunneling protocols

Layer 2 Forwarding (L2F) Layer 2 Forwarding (L2F) is a Cisco-proprietary tunneling protocol, and it was their first tunneling protocol created for virtual private dial-up networks (VPDNs). VPDN allows a device to use a dial-up connection to create a secure connection to a corporate network. L2F was later replaced by L2TP, which is backward compatible with L2F.

Point-to-Point Tunneling Protocol (PPTP) Point-to-Point Tunneling Protocol (PPTP) was created by Microsoft to allow the secure transfer of data from remote networks to the corporate network.

Layer 2 Tunneling Protocol (L2TP) Layer 2 Tunneling Protocol (L2TP) was created by Cisco and Microsoft to replace L2F and PPTP. L2TP merged the capabilities of both L2F and PPTP into one tunneling protocol.

Generic Routing Encapsulation (GRE) Generic Routing Encapsulation (GRE) is another Cisco-proprietary tunneling protocol. It forms virtual point-to-point links, allowing for a variety of protocols to be encapsulated in IP tunnels.

Page 118: CCNA Complete Study

Virtual Private Networks

Page 119: CCNA Complete Study

Virtual Private Networks

Page 120: CCNA Complete Study

Virtual Private Networks

Page 121: CCNA Complete Study

IP RoutingDynamic routing-Interier Gateway Protocol (IGP) Autonomous System (AS) เดี"ยวก�น-Exterier Gateway Protocol (EGP) Autonomous System (AS) ต�างก�น

ใน CCNA จะเร"ยนเฉพาะ IGP

Interier Gateway Protocol (IGP)

-Distance vector rip , igrp update table ชื่�วงเวลาหัน&ง-Link-state ospf ,IS-IS เก'บข อมู)ลเป�น database-Balancing Hybrid EIGRPเก'บข อมู)ลแบบ link-state แต�ทั่*า routing แบบ distance vector

Page 122: CCNA Complete Study

Selecting the Best Route with Metrics

Page 123: CCNA Complete Study

Configuration RouterRouting Information Protocol (RIP)(config)#router rip(config)#version 2(config)#network ____________Ex 172.16.1.30/24 Mojor network will 172.16.0.010.10.10.3/26 Mojor network will 10.0.0.0192.168.1.5/28 Mojor network will 192.168.1.0

(config)#router rip(config)#version 2(config-router)#network 172.16.0.0(config-router)#network 10.0.0.0(config-router)#network 192.168.1.0

(major network)

Page 124: CCNA Complete Study

Routing Information Protocol (RIP) # a.

Rip hop in the route calculation. Way less that way(config) #router rip(config-router) #version 2: version 1 does not support

triggered.

#debug ip rip#show ip protocol to determine routing.#show ip route would be up to the R.

Configuration Router

Page 125: CCNA Complete Study

Routing ripRouter#show ip route

10.0.0.0/30 is subnetted, 1 subnets

C 10.10.10.0 is directly connected, Serial0/0

R 20.0.0.0/8 [120/1] via 10.10.10.2, 00:00:10, Serial0/0

C 192.168.1.0/24 is directly connected, FastEthernet0/0

R 192.168.2.0/24 [120/1] via 10.10.10.2, 00:00:10,Serial0/0

R 192.168.3.0/24 [120/2] via 10.10.10.2, 00:00:10, Serial0/0

Page 126: CCNA Complete Study

EIGRP (Enhanced IGRP) classFul

(config)#router eigrp ______________

(config)#router eigrp 102

(config-router#network ______________

(config-router#network 192.168.1.0

(config-router)#no auto-sum

Configuration Router

(major network)

( AS Number )

Page 127: CCNA Complete Study

EIGRPEIGRP (Enhanced IGRP) classless

(config)#router eigrp ______________

(config)#router eigrp 102

(config-router)#network ______________

(config-router)#network 192.168.1.0 0.0.0.255

(config-router)#no auto-sum

( AS Number )

( Network ip) (wildcard)

Page 128: CCNA Complete Study

Routing eigrpRouter#show ip route

D 10.0.0.0/8 [90/11023872] via 20.20.20.1, 00:00:08, Serial0/0

20.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

D 20.0.0.0/8 is a summary, 00:00:08, Null0

C 20.20.20.0/30 is directly connected, Serial0/0

D 192.168.1.0/24 [90/11026432] via 20.20.20.1, 00:00:08, Serial0/0

D 192.168.2.0/24 [90/2172416] via 20.20.20.1, 00:00:08, Serial0/0

C 192.168.3.0/24 is directly connected, FastEthernet0/0

Page 129: CCNA Complete Study

EIGRP

Router#show ip eigrp ?

interfaces IP-EIGRP interfaces

neighbors IP-EIGRP neighbors

topology IP-EIGRP Topology Table

traffic IP-EIGRP Traffic Statistics

Page 130: CCNA Complete Study

Lab Config Routing

Page 131: CCNA Complete Study

OSPF (Open Shorted Path First )

config#router ospf ___________

config#router ospf 101

config-router#network _________ _________ area _______

config-router#network 192.168.1.0 0.0.0.255 area 0

#show ip ospf neighbor Used to see who is the sender. LSA

link-state Keep data database Are transferred LSA (link-state advertisements)

The data were generated routing the algolithm

SPF ( Shorted Path First ) And consideration of the Cost (cost = )

Configuration Router

( process-id )

(network id) ( wildcard ) ( area-id )

10BW

8

Page 132: CCNA Complete Study

OSPF (Open Shorted Path First ) # ต�อEx 192.168.3.126/27config#router ospf 101

config-router#network 192.168.3.96 0.0.0.31 area 0

EIGRP (Enhanced IGRP) classFul

(config)#router eigrp ______________

(config)#router eigrp 102

(config-router#network ______________

(config-router#network 192.168.1.0

Configuration Router

(major network)

( AS Number )

Page 133: CCNA Complete Study

OSPF Network Types

Page 134: CCNA Complete Study

Routing ospfRouter#show ip route

10.0.0.0/30 is subnetted, 1 subnets

C 10.10.10.4 is directly connected, Serial0/0

20.0.0.0/30 is subnetted, 1 subnets

O 20.20.20.8 [110/128] via 10.10.10.6, 00:00:29, Serial0/0

30.0.0.0/30 is subnetted, 1 subnets

O 30.30.30.12 [110/128] via 10.10.10.6, 00:00:29, Serial0/0

C 192.168.1.0/24 is directly connected, FastEthernet0/0

192.168.2.0/29 is subnetted, 1 subnets

O 192.168.2.8 [110/65] via 10.10.10.6, 00:00:29, Serial0/0

192.168.3.0/28 is subnetted, 1 subnets

O 192.168.3.16 [110/129] via 10.10.10.6, 00:00:29, Serial0/0

192.168.4.0/28 is subnetted, 1 subnets

O 192.168.4.240 [110/129] via 10.10.10.6, 00:00:29, Serial0/0

Page 135: CCNA Complete Study

Routing Protocol Comparison Chart

Page 136: CCNA Complete Study

Lab Config Routing

Page 137: CCNA Complete Study

Default Administrative Distance

Page 138: CCNA Complete Study

RIPv1 vs. RIPv2

Page 139: CCNA Complete Study

IGRP vs RIP

Page 140: CCNA Complete Study

Access Control lists

- Standard 1-99 ,1300-1999

- Extended 100-199 , 2000-2699

Standard access list (1-99)

Config#access-list _______ ______ ______ ______

Ex

Config#access-list 1 deny 192.168.12.100 0.0.0.0

Config#access-list 1 permit any

Config#interface S0

Config#ip access-group 1 in

Access Control Lists

(access number)(permit,deny) (SA) (wildcard)

Page 141: CCNA Complete Study

Standard access list (1-99)

#show ip interface S0 To determine whether the access-list is set or not.

Ex Block telnetConfig#access-list 2 deny 192.168.1.2 0.0.0.0

Config#access-list 2 permit any

Config#line vty 0 4

(config-line)#access-class 2 in

Access Control Lists

Page 142: CCNA Complete Study

Extended access list (100-199)

config#access-list __________ _________ ___________ ____ ______

_____ ________ __________ _________

Ex

Config#access-list 101 deny tcp 192.168.1.0 0.0.0.255 10.10.10.2 0.0.0.0 eq 23

Config#access-list 101 permit ip any any

config#interface S0

config-if#ip access-group 101 in

(access number)(permit,deny)(protocol tcp,udp,icmp) SA wildcard

DA wildcard Eq,Neq,lt,gt Port number

Access Control Lists

Page 143: CCNA Complete Study

Name access list

Config#ip access-list _______

Ex Standdard

config#ip access-list standard Internet

config# permit 192.168.40.25 0.0.0.0

config#permit 192.168.40.26 0.0.0.0

config#interface e0

config-if#ip access-group internet in

StandardExtended

Name

Ex Extendedconfig#ip access-list extended BlockVirus2config#deny tcp any any eq 135Config#deny tcp any any eq 4899Config#permit ip any anyconfig#interface S0config-if#ip access-group BlockVirus2 in

Access Control Lists

Page 144: CCNA Complete Study

Well-Known Port

DHCP Server ---> UDP/68 Web Server ---> TCP/80 (HTTP)Secure Web Server ---> TCP/443 (HTTPS)POP3 Server ---> TCP/110IMAP Server ---> TCP/143SNMP Server ---> UDP/161LDAP Server ---> TCP/389Web Proxy Serve ---> TCP/3128 or TCP/8080

ECHO Server ---> TCP/7DISCARD Server ---> TCP/9 DAYTIME Server ---> TCP/13CHARGET Server ---> TCP/19FTP Server ---> TCP/21SSH Server ---> TCP/22Telnet Server ---> TCP/23SMTP Server ---> TCP/25DNS Server ---> TCP/53 and UDP/53

The Well Known Ports are those from 0 through 1023.

Page 145: CCNA Complete Study

Cisco’s WirelessTechnologies

Page 146: CCNA Complete Study

Cisco’s WirelessTechnologies

Page 147: CCNA Complete Study

Cisco’s WirelessTechnologies

Page 148: CCNA Complete Study

802.11b Standard

Page 149: CCNA Complete Study

802.11a Standard

Page 150: CCNA Complete Study

802.11g Standard

Page 151: CCNA Complete Study

802.11 Comparison

Page 152: CCNA Complete Study

Range Comparisions

Page 153: CCNA Complete Study

BSS & ESS

Page 154: CCNA Complete Study

Independent Basic Service Set (IBSS)

Page 155: CCNA Complete Study

SSID

Page 156: CCNA Complete Study

Wireless Mesh Networking

Page 157: CCNA Complete Study

Wireless Mesh Networking

Page 158: CCNA Complete Study

AWPP

Page 159: CCNA Complete Study

WLAN Security

Page 160: CCNA Complete Study

WLAN Security

Page 161: CCNA Complete Study

WLAN Security

Page 162: CCNA Complete Study

WLAN Security

Page 163: CCNA Complete Study

Internet Protocol Version 6

Page 164: CCNA Complete Study

Internet Protocol Version 6

Page 165: CCNA Complete Study

Internet Protocol Version 6

Page 166: CCNA Complete Study

Internet Protocol Version 6

Page 167: CCNA Complete Study

IPv6 Address Types

Page 168: CCNA Complete Study

Special Addresses

Page 169: CCNA Complete Study

Configuring with IPv6

Corp(config)#ipv6 unicast-routing

Corp(config-if)#ipv6 enable

Page 170: CCNA Complete Study

IPv6 Routing ProtocolsRIPng

Router1(config-if)#ipv6 rip 1 enable

EIGRPv6

Router1(config)#ipv6 router eigrp 10

Router1(config-if)#ipv6 eigrp 10

OSPFv3

Router1(config)#ipv6 router osfp 10

Router1(config-rtr)#router-id 1.1.1.1

Router1(config-if)#ipv6 ospf 10 area 0.0.0.0

Page 171: CCNA Complete Study

NAT

- Static

- dynamic

- Overloading

Static

Config#ip nat inside source static 192.168.1.2 10.10.10.3

(Config)#interface e0

(Config-if)#ip nat inside

#debug ip nat เพ�อตรวจสอบดี)ว�ามู"การทั่*า nat static หัร�อไมู�

Network AddressTranslation

(Config)#interface S0(Config-if)#ip nat outside

Page 172: CCNA Complete Study

Preview• routerB#debug ip nat

• 00:28:33: NAT: s=192.168.4.2->10.10.10.6, d=10.10.10.1 [1276]

• 00:28:33: NAT*: s=10.10.10.1, d=10.10.10.6->192.168.4.2 [1276]

• 00:28:34: NAT*: s=192.168.4.2->10.10.10.6, d=10.10.10.1 [1277]

• 00:28:34: NAT*: s=10.10.10.1, d=10.10.10.6->192.168.4.2 [1277]

• 00:28:35: NAT*: s=192.168.4.2->10.10.10.6, d=10.10.10.1 [1279]

• 00:28:35: NAT*: s=10.10.10.1, d=10.10.10.6->192.168.4.2 [1279]

• 00:28:36: NAT*: s=192.168.4.2->10.10.10.6, d=10.10.10.1 [1281]

• 00:28:36: NAT*: s=10.10.10.1, d=10.10.10.6->192.168.4.2 [1281]

• 00:28:42: NAT*: s=192.168.4.2->10.10.10.6, d=10.10.10.1 [1283]

• 00:28:42: NAT*: s=10.10.10.1, d=10.10.10.6->192.168.4.2 [1283]

Page 173: CCNA Complete Study

Dynamic

Config#ip nat pool name pool start ip end ip netmask netmask

Ex

Config#ip nat pool ISP 10.10.10.4 10.10.10.8 netmask 255.255.255.0

Config#access-list 1 permit 192.168.1.0 0.0.0.255

Config#ip nat inside source list 1 pool ISP

(Config)#interface e0 (Config)#interface S0

(Config-if)#ip nat inside (Config-if)#ip nat outside

Network AddressTranslation

Page 174: CCNA Complete Study

Overloading

Config#access-list 1 permit 192.168.1.0 0.0.0.255

Config#ip nat inside source list 1 interface S0 overload

หัร�อ สามูารถทั่*า overloading แบบ dynamic

Config#ip nat inside source list 1 pool name pool overload

(Config)#interface e0 (Config)#interface S0

(Config-if)#ip nat inside (Config-if)#ip nat outside

Network AddressTranslation

Page 175: CCNA Complete Study

Preview• routerB#debug ip nat

• 00:41:39: NAT: s=192.168.4.2->10.10.10.2, d=192.168.1.1 [1789]

• 00:41:39: NAT*: s=192.168.1.1, d=10.10.10.2->192.168.4.2 [1789]

• 00:41:40: NAT*: s=192.168.4.2->10.10.10.2, d=192.168.1.1 [1790]

• 00:41:40: NAT*: s=192.168.1.1, d=10.10.10.2->192.168.4.2 [1790]

• 00:41:41: NAT*: s=192.168.4.2->10.10.10.2, d=192.168.1.1 [1792]

• 00:41:41: NAT*: s=192.168.1.1, d=10.10.10.2->192.168.4.2 [1792]

• 00:41:42: NAT*: s=192.168.4.2->10.10.10.2, d=192.168.1.1 [1794]

• 00:41:42: NAT*: s=192.168.1.1, d=10.10.10.2->192.168.4.2 [1794]

• 00:41:43: NAT*: s=192.168.4.2->10.10.10.2, d=192.168.1.1 [1795]

• 00:41:43: NAT*: s=192.168.1.1, d=10.10.10.2->192.168.4.2 [1795]

• 00:41:44: NAT*: s=192.168.4.2->10.10.10.2, d=192.168.1.1 [1797]

• 00:41:44: NAT*: s=192.168.1.1, d=10.10.10.2->192.168.4.2 [1797]

Page 176: CCNA Complete Study

PreviewrouterB#debug ip nat

• 00:52:12: NAT*: s=192.168.4.3->10.10.10.2, d=10.10.10.1 [2332]

• 00:52:12: NAT*: s=10.10.10.1, d=10.10.10.2->192.168.4.3 [2332]

• 00:52:13: NAT*: s=192.168.4.3->10.10.10.2, d=10.10.10.1 [2333]

• 00:52:13: NAT*: s=10.10.10.1, d=10.10.10.2->192.168.4.3 [2333]

• 00:52:14: NAT*: s=192.168.4.3->10.10.10.2, d=10.10.10.1 [2337]

• 00:52:14: NAT*: s=10.10.10.1, d=10.10.10.2->192.168.4.3 [2337]

• 00:52:15: NAT*: s=192.168.4.3->10.10.10.2, d=10.10.10.1 [2339]

• 00:52:15: NAT*: s=10.10.10.1, d=10.10.10.2->192.168.4.3 [2339]

• 00:52:16: NAT*: s=192.168.4.3->10.10.10.2, d=10.10.10.1 [2340]

• 00:52:16: NAT*: s=10.10.10.1, d=10.10.10.2->192.168.4.3 [2340]

• 00:52:17: NAT*: s=192.168.4.3->10.10.10.2, d=10.10.10.1 [2342]

• 00:52:17: NAT*: s=10.10.10.1, d=10.10.10.2->192.168.4.3 [2342]

Page 177: CCNA Complete Study

Ex Static NAT• ip nat inside source list 7 interface Serial0 overload

• ip nat inside source static tcp 192.168.42.30 5900 203.149.9.218 5900 extendable

• ip nat inside source static udp 192.168.42.30 5900 203.149.9.218 5900 extendable

• ip nat inside source static udp 192.168.42.30 5800 203.149.9.218 5800 extendable

• ip nat inside source static tcp 192.168.42.30 5800 203.149.9.218 5800 extendable

• ip nat inside source static tcp 192.168.42.2 6500 203.149.9.219 6500 extendable

• ip nat inside source static tcp 192.168.42.2 80 203.149.9.219 80 extendable

• ip nat inside source static tcp 192.168.42.5 143 203.149.9.218 143 extendable

• ip nat inside source static tcp 192.168.42.5 21 203.149.9.218 21 extendable

• ip nat inside source static tcp 192.168.42.5 20 203.149.9.218 20 extendable

• ip nat inside source static tcp 192.168.42.5 22 203.149.9.218 22 extendable

• ip nat inside source static udp 192.168.42.5 53 203.149.9.218 53 extendable

• ip nat inside source static tcp 192.168.42.5 53 203.149.9.218 53 extendable

• ip nat inside source static tcp 192.168.42.5 110 203.149.9.218 110 extendable

• ip nat inside source static tcp 192.168.42.5 25 203.149.9.218 25 extendable

• ip nat inside source static udp 192.168.42.5 22 203.149.9.218 22 extendable

• ip nat inside source static tcp 192.168.42.5 80 203.149.9.218 80 extendable http://www.testbells.com/200-120.html