day 4 wan fundamentals , frame relay & nat
DESCRIPTION
Day 4 Wan Fundamentals , Frame Relay & NatTRANSCRIPT
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
1/43
2009, Velocis Systems
WAN PROTOCOLS
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
2/43
1-2Networking Fundamentals 2009, Velocis Systems
Leased Line
Circuit-switched
PPP, SLIP, HDLC
HDLC, PPP, SLIP
Packet-switched
X.25, Frame Relay, ATM
Typical WAN EncapsulationProtocols: Layer 2
Telephone
Company
Service
Provider
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
3/431-3Networking Fundamentals 2009, Velocis Systems
Flag Address Control Data FCS Flag
HDLC
Supports only single protocol environments
Flag Address Control Proprietary Data FCS Flag
Cisco HDLC
HDLC Frame Format
Ciscos HDLC has a proprietary data field to supportmultiprotocol environments
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
4/431-4Networking Fundamentals 2009, Velocis Systems
HDLC Command
Router(config-if)#encapsulation hdlc
Enable hdlc encapsulation HDLC is the default encapsulation onsynchronous serial interfaces
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
5/431-5Networking Fundamentals 2009, Velocis Systems
PPP EncapsulationTCP/IPNovell IPXAppleTalk
Multiple protocolencapsulations using
NCPs in PPP
PPP can carry packets from several protocolsuites using Network Control Programs
PPP controls the setup of several link options
using LCP
Link setup and controlusing LCP in PPP
An Overview of PPP
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
6/431-6Networking Fundamentals 2009, Velocis Systems
Synchronous or AsynchronousPhysical Media
Link Control Protocol
Authentication, other options
Network Control ProtocolPPP Data LinkLayer
PhysicalLayer
NetworkLayer
IPCP IPXCP Many Others
IP IPX Layer 3 Protocols
Layering PPP Elements
PPPA data link with network-layer
services
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
7/431-7Networking Fundamentals 2009, Velocis Systems
PPP Authentication Overview
Two PPP authentication protocols:PAP and CHAP
PPP Session Establishment1 Link Establishment Phase
2 Optional Authentication Phase3 Network-Layer Protocol Phase
Dialup orCircuit-Switched
Network
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
8/431-8Networking Fundamentals 2009, Velocis Systems
Passwords sent in clear text
Peer in control of attempts
Selecting a PPP AuthenticationProtocol
Remote Router(SantaCruz)
Central-Site Router(HQ)
Hostname: santacruzPassword: boardwalk
username santacruzpassword boardwalk
PAP2-Way Handshake
santacruz, boardwalk
Accept/Reject
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
9/431-9Networking Fundamentals 2009, Velocis Systems
Selecting a PPP AuthenticationProtocol (cont.)
Remote Router(SantaCruz)
Central-Site Router(HQ)
Hostname: santacruzPassword: boardwalk
username santacruzpassword boardwalk
CHAP3-Way Handshake
Challenge
Response
Accept/Reject
Use secret known only toauthenticator and peer
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
10/431-10Networking Fundamentals 2009, Velocis Systems
Configuring PPP
Router(config-if)#encapsulationppp
Enable PPP encapsulation
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
11/431-11Networking Fundamentals 2009, Velocis Systems
Verifying HDLC and PPPEncapsulation Configuration
Router#show interface s0
Serial0 is up, line protocol is up
Hardware is HD64570
Internet address is 10.140.1.2/24
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255
Encapsulation PPP, loopback not set, keepalive set (10 sec)
LCP Open
Open: IPCP, CDPCPLast input 00:00:05, output 00:00:05, 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
38021 packets input, 5656110 bytes, 0 no bufferReceived 23488 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
38097 packets output, 2135697 bytes, 0 underruns
0 output errors, 0 collisions, 6045 interface resets
0 output buffer failures, 0 output buffers swapped out
482 carrier transitions
DCD=up DSR=up DTR=up RTS=up CTS=up
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
12/431-12Networking Fundamentals 2009, Velocis Systems
Frame Relay Overview
Virtual circuits make connections
Connection-oriented service
Frame Relay works here.
DCE orFrameRelay Switch
CSU/DSU
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
13/431-13Networking Fundamentals 2009, Velocis Systems
Frame Relay Stack
OSI 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.
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
14/431-14Networking Fundamentals 2009, Velocis Systems
Frame Relay Inverse ARP and LMIOperation
Frame RelayCloud
1
DLCI=100 DLCI=400
172.168.5.5 172.168.5.7
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
15/431-15Networking Fundamentals 2009, Velocis Systems
Frame Relay Inverse ARP and LMIOperation
2 Status Inquiry 2Status Inquiry
Frame RelayCloud
1
DLCI=100 DLCI=400
172.168.5.5 172.168.5.7
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
16/431-16Networking Fundamentals 2009, Velocis Systems
Frame Relay Inverse ARP and LMIOperation
3Local DLCI 100=Active
4Local DLCI 400=Active
2 Status Inquiry 2Status Inquiry
Frame RelayCloud
1
DLCI=100 DLCI=400
3
172.168.5.5 172.168.5.7
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
17/431-17Networking Fundamentals 2009, Velocis Systems
Frame Relay Inverse ARP and LMIOperation
4Hello, I am 172.168.5.5 on DLCI 100. who r u ?
3Local DLCI 100=Active
4Local DLCI 400=Active
2 Status Inquiry 2Status Inquiry
Frame RelayCloud
1
DLCI=100 DLCI=400
3
172.168.5.5 172.168.5.7
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
18/431-18Networking Fundamentals 2009, Velocis Systems
Frame Relay Inverse ARP and LMIOperation (cont.)
Hello, I am 172.168.5.7 on DLCI 400.4
5Frame Relay Map
172.168.5.5 DLCI 400 Active
Frame RelayCloudDLCI=100 DLCI=400
Frame Relay Map
172.168.5.7 DLCI 100 Active5
172.168.5.5 172.168.5.7
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
19/431-19Networking Fundamentals 2009, Velocis Systems
Frame Relay Inverse ARP and LMIOperation (cont.)
Hello, I am 172.168.5.7.4
5Frame Relay Map
172.168.5.5 DLCI 400 Active
Frame RelayCloudDLCI=100 DLCI=400
Frame Relay Map
172.168.5.7 DLCI 100 Active5
Hello, I am 172.168.5.5 on DLCI 100.6
172.168.5.5 172.168.5.7
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
20/431-20Networking Fundamentals 2009, Velocis Systems
Frame Relay Inverse ARP and LMIOperation (cont.)
Keepalives Keepalives
Hello, I am 172.168.5.7.4
5Frame Relay Map
172.168.5.5 DLCI 400 Active
Frame RelayCloudDLCI=100 DLCI=400
Frame Relay Map
172.168.5.7 DLCI 100 Active5
Hello, I am 172.168.5.5.6
7 7
172.168.5.5 172.168.5.7
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
21/43
1-21Networking Fundamentals 2009, Velocis Systems
Rel. 11.2 Router Rel. 10.3 Router
interface Serial1
ip address 10.16.0.1 255.255.255.0
encapsulation frame-relay
bandwidth 64
interface Serial1
ip address 10.16.0.2 255.255.255.0
encapsulation frame-relay
bandwidth 64frame-relay lmi-type ansi
HQ Branch
Configuring Basic Frame Relay
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
22/43
1-22Networking Fundamentals 2009, Velocis Systems
Inverse ARP
Enabled by default
Does not appear in configuration output
Rel. 11.2 Router Rel. 10.3 Router
HQ
interface Serial1
ip address 10.16.0.1 255.255.255.0
encapsulation frame-relay
bandwidth 64
interface Serial1
ip address 10.16.0.2 255.255.255.0
encapsulation frame-relay
bandwidth 64
frame-relay lmi-type ansi
Branch
Configuring Basic Frame Relay(cont.)
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
23/43
1-23Networking Fundamentals 2009, Velocis Systems
DLCI=110IP address=10.16.0.1/24
p1r1
DLCI=100IP address=10.16.0.2/24
interface Serial1
ip address 10.16.0.1 255.255.255.0
encapsulation frame-relaybandwidth 64
frame-relay map ip 10.16.0.2 110 broadcast
HQ Branch
Configuring a Static Frame RelayMap
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
24/43
1-24Networking Fundamentals 2009, Velocis Systems
Verifying Frame Relay Operation
Displays line, protocol, DLCI, and LMI
information
Router#show interface s0
Serial0 is up, line protocol is up
Hardware is HD64570
Internet address is 10.140.1.2/24
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255
Encapsulation FRAME-RELAY, loopback not set, keepalive set (10 sec)
LMI enq sent 19, LMI stat recvd 20, LMI upd recvd 0, DTE LMI upLMI enq recvd 0, LMI stat sent 0, LMI upd sent 0
LMI DLCI 1023 LMI type is CISCO frame relay DTE
FR SVC disabled, LAPF state down
Broadcast queue 0/64, broadcasts sent/dropped 8/0, interface broadcasts 5
Last input 00:00:02, output 00:00:02, 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
V if i F R l O i
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
25/43
1-25Networking Fundamentals 2009, Velocis Systems
Displays LMIinformation
Router#show frame-relay lmi
LMI Statistics for interface Serial0 (Frame Relay DTE) LMI TYPE = CISCO
Invalid Unnumbered info 0 Invalid Prot Disc 0
Invalid dummy Call Ref 0 Invalid Msg Type 0Invalid Status Message 0 Invalid Lock Shift 0
Invalid Information ID 0 Invalid Report IE Len 0
Invalid Report Request 0 Invalid Keep IE Len 0
Num Status Enq. Sent 113100 Num Status msgs Rcvd 113100
Num Update Status Rcvd 0 Num Status Timeouts 0
Verifying Frame Relay Operation(cont.)
V if i F R l O ti
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
26/43
1-26Networking Fundamentals 2009, Velocis Systems
Displays PVC trafficstatistics
Verifying Frame Relay Operation(cont.)
Router#show frame-relay pvc 100
PVC Statistics for interface Serial0 (Frame Relay DTE)
DLCI = 100, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial0
input pkts 28 output pkts 10 in bytes 8398
out bytes 1198 dropped pkts 0 in FECN pkts 0
in BECN pkts 0 out FECN pkts 0 out BECN pkts 0
in DE pkts 0 out DE pkts 0
out bcast pkts 10 out bcast bytes 1198
pvc create time 00:03:46, last time pvc status changed 00:03:47
V if i F R l O ti
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
27/43
1-27Networking Fundamentals 2009, Velocis Systems
Displays the route maps, either static ordynamic
Router#show frame-relay map
Serial0 (up): ip 10.140.1.1 dlci 100(0x64,0x1840), dynamic,
broadcast,, status defined, active
Verifying Frame Relay Operation(cont.)
V if i F R l O ti
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
28/43
1-28Networking Fundamentals 2009, Velocis Systems
Clears dynamically created Frame Relay maps
Verifying Frame Relay Operation(cont.)
Router#show frame-relay map
Serial0 (up): ip 10.140.1.1 dlci 100(0x64,0x1840), dynamic,
broadcast,, status defined, active
Router#clear frame-relay-inarpRouter#sh frame map
Router#
V if i F R l O ti
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
29/43
1-29Networking Fundamentals 2009, Velocis Systems
Displays LMI debug information
Verifying Frame Relay Operation(cont.)
Router#debug Frame lmiFrame Relay LMI debugging is onDisplaying all Frame Relay LMI dataRouter#1w2d: Serial0(out): StEnq, myseq 140, yourseen 139, DTE up1w2d: datagramstart = 0xE008EC, datagramsize = 131w2d: FR encap = 0xFCF103091w2d: 00 75 01 01 01 03 02 8C 8B
1w2d:1w2d: Serial0(in): Status, myseq 1401w2d: RT IE 1, length 1, type 11w2d: KA IE 3, length 2, yourseq 140, myseq 1401w2d: Serial0(out): StEnq, myseq 141, yourseen 140, DTE up1w2d: datagramstart = 0xE008EC, datagramsize = 131w2d: FR encap = 0xFCF103091w2d: 00 75 01 01 01 03 02 8D 8C1w2d:1w2d: Serial0(in): Status, myseq 142
1w2d: RT IE 1, length 1, type 01w2d: KA IE 3, length 2, yourseq 142, myseq 1421w2d: PVC IE 0x7 , length 0x6 , dlci 100, status 0x2 , bw 0
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
30/43
2009, Velocis Systems
NAT(NETWORK ADDRESS
TRANSLATION)
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
31/43
1-31Networking Fundamentals 2009, Velocis Systems
Private Addresses
Class A10.0.0.0 to 10.255.255.255
Class B172.16.0.0 to 172.31.255.255
Class C192.168.0.0 to 192.168.255.255
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
32/43
1-32Networking Fundamentals 2009, Velocis Systems
WHY WE NEED NAT ?
Organizations use Private Addresses intheir internal networks.
These addresses will never appear in theglobal routing table on any publicnetwork.
But if these address are not routable on
public networks how hosts from theseinternal networks are able to
communicate across the internet?
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
33/43
1-33Networking Fundamentals 2009, Velocis Systems
WHY WE NEED NAT ?
NAT is a concept which translateslayer three addresses, so it is
implemented on layer threedevices.
NAT is used to translate these
private addresses into publicaddresses.
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
34/43
1-34Networking Fundamentals 2009, Velocis Systems
NAT
NAT is used when a packet istraversing from one network to
another and when the source addresson the transmitting network is notlegal or valid on the destinationnetwork i.e, when a source
corresponds to a private address.
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
35/43
1-35Networking Fundamentals 2009, Velocis Systems
USE NAT IF
You need to connect to the Internet andyour hosts do not have globally uniqueIP addresses
You change over to a new ISP thatrequires you to renumber your network
Hide intranet addressing informationfrom outside world.
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
36/43
1-36Networking Fundamentals 2009, Velocis Systems
NAT Operation
Inside LocalIP Address
10.1.1.1
10.1.1.2
NAT tableInside GlobalIP Address
192.168.2.2
192.168.2.3
Internet
Inside
10.1.1.1
10.1.1.2
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
37/43
1-37Networking Fundamentals 2009, Velocis Systems
Addresses used in NAT
Inside localAddress of a hoston the private side of the
network.
Inside GlobalPublic address
into which the inside localaddress will be translated.
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
38/43
1-38Networking Fundamentals 2009, Velocis Systems
TYPES OF NAT
STATIC NAT
DYNAMIC NAT
DYNAMIC NAT WITH OVERLOAD(PAT- Port Address Translation)
Translating Inside Local
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
39/43
1-39Networking Fundamentals 2009, Velocis Systems
Translating Inside LocalAddresses (Static NAT)
10.1.1.2
10.1.1.1
192.168.2.3
192.168.2.2
NAT table
Inside LocalIP Address
Inside GlobalIP Address
10.1.1.3 192.168.2.4
Internet
Inside
10.1.1.1
10.1.1.2
Host B172.20.7.3
1
3
SA10.1.1.1
DA10.1.1.1
SA192.168.2.2
DA192.168.2.2
10.1.1.2
10.1.1.3
4
5
2
Overloading Inside Global
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
40/43
1-40Networking Fundamentals 2009, Velocis Systems
Overloading Inside GlobalAddresses (PAT)
10.1.1.2
10.1.1.1
NAT table
192.168.2.2:1723
192.168.2.2:1024
172.21.7.3:23
172.20.7.3:23
TCP
TCP
10.1.1.3 192.168.2.2:1492 172.21.7.3:23TCP
Internet
Inside
10.1.1.1
Host B172.20.7.3
1
3
SA10.1.1.1
DA10.1.1.1
SA192.168.2.2
DA192.168.2.2
10.1.1.2
10.1.1.3
4
5
2
Host C172.21.7.3
DA192.168.2.2
4
Inside Global IP
Address: Port
Outside Global
IP Address: Port
Protocol Inside Local IP
Address
S i NAT C fi i
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
41/43
1-41Networking Fundamentals 2009, Velocis Systems
Static NAT ConfigurationExample
ip nat inside source static 10.1.1.1 192.168.2.2!interface Ethernet0ip address 10.1.1.10 255.255.255.0ip nat inside
!interface Serial0ip address 172.16.2.1 255.255.255.0ip nat outside
!
Maps the inside local address to the inside global address.
Thisinterfaceconnected tothe outsideworld.
This interfaceconnected tothe insidenetwork.
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
42/43
1-42Networking Fundamentals 2009, Velocis Systems
ip nat pool test 192.168.2.1 192.168.2.254
netmask 255.255.255.0ip nat inside source list 1 pool test!interface Ethernet0ip address 10.1.1.10 255.255.255.0ip nat inside
!interface Serial0ip address 172.16.2.1 255.255.255.0ip nat outside
!access-list 1 permit 10.1.1.0 0.0.0.255!
Dynamic NAT Configuration
Translate between inside hosts addressed from 10.1.1.0/24 tothe globally unique 192.168.2.0/24 network.
This interfaceconnected tothe outsideworld.
This interfaceconnected tothe insidenetwork.
Configuring Inside Global Address
-
5/23/2018 Day 4 Wan Fundamentals , Frame Relay & Nat
43/43
Configuring Inside Global AddressOverloading
ip nat pool test 192.168.2.1 192.168.2.2netmask 255.255.255.0
ip nat inside source list 1 pool test overload!interface Ethernet0/0
ip address 10.1.1.10 255.255.255.0ip nat inside
!interface Serial0/0ip address 172.16.2.1 255.255.255.0ip nat outside
!access-list 1 permit 10.1.1.0 0.0.0.255