Professional Documents
Culture Documents
9
9
R1>en
R1#show ip proto
==Display the routing table==
R1#show ip route
==Display OSPF errors in real time==
R1#display ip ospf events
==Display OSPF neighbors==
R1#show ip ospf neigh
==Display OSPF interfaces==
R1#show ip ospf int
==Display OSPF everything==
R1#show ip ospf database
_______________________________________________________
Router1> en
Router1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)# router ospf 1
Router1(config-router)# network 10.0.0.0 0.255.255.255 area 0
_______________________________________________________
Router1> en
Router1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)# router ospf 1
Router1(config-router)# network 192.168.1.0 0.0.0.15 area 0
Router1(config-router)# network 172.16.1.1 0.0.0.0 area 1
_______________________________________________________
Router1> en
Router1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)# router ospf 1
Router1(config-router)# network 10.1.1.1 0.0.0.0 area 0
Router1(config-router)# network 192.168.168.185 0.0.0.0 area 0
_______________________________________________________
Router1> en
Router1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)# router ospf 1
Router1(config-router)# network 192.168.1.0 0.0.0.15 area 1
Router1(config-router)# network 10.1.1.0 0.0.0.3 area 0
Router1(config-router)# network 172.16.1.1 0.0.0.0 area 0
Router1(config-router)# default-information originate
_______________________________________________________
Enable OSPF with process number 1. Put interfaces into OSPF using a host mask(/32)
Router is configured with the first IP address in the same subnet as host
10.185.185.255/25
Router is configured with the last IP address in the same subnet as host
172.16.195.195/23
Router is configured with the first IP address in the same subnet as
192.168.168.168/27
172.16.195.195 /23
195
128 64 X X X 4 X 1
|
195
---
192.168.168.168 /27
168
128 X 32 X 8 X X X
1 0 1 0 1 0 0 0
|
160
Router1> en
Router1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)# router ospf 1
Router1(config-router)# network 10.185.185.129 0.0.0.0 area 0
Router1(config-router)# network 172.16.195.254 0.0.0.0 area 0
Router1(config-router)# network 192.168.168.161 0.0.0.0 area 0
_______________________________________________________
***
==OSPF Simulations - Section523===
Router1> en
Router1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)# int f0/0
Router1(config-if)# ip ospf authentication
Router1(config-if)# ip ospf authentication-key cisco
_______________________________________________________
***
==OSPF Simulations - Section527===
Router1> en
Router1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)# router ospf 1
Router1(config-router)# maximum-paths 10
Router1(config-router)# int f0/0
Router1(config-if)# ip ospf cost 100
_______________________________________________________
IPv6 vs IPv4
- IPv6 128bit 3.4x10^38 addresses
- IPv4 32 bit 4.3million addresses
- All OSI layers stays the same
- IPv6 can have multiple primary IP addresses
- IPv4 can only have 1 primary IP address
IPv6 addresses
- Not case-sensitive
- Leading zeros are optional
- Successive fields of zeros can be represented as ::, but only once per address
**Every IPv6 interface contains at least 1 loopback ::1/128
ex. 2001:0123:0000:0000:FFFF:0000:0000:0ABC = 2001:123::FFFF:0:0:ABC
> Loopback = ::1
> Unassigned Address = :: (all zeros)
- Surfing the web @ 2001:123:4567::8, user would need to enter
ex. http://[2001:123:4567::8]:8080/index.html
IPv6 Anycast
- One-to-nearest, used for load balancing
IPv6 Stateless Autoconfiguration (How it works - How Host gets IPv6 address)
*Don't memorize Type XXX
1) Host sends Router solicitation to all routers using FF02::2 (ICMPv6 Type 133 -
Router solicitation), asks for IP address immediately
- Host uses it's link local address FE80::X/10 (with its EUI) as source
2) Router replies (ICMPv6 Type 134 - Router advertisement)
- Router uses it's link local address FE80::Y/10 (with its EUI) as source
- Router uses destination FF02::1 (ICMPv6 Type 134)
IPv4/IPv6 Tunneling
1) [Manual] Manual IPv6 over IPv4 tunnel
2) [Auto] Dynamic 6-to-4 Tunnel
[don't worry] 3) ISATAP Intra site automatic tunnel addressing protocol
[don't worry] 4) Teredo tunneling
1) IPv4/IPv6 Tunneling - IPv6 over IPv4 tunnel (Manual)
**Protocol type 41 is specified in IPv4 header for encapsulation
[IPv6 Data][IPv6 Header][IPv4 Header][SA:1.1.1.1][DA:2.2.2.2]
- IPv6 is sent inside IPv4 header, then stripped off IPv4 header at destination
router then sent off as pure IPv6 data
- Note. IPv4 header is 20bytes
==IPv4/IPv6 Tunneling==
> R1 s0/0 [10.1.2.1/24][2001:1:1:1::1/64]<-> s0/0 R2 [10.1.2.2/24]
[2001:1:1:3::1/64]
R1(config)#int tun 0
R1(config-if)#ipv6 address 2003::1/64
R1(config-if)#tunnel source 10.1.2.1
R1(config-if)#tunnel destination 10.1.2.2
R1(config-if)#tunnel mode ipv6ip (otherwise default is GRE)
>Static route
R1(config)#ipv6 route 2001:1:1:3::/64 tun 0
R2(config)#int tun 0
R2(config-if)#ipv6 address 2003::2/64
R2(config-if)#tunnel source 10.1.2.2
R2(config-if)#tunnel destination 10.1.2.1
R2(config-if)#tunnel mode ipv6ip
>Static route
R2(config)#ipv6 route 2001:1:1:1::/64 tun 0
_______________________________________________________
Router1> en
Router1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)# int f0/0
Router1(config-if)# ipv6 address 2001:152:1:17::/64 eui-64
_______________________________________________________
Router1> en
Router1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)# ipv6 unicast-routing
Router1(config)# ipv6 router rip cisco
Router1(config-router)# int f0/0
Router1(config-if)# ipv6 address 2001:1:2:3::1/64
Router1(config-if)# ipv6 rip cisco enable
Router1(config-if)# ipv6 rip cisco default-information originate
Router1(config-if)# int serial 0/0
Router1(config-if)# ipv6 address 2001:2::1/64
Router1(config-if)# ipv6 route ::/0 serial 0/0
_______________________________________________________
==Config IPv6==
> R1 int s2/0 , 2001:1::1/64
> R2 int s2/0 , 2001:1::2/64
> R1 loopback, 2001:FACE::1/128
R1(config)#int loopback 0
R1(config-if)#ipv6 address 2001:FACE::1/128
R1(config-if)#int s2/0
R1(config-if)#ipv6 address 2001:1::1/64
R2(config)#int s2/0
R2(config-if)#ipv6 address 2001:1::2/64
> R1#show ipv6 router. Notice, /128 appears
**Routers will create IPv6 routes based on the unicast IPv6 address configured on
the interface
C 2001:1::/64 ... Serial 2/0 [R1]
L 2001:1:1/128 ... Serial 2/0 [R2]
LC 2001:FACE::2/128 ... Loopback [R1]
**C = Connected (Directly connected physical cable)
**L = Local (Network connection)
**LC = Both directly connected because loopback and Network connection
IPv4 vs IPv6
- IP Address
- Default Gateway vs Default Router
- Subnet Mask vs Prefix Length
- DNS servers
- NDP Neighbor Discovery Protocol (use Neighbors to discover and exchange info) vs
ARP
IPv6 NDP
1) SLAAC Stateless Address Autoconfiguration
- Advertise/Discover which Subnet or Prefix/length it belongs to
- Router dynamically allocates the network portion of address (host uses its MAC
address for host portion of IP)
- Uses DAD Duplicate Address Detection to determine no other host uses the same IP
2) Neighbor MAC Discovery
- Again, no ARP and no Broadcast
ICMPv6 Process
1) PC boots up, sends RS FF02::2 asks all routers to identify themselves
2) Routers, replies RA FF02::1 with their Link-Local IPv6 address
3) Routers will periodically advertise their details FF02::1
_____________________________________________
WAN Technologies:
- Frame Relay
- ATM
- DSL
- PPP
- HDLC
~Devices:
WIC 1T - 1 serial cable/connection
WIC 2T - 2 serial cable/connection
WIC 4T - 4 serial cable/connection
Nyquist Theorem
- Converts Analog Voice to Digital 64KBPS stream (Time Division Multiplexing)
US Speeds
DSO Digital Signal level 0 = 64kbps
T1 = 24 x DS0 = 1.544Mbps
T2 = 4 * T1
T3 = 28 * T1
T4 = 168 * T1
Euro Speeds
E1 = 30 x DS0 = 2Mbps
E2 = 4 * E1
E3 = 17 * E1
E4 = 70 * E1
WAN Technologies
1) PSTN Public Switch Telephone Network
- Layer 2 protocols (HDLC High-Level Data Link Control, PPP)
- PPP has advange because it has authentication
- Circuit switched, dedicated path is setup for the duration of the call
- Analog Asynchronous: Insert START/STOP bits in the same channel as the data.
START bit prior to each byte of data. Uses STOP bit after each byte of data -
lowers cost of equipment
- NOT DIGITAL
- Does NOT use clock to differentiate between bytes of data is to use START/STOP
bits
ADVANTAGE: Simple, Availability, Cost
DISADVANTAGE: Slow (33-56kbps), upgrade ISDN (64-128kbps)
2) Leased Line
- Serial / Point-to-Point link between 2 sites with dedicated bandwidth
- Leased from Service Provider
- Connects to a CSU DSU Channel service unit/ digital service unit
- Synchronized clocks for Data Transfer, before transfer they must align their
clock
- DCE Data Communication Equipment uses Internal Clocking (Server Provider provides
this)
- DTE Data Terminal Equipment uses External Clock (Customer side of WAN connection)
-> dependent on DCE (Modem/DCE/CSU/DSU)
- X.21 / V.35 cable
ADVANTAGES: Simple, High QoS, Permanent Connection
DISADVANTAGE: Cost, charged for circuit - if you don't use it, you are still
charged, no ability to go above speed set (burst)
3) Packet Switched
- Serial / Point-to-Point link between 2 sites with shared bandwidth
ADVANTAGE: Cost, potential to use above speed limit if other user is not using
(burst)
DISADVANTAGE: Share
DTE DCE
- If connecting 2 routers both females, 1 of the routers must be the DCE. Cable
will determine which side is the DCE and which side is DTE
- 21, 35, 232, 449
- DCE = Female
- DTE = Male
Types of HDLC
[Flag][Address][Control][Data][FCS][Flag]
1) HDLC High-Level Data Link Control [Industry Standard]
- Missing Proprietary field, cannot run IPx and IPv4 OR IPv4 and IPv6 at same time
2) Cisco HDLC High-Level Data Link Control [Cisco ONLY]
- Includes [PROPRIETARY]
- Can run both IPv4 and IPv6 at same time
3) PPP [Industry Standard]
- Includes [PROTOCOL]
- Can run both IPv4 and IPv6 at same time
- Layer 2
- Multilink PPP - makes several links as a single link
- Support multiple higher layer protocols, authentication (PAP, CHAP)
- PAP - clear Text
- CHAP - MD5 Hash, uses Router's name for authentication
Frame Relay
- Replaced by MPLS Multiple Protocol Label Switching
- Replaced X.25 (error checking at Layer 2)
- Frame Relay does not error check, relys on TCP
- Shared Packet Switched environment where companies share the bandwidth
- Sites are setup as SVC Switch Virtual Circuits (acts like a phone call - only
brought up when required) or PVC Permanent Virtual Circuits (permanent connection
from 1 site to another site)
- Speeds up to 4Mbps
- Switches are programmed to deal with DLCI Data Link Control Identifier. Once it
receives a specific DLCI, the switch has been programmed to switch frames of XXX to
YYY.
***Think. Traffic are directed with DLCI
- Routers learn each other's IP addresses using "Inverse ARP" - "I tell you my IP
address without me requesting for it"
ADVANTAGES: Cost, Bursting
DSL
ADVANTAGE: Speed, simultaneous voice/data transmission, always on, backward
compatible to analog phone
DISADVANTAGE: limited availability, local phone company requirement, security risk
(permanently on)
1) ADSL Asymmetric Digital Subscriber Line
- up/down speed is unequal
- analog phone and internet at the same time
2) SDSL Symmetric Digital Subscriber Line
- up/down speed is EQUAL
- no analog telephone calls (VoIP is useful here)
_______________________________________________________
Router2> en
Router2# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router2(config)# interface serial 0/1
Router2(config-if)# encapsulation ppp
Router2(config-if)# no shut
_______________________________________________________
Router1> en
Router1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)# int serial 0/1
Router1(config-if)# clock rate 64000
Router1(config-if)# bandwidth 64
Router1(config-if)# encapsulation ppp
_______________________________________________________
Router1> en
Router1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)# int serial 0/1
Router1(config-if)# ip address 10.1.1.1 255.255.255.0
Router1(config-if)# encapsulation hdlc
_______________________________________________________
Router1> en
Router1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)# int serial 0/1
Router1(config-if)# encapsulation ppp
Router1(config-if)# ip address 192.168.1.130 255.255.255.252
_______________________________________________________
Router1> en
Router1# show int serial 0/1